1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

Use USE_GETOPT_LONG.

PR:		51369
Submitted by:	Ports Fury
This commit is contained in:
Pete Fritchman 2003-05-17 16:02:28 +00:00
parent be359a6a36
commit 56379ea2ff
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=81157

View File

@ -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