From 87c6b5340d077952535444f1173d6656696b965f Mon Sep 17 00:00:00 2001 From: John Marino Date: Wed, 26 Mar 2014 09:41:57 +0000 Subject: [PATCH] textproc/xmlada, www/aws: Hack to fix build on FreeBSD 8 For an unknown reason, the shared version of the xmlada library fails to link on FreeBSD 8. To at least get it building, only the static version is built on that platform. As a consequence, www/aws had to have a similar FreeBSD8-only instruction. Neither requires plist adjustments because they both have generated plists. No bump is required because neither have been building on FreeBSD 8. xmlada is due to be updated anyway. Most Ada libraries are static and I very well just convert xmlada to be a static-only library without condition. While here, fix a check-orphans failure due to licensing on aws. --- textproc/xmlada/Makefile.FreeBSD | 5 +++++ www/aws/Makefile | 2 +- www/aws/Makefile.FreeBSD | 6 ++++++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 textproc/xmlada/Makefile.FreeBSD create mode 100644 www/aws/Makefile.FreeBSD diff --git a/textproc/xmlada/Makefile.FreeBSD b/textproc/xmlada/Makefile.FreeBSD new file mode 100644 index 000000000000..a4695b4a073f --- /dev/null +++ b/textproc/xmlada/Makefile.FreeBSD @@ -0,0 +1,5 @@ +# $FreeBSD$ + +.if ${OSVERSION} < 900000 +CONFIGURE_ARGS+= --disable-shared +.endif diff --git a/www/aws/Makefile b/www/aws/Makefile index 052fc1d65901..d670e0789a2c 100644 --- a/www/aws/Makefile +++ b/www/aws/Makefile @@ -132,7 +132,7 @@ post-install: # additive. Trying to capture every permutation is error prone and # tedious, so a generated PLIST is the way to go. @cd ${STAGEDIR}${PREFIX}; ${FIND} * \( -type f -or -type l \) | \ - ${SORT} > ${TMPPLIST} + ${SORT} >> ${TMPPLIST} @cd ${STAGEDIR}${PREFIX}; ${FIND} * -type d | ${AWK} '/\//' | ${SORT} -r | \ ${SED} -e '/lib\/gnat$$/d' -e '/share\/doc$$/d' -e '/share\/gps/d' \ -e '/share\/examples$$/d' -e 's/^/@dirrm /g' >> ${TMPPLIST} diff --git a/www/aws/Makefile.FreeBSD b/www/aws/Makefile.FreeBSD new file mode 100644 index 000000000000..35106c176f69 --- /dev/null +++ b/www/aws/Makefile.FreeBSD @@ -0,0 +1,6 @@ +# $FreeBSD$ + +.if ${OSVERSION} < 900000 +OPTIONS_EXCLUDE=DSRT +CONF_ARGS+= ENABLED_SHARED=false +.endif