summaryrefslogtreecommitdiff
path: root/ftp/mget/Makefile
diff options
context:
space:
mode:
authorPete Fritchman <petef@FreeBSD.org>2003-05-17 16:02:28 +0000
committerPete Fritchman <petef@FreeBSD.org>2003-05-17 16:02:28 +0000
commit56379ea2ff5f483b75abc3cfab7df270ae1b570e (patch)
tree1e9e8650f6b4761a113f16e16ce891e170126d00 /ftp/mget/Makefile
parentUpdate to 1.12. (diff)
Use USE_GETOPT_LONG.
PR: 51369 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=81157
Diffstat (limited to '')
-rw-r--r--ftp/mget/Makefile9
1 files changed, 2 insertions, 7 deletions
diff --git a/ftp/mget/Makefile b/ftp/mget/Makefile
index 3d1daa8accfd..2ca03c06ab7c 100644
--- a/ftp/mget/Makefile
+++ b/ftp/mget/Makefile
@@ -14,18 +14,13 @@ MASTER_SITES= http://www.cse.iitk.ac.in/users/dbera/
MAINTAINER= ports@FreeBSD.org
COMMENT= Multi Threaded Wget
+USE_GETOPT_LONG= yes
CFLAGS+= -DHAS_HERROR -DHAVE_GETOPT_LONG -DHAVE_INET_NTOP -DHAVE_IPV6 \
${PTHREAD_CFLAGS:S/"//g}
LDFLAGS+= ${PTHREAD_LIBS:S/"//g}
-.if !exists(/usr/include/getopt.h)
-LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
-CFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib -lgnugetopt
-.endif
-
do-build:
- cd ${WRKSRC} && ${CC} ${CFLAGS} -o mget *.c ${LDFLAGS}
+ cd ${WRKSRC} && ${CC} ${CFLAGS} ${CPPFLAGS} -o mget *.c ${LDFLAGS}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mget ${PREFIX}/bin