diff options
author | nork <nork@FreeBSD.org> | 2003-02-02 22:55:53 +0800 |
---|---|---|
committer | nork <nork@FreeBSD.org> | 2003-02-02 22:55:53 +0800 |
commit | 3a9fbf363272ada89fbcbec25f92fc278e6a23c7 (patch) | |
tree | 2dfa860bd530c5db02398b944104df2128a5f769 /textproc | |
parent | 207220a95de55f1a9a6219faf0bd54db939ca514 (diff) | |
download | freebsd-ports-gnome-3a9fbf363272ada89fbcbec25f92fc278e6a23c7.tar.gz freebsd-ports-gnome-3a9fbf363272ada89fbcbec25f92fc278e6a23c7.tar.zst freebsd-ports-gnome-3a9fbf363272ada89fbcbec25f92fc278e6a23c7.zip |
Conditionalize libgnugetopt dependencies.
PR: ports/47758
Submitted by: Ports Fury
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/raptor/Makefile | 12 | ||||
-rw-r--r-- | textproc/raptor2/Makefile | 12 |
2 files changed, 16 insertions, 8 deletions
diff --git a/textproc/raptor/Makefile b/textproc/raptor/Makefile index 520456ea6c42..013aacbe1e66 100644 --- a/textproc/raptor/Makefile +++ b/textproc/raptor/Makefile @@ -16,8 +16,7 @@ MASTER_SITE_SUBDIR= librdf MAINTAINER= ports@FreeBSD.org -LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt \ - xml2.5:${PORTSDIR}/textproc/libxml2 \ +LIB_DEPENDS= xml2.5:${PORTSDIR}/textproc/libxml2 \ xmlparse.1:${PORTSDIR}/www/libwww LIBWWW_CONFIG= ${LOCALBASE}/bin/libwww-config @@ -30,7 +29,12 @@ INSTALLS_SHLIB= yes MAN1= rdfdump.1 MAN3= libraptor.3 -CPPFLAGS= -I${LOCALBASE}/include `${LIBWWW_CONFIG} --cflags` -LDFLAGS= -L${LOCALBASE}/lib -lgnugetopt `${LIBWWW_CONFIG} --libs` +CPPFLAGS+= -I${LOCALBASE}/include `${LIBWWW_CONFIG} --cflags` +LDFLAGS+= -L${LOCALBASE}/lib `${LIBWWW_CONFIG} --libs` + +.if !exists(/usr/include/getopt.h) +LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt +LDFLAGS+= -lgnugetopt +.endif .include <bsd.port.mk> diff --git a/textproc/raptor2/Makefile b/textproc/raptor2/Makefile index 520456ea6c42..013aacbe1e66 100644 --- a/textproc/raptor2/Makefile +++ b/textproc/raptor2/Makefile @@ -16,8 +16,7 @@ MASTER_SITE_SUBDIR= librdf MAINTAINER= ports@FreeBSD.org -LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt \ - xml2.5:${PORTSDIR}/textproc/libxml2 \ +LIB_DEPENDS= xml2.5:${PORTSDIR}/textproc/libxml2 \ xmlparse.1:${PORTSDIR}/www/libwww LIBWWW_CONFIG= ${LOCALBASE}/bin/libwww-config @@ -30,7 +29,12 @@ INSTALLS_SHLIB= yes MAN1= rdfdump.1 MAN3= libraptor.3 -CPPFLAGS= -I${LOCALBASE}/include `${LIBWWW_CONFIG} --cflags` -LDFLAGS= -L${LOCALBASE}/lib -lgnugetopt `${LIBWWW_CONFIG} --libs` +CPPFLAGS+= -I${LOCALBASE}/include `${LIBWWW_CONFIG} --cflags` +LDFLAGS+= -L${LOCALBASE}/lib `${LIBWWW_CONFIG} --libs` + +.if !exists(/usr/include/getopt.h) +LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt +LDFLAGS+= -lgnugetopt +.endif .include <bsd.port.mk> |