diff options
author | Norikatsu Shigemura <nork@FreeBSD.org> | 2003-02-02 14:38:39 +0000 |
---|---|---|
committer | Norikatsu Shigemura <nork@FreeBSD.org> | 2003-02-02 14:38:39 +0000 |
commit | bcfcc8239df60a7d9299bcf0c2a51fa7493c40bf (patch) | |
tree | f08724cbfd9b4a8740c60215ab8e7b5c654d592a /misc | |
parent | Conditionalize libgnugetopt dependencies. (diff) |
Conditionalize libgnugetopt dependencies.
PR: ports/47750
Submitted by: Ports Fury
Notes
Notes:
svn path=/head/; revision=74502
Diffstat (limited to 'misc')
-rw-r--r-- | misc/goldstr/Makefile | 11 |
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> |