summaryrefslogtreecommitdiff
path: root/misc/goldstr
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2003-02-02 14:38:39 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2003-02-02 14:38:39 +0000
commitbcfcc8239df60a7d9299bcf0c2a51fa7493c40bf (patch)
treef08724cbfd9b4a8740c60215ab8e7b5c654d592a /misc/goldstr
parentConditionalize libgnugetopt dependencies. (diff)
Conditionalize libgnugetopt dependencies.
PR: ports/47750 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=74502
Diffstat (limited to 'misc/goldstr')
-rw-r--r--misc/goldstr/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/misc/goldstr/Makefile b/misc/goldstr/Makefile
index 2e431869f333..80c8bbd86415 100644
--- a/misc/goldstr/Makefile
+++ b/misc/goldstr/Makefile
@@ -13,12 +13,15 @@ MASTER_SITES= http://it.geocities.com/andreamolteni/prog/goldstr/
MAINTAINER= ports@FreeBSD.org
-LIB_DEPENDS= gnugetopt:${PORTSDIR}/devel/libgnugetopt
-
GNU_CONFIGURE= yes
-CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
- LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt"
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
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>