[83392] trunk/dports/net/fetch

afb at macports.org afb at macports.org
Wed Aug 31 00:38:07 PDT 2011


Revision: 83392
          http://trac.macports.org/changeset/83392
Author:   afb at macports.org
Date:     2011-08-31 00:38:07 -0700 (Wed, 31 Aug 2011)
Log Message:
-----------
add archflags/+universal variant for ryan, add license

Modified Paths:
--------------
    trunk/dports/net/fetch/Portfile
    trunk/dports/net/fetch/files/patch-Makefile

Modified: trunk/dports/net/fetch/Portfile
===================================================================
--- trunk/dports/net/fetch/Portfile	2011-08-31 07:36:43 UTC (rev 83391)
+++ trunk/dports/net/fetch/Portfile	2011-08-31 07:38:07 UTC (rev 83392)
@@ -4,30 +4,34 @@
 
 name		fetch
 version		7.4.0-RELEASE
+revision	1
 categories	net
 maintainers	afb
 description	FreeBSD file fetching utility
 long_description	Fetch provides a command-line interface to the fetch(3) library. \
 	Its purpose is to retrieve the file(s) pointed to by the URL(s) on the command line.
 platforms	darwin freebsd
+license		BSD
 use_bzip2	yes
 homepage	http://www.freebsd.org/
 master_sites	macports
 checksums	md5 8625ef0e30fc922efb0da566765371c7 \
 		sha1 44ee199b6493b92aa7c56b33923c8e59c18c839f \
 		rmd160 bb44a3cac83f96626a7d9790d996fb9183913bb3
+variant universal {}
+build.type	bsd
+build.env	CC=${configure.cc} \
+		CFLAGS="${configure.cppflags} ${configure.cflags} [get_canonical_archflags]" \
+		LDFLAGS="${configure.ldflags} [get_canonical_archflags]"
+build.args	-DMK_OPENSSL
 worksrcdir	${name}
 use_configure	no
-depends_lib	lib:libfetch.5:libfetch port:openssl
-build.type	bsd
-build.env	CC=${configure.cc} CFLAGS=${configure.cflags}
-build.args	CFLAGS+=-I${prefix}/include LDFLAGS+=-L${prefix}/lib -DMK_OPENSSL
-
 destroot	{
-		xinstall -m 755 ${workpath}/${worksrcdir}/fetch ${destroot}${prefix}/bin
-		xinstall -m 644 -c ${workpath}/${worksrcdir}/fetch.1 ${destroot}${prefix}/share/man/man1 }
+		xinstall -m 755 -c ${worksrcpath}/fetch ${destroot}${prefix}/bin
+		xinstall -m 644 -c ${worksrcpath}/fetch.1 ${destroot}${prefix}/share/man/man1 }
 
+depends_lib	port:libfetch port:openssl
+
 platform darwin {
 	patchfiles	patch-Makefile patch-fetch.c
-	build.args-append CFLAGS+=-D__FBSDID=__RCSID
 }

Modified: trunk/dports/net/fetch/files/patch-Makefile
===================================================================
--- trunk/dports/net/fetch/files/patch-Makefile	2011-08-31 07:36:43 UTC (rev 83391)
+++ trunk/dports/net/fetch/files/patch-Makefile	2011-08-31 07:38:07 UTC (rev 83392)
@@ -1,10 +1,12 @@
 --- Makefile.orig	2004-12-21 11:16:02.000000000 +0100
 +++ Makefile	2007-09-08 22:40:22.000000000 +0200
-@@ -2,6 +2,7 @@
+@@ -4,7 +4,8 @@
  
  PROG=		fetch
  CSTD?=		c99
+-WARNS?=		6
 +CFLAGS+=	-D__FBSDID=__RCSID
- WARNS?=		6
++WARNS?=		2
  DPADD=		${LIBFETCH}
  LDADD=		-lfetch
+ .if ${MK_OPENSSL} != "no"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110831/0fea081d/attachment.html>


More information about the macports-changes mailing list