Conditionalize libgnugetopt dependencies.

PR:		ports/47750
Submitted by:	Ports Fury
This commit is contained in:
Norikatsu Shigemura 2003-02-02 14:38:39 +00:00
parent dd2aad1d70
commit bcfcc8239d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=74502

View file

@ -13,12 +13,15 @@ MASTER_SITES= http://it.geocities.com/andreamolteni/prog/goldstr/
MAINTAINER= ports@FreeBSD.org MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= gnugetopt:${PORTSDIR}/devel/libgnugetopt
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt"
MAN1= goldstr.1 MAN1= goldstr.1
.if !exists(/usr/include/getopt.h)
LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lgnugetopt
.endif
.include <bsd.port.mk> .include <bsd.port.mk>