View | Details | Raw Unified | Return to bug 51369
Collapse All | Expand All

(-)ftp/mget/Makefile (-7 / +2 lines)
Lines 14-31 Link Here
14
MAINTAINER=	ports@FreeBSD.org
14
MAINTAINER=	ports@FreeBSD.org
15
COMMENT=	Multi Threaded Wget
15
COMMENT=	Multi Threaded Wget
16
16
17
USE_GETOPT_LONG=	yes
17
CFLAGS+=	-DHAS_HERROR -DHAVE_GETOPT_LONG -DHAVE_INET_NTOP -DHAVE_IPV6 \
18
CFLAGS+=	-DHAS_HERROR -DHAVE_GETOPT_LONG -DHAVE_INET_NTOP -DHAVE_IPV6 \
18
		${PTHREAD_CFLAGS:S/"//g}
19
		${PTHREAD_CFLAGS:S/"//g}
19
LDFLAGS+=	${PTHREAD_LIBS:S/"//g}
20
LDFLAGS+=	${PTHREAD_LIBS:S/"//g}
20
21
21
.if !exists(/usr/include/getopt.h)
22
LIB_DEPENDS+=	gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
23
CFLAGS+=	-I${LOCALBASE}/include 
24
LDFLAGS+=	-L${LOCALBASE}/lib -lgnugetopt 
25
.endif
26
27
do-build:
22
do-build:
28
	cd ${WRKSRC} && ${CC} ${CFLAGS} -o mget *.c ${LDFLAGS}
23
	cd ${WRKSRC} && ${CC} ${CFLAGS} ${CPPFLAGS} -o mget *.c ${LDFLAGS}
29
24
30
do-install:
25
do-install:
31
	${INSTALL_PROGRAM} ${WRKSRC}/mget ${PREFIX}/bin
26
	${INSTALL_PROGRAM} ${WRKSRC}/mget ${PREFIX}/bin

Return to bug 51369