diff options
author | nork <nork@FreeBSD.org> | 2003-02-02 22:38:39 +0800 |
---|---|---|
committer | nork <nork@FreeBSD.org> | 2003-02-02 22:38:39 +0800 |
commit | 7bd14ecfb079990cdd9869dbf8b55199e6fa4374 (patch) | |
tree | d0128fb24c378677373ebf6267b8da65c9d314ee /misc | |
parent | 2ac353cb90cbb180187fdc750b9c93e614cf9807 (diff) | |
download | freebsd-ports-gnome-7bd14ecfb079990cdd9869dbf8b55199e6fa4374.tar.gz freebsd-ports-gnome-7bd14ecfb079990cdd9869dbf8b55199e6fa4374.tar.zst freebsd-ports-gnome-7bd14ecfb079990cdd9869dbf8b55199e6fa4374.zip |
Conditionalize libgnugetopt dependencies.
PR: ports/47750
Submitted by: Ports Fury
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> |