diff options
author | Norikatsu Shigemura <nork@FreeBSD.org> | 2003-02-02 13:54:17 +0000 |
---|---|---|
committer | Norikatsu Shigemura <nork@FreeBSD.org> | 2003-02-02 13:54:17 +0000 |
commit | ea225fddf4a6eb7ec7bdc8f02e7359df5f418b3b (patch) | |
tree | ce7674339e6759d8abc100c0478af95964dd83bf /cad | |
parent | b8648043d07e5b8266164a7c0df0a832595be88c (diff) | |
download | ports-ea225fddf4a6eb7ec7bdc8f02e7359df5f418b3b.tar.gz ports-ea225fddf4a6eb7ec7bdc8f02e7359df5f418b3b.zip |
Notes
Diffstat (limited to 'cad')
-rw-r--r-- | cad/gerbv/Makefile | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/cad/gerbv/Makefile b/cad/gerbv/Makefile index d8c446f5d702..e671fc5eef3d 100644 --- a/cad/gerbv/Makefile +++ b/cad/gerbv/Makefile @@ -14,18 +14,23 @@ MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= ports@FreeBSD.org -LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt - USE_GNOMENG= yes USE_GNOME= gdkpixbuf USE_REINPLACE= yes GNU_CONFIGURE= yes -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ - LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt" +CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" CONFIGURE_ARGS= --enable-exportpng MAN1= gerbv.1 +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib + +.if !exists(/usr/include/getopt.h) +LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt +LDFLAGS+= -lgnugetopt +.endif + post-patch: @${REINPLACE_CMD} -e "s|malloc.h|stdlib.h|g" ${WRKSRC}/src/amacro.c |