diff options
author | petef <petef@FreeBSD.org> | 2001-11-29 05:04:44 +0800 |
---|---|---|
committer | petef <petef@FreeBSD.org> | 2001-11-29 05:04:44 +0800 |
commit | 40bcae672bd471337fa5bb01bbc4b9d48dfb3ddb (patch) | |
tree | 57d96da83d5bfaddbf88535715405880a390f5f4 /ftp/mget/Makefile | |
parent | a4d5b72ba8292ba9de7a8037e47000be3c2d2ccd (diff) | |
download | freebsd-ports-graphics-40bcae672bd471337fa5bb01bbc4b9d48dfb3ddb.tar.gz freebsd-ports-graphics-40bcae672bd471337fa5bb01bbc4b9d48dfb3ddb.tar.zst freebsd-ports-graphics-40bcae672bd471337fa5bb01bbc4b9d48dfb3ddb.zip |
- update to 1.3.0.2
- depend on gnugetopt.1, not just gnugetopt
- add ipv6 support
- fix malloc.h problems
- redo build process
PR: 32306
Submitted by: KATO Tsuguru <tkato@prontomail.com>
Diffstat (limited to 'ftp/mget/Makefile')
-rw-r--r-- | ftp/mget/Makefile | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/ftp/mget/Makefile b/ftp/mget/Makefile index 0161c606035..ed664243abe 100644 --- a/ftp/mget/Makefile +++ b/ftp/mget/Makefile @@ -7,19 +7,24 @@ # PORTNAME= mget -PORTVERSION= 1.3.0 -CATEGORIES= ftp +PORTVERSION= 1.3.0.2 +CATEGORIES= ftp ipv6 MASTER_SITES= http://home.talkcity.com/LaGrangeLn/dbera/ MAINTAINER= ports@FreeBSD.org -LIB_DEPENDS= gnugetopt:${PORTSDIR}/devel/libgnugetopt +LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt -ALL_TARGET= ${PORTNAME} +CFLAGS+= -DHAS_HERROR -DHAVE_GETOPT_LONG -DHAVE_INET_NTOP -DHAVE_IPV6 \ + -I${LOCALBASE}/include ${PTHREAD_CFLAGS:S/"//g} +LDFLAGS= -L${LOCALBASE}/lib -lgnugetopt ${PTHREAD_LIBS:S/"//g} -post-patch: - @${PERL} -pi -e "s,-lpthread,${PTHREAD_LIBS},g ; \ - s,%%LOCALBASE%%,${LOCALBASE},g" ${WRKSRC}/Makefile +pre-patch: + @find ${WRKSRC} -name '*.[ch]' | xargs ${PERL} -pi -e \ + 's|#include <malloc.h>||g' + +do-build: + cd ${WRKSRC} && ${CC} ${CFLAGS} -o mget *.c ${LDFLAGS} do-install: ${INSTALL_PROGRAM} ${WRKSRC}/mget ${PREFIX}/bin |