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

Conditionalize libgnugetopt dependencies.

PR:		ports/47739
Submitted by:	Ports Fury
This commit is contained in:
Norikatsu Shigemura 2003-02-02 14:02:02 +00:00
parent 212fb62797
commit 77fda24ab9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=74491

View File

@ -13,11 +13,15 @@ MASTER_SITES= http://www.cse.iitk.ac.in/users/dbera/
MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
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}
${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}