From bcfcc8239df60a7d9299bcf0c2a51fa7493c40bf Mon Sep 17 00:00:00 2001 From: Norikatsu Shigemura Date: Sun, 2 Feb 2003 14:38:39 +0000 Subject: Conditionalize libgnugetopt dependencies. PR: ports/47750 Submitted by: Ports Fury --- misc/goldstr/Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'misc/goldstr/Makefile') 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 -- cgit v1.2.3