aboutsummaryrefslogtreecommitdiff
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
parentdd2aad1d700941cc575e4fa69520c2737c80f9ad (diff)
downloadports-bcfcc8239df60a7d9299bcf0c2a51fa7493c40bf.tar.gz
ports-bcfcc8239df60a7d9299bcf0c2a51fa7493c40bf.zip
Notes
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>