diff options
Diffstat (limited to 'devel/dparser/Makefile')
-rw-r--r-- | devel/dparser/Makefile | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/devel/dparser/Makefile b/devel/dparser/Makefile index 94c5c892f994..d06ef746f8bd 100644 --- a/devel/dparser/Makefile +++ b/devel/dparser/Makefile @@ -7,7 +7,7 @@ # PORTNAME= dparser -PORTVERSION= 1.10 +PORTVERSION= 1.11 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -24,7 +24,16 @@ MAKE_ARGS= CC="${CC}" D_OPTIMIZE= MAN1= make_dparser.1 PORTDOCS= faq.html index.html manual.html PLIST_FILES= bin/make_dparser include/dparse.h include/dparse_tables.h \ - include/dsymtab.h lib/libdparse.a + include/dsymtab.h lib/${LIBDPARSE} + +.if defined(WITH_GC) +LIB_DEPENDS+= gc:${PORTSDIR}/devel/boehm-gc +MAKE_ARGS+= D_USE_GC=1 \ + GC_CFLAGS="-I${LOCALBASE}/include -L${LOCALBASE}/lib" +LIBDPARSE= libdparse_gc.a +.else +LIBDPARSE= libdparse.a +.endif .include <bsd.port.pre.mk> @@ -35,10 +44,10 @@ BROKEN= "Does not compile on !i386" do-install: ${INSTALL_PROGRAM} ${WRKSRC}/make_dparser ${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/make_dparser.1 ${MANPREFIX}/man/man1 - ${INSTALL_DATA} ${WRKSRC}/libdparse.a ${PREFIX}/lib ${INSTALL_DATA} ${WRKSRC}/dparse.h ${PREFIX}/include ${INSTALL_DATA} ${WRKSRC}/dparse_tables.h ${PREFIX}/include ${INSTALL_DATA} ${WRKSRC}/dsymtab.h ${PREFIX}/include + ${INSTALL_DATA} ${WRKSRC}/${LIBDPARSE} ${PREFIX}/lib .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/*.html ${DOCSDIR} |