1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

net-mgmt/arts++: Fix on DragonFly and support stage

Due to ltconfig issue, DragonFly wasn't building the shared libraries.
This commit is contained in:
John Marino 2014-04-21 23:07:36 +00:00
parent 8b55038084
commit 5b90719dfe
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=351733
3 changed files with 42 additions and 15 deletions

View File

@ -8,40 +8,38 @@ CATEGORIES= net-mgmt
MASTER_SITES= http://www.caida.org/tools/utilities/arts/download/
MAINTAINER= ports@FreeBSD.org
COMMENT= A network data storage and analysis library from CAIDA
COMMENT= Network data storage and analysis library from CAIDA
USES= gmake
GNU_CONFIGURE= yes
USE_GMAKE= yes
CONFIGURE_ARGS= --enable-shared
USE_LDCONFIG= yes
MANL= artsportagg.l artsports.l artsprotos.l artsnets.l artsdump.l \
artsases.l artstoc.l artsagg.l artsprotoagg.l artsnetagg.l \
artsasagg.l artsportms.l artsportmagg.l artsintfms.l \
artsintfmagg.l artsnexthops.l artsnexthopagg.l artstos.l
NO_STAGE= yes
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${WRKSRC}/ltconfig
@${REINPLACE_CMD} -e 's/make_pair/std::make_pair/' ${WRKSRC}/classes/include/Ipv4PrefixPatricia.hh.in
@${REINPLACE_CMD} -e 's/make_pair/std::make_pair/' \
${WRKSRC}/classes/include/Ipv4PrefixPatricia.hh.in
@${REINPLACE_CMD} -e 's|@mandir@|$${DESTDIR}@mandir@|g' \
-e 's|@bindir@|$${DESTDIR}@bindir@|g' \
${WRKSRC}/apps/*/Makefile.in
@${REINPLACE_CMD} -e 's|@libdir@|$${DESTDIR}@libdir@|g' \
-e 's|@includedir@|$${DESTDIR}@includedir@|g' \
${WRKSRC}/classes/*/Makefile.in
post-configure:
@${REINPLACE_CMD} -E -e "s,( gcc\*),\1 | g++\*,g" ${WRKSRC}/libtool
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}/html
@${MKDIR} ${STAGEDIR}${DOCSDIR}/html
.for f in ChangeLog INSTALL WishList
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.for f in *.html
@${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR}/html
@${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
@${INSTALL_DATA} ${WRKSRC}/doc/*.html ${STAGEDIR}${DOCSDIR}/html
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,11 @@
--- ltconfig.orig 2014-04-21 17:21:57.000000000 -0500
+++ ltconfig
@@ -1131,7 +1131,7 @@ freebsd1*)
dynamic_linker=no
;;
-freebsd*)
+dragonfly*|freebsd*)
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
version_type=freebsd-$objformat
case $version_type in

View File

@ -94,6 +94,24 @@ lib/libArts.a
lib/libArts.la
lib/libArts.so
lib/libArts.so.0
man/manl/artsportagg.l.gz
man/manl/artsports.l.gz
man/manl/artsprotos.l.gz
man/manl/artsnets.l.gz
man/manl/artsdump.l.gz
man/manl/artsases.l.gz
man/manl/artstoc.l.gz
man/manl/artsagg.l.gz
man/manl/artsprotoagg.l.gz
man/manl/artsnetagg.l.gz
man/manl/artsasagg.l.gz
man/manl/artsportms.l.gz
man/manl/artsportmagg.l.gz
man/manl/artsintfms.l.gz
man/manl/artsintfmagg.l.gz
man/manl/artsnexthops.l.gz
man/manl/artsnexthopagg.l.gz
man/manl/artstos.l.gz
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
%%PORTDOCS%%%%DOCSDIR%%/WishList