diff options
author | Mark Linimon <linimon@FreeBSD.org> | 2019-10-04 22:24:36 +0000 |
---|---|---|
committer | Mark Linimon <linimon@FreeBSD.org> | 2019-10-04 22:24:36 +0000 |
commit | a4c44afe3e4fbad9090175718def444f0fa5e326 (patch) | |
tree | f1f32135460a573d052af75a86ad9c75538ff2f1 /textproc/libxml2 | |
parent | 21894710ae8e5c17201f9964716adf0726eacb2b (diff) | |
download | ports-a4c44afe3e4fbad9090175718def444f0fa5e326.tar.gz ports-a4c44afe3e4fbad9090175718def444f0fa5e326.zip |
Prepare for powerpc-on-clang by deleting hard-coded tests for libstdc++.so
as a stand-in for "are we running on gcc".
For people already testing powerpc on clang, it is possible that they
already have both compilers in base. Thus, the assumption that "gcc is
in base" (e.g. libstdc++.so exists) always means "force use of GCC" is
already broken. It will be for everyone on -CURRENT once the switch is
made.
Tested on both amd64 and powerpc64.
PR: 239153
Approved by: gnome (maintainer-timeout, > 1 month)
Notes
Notes:
svn path=/head/; revision=513791
Diffstat (limited to 'textproc/libxml2')
-rw-r--r-- | textproc/libxml2/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/textproc/libxml2/Makefile b/textproc/libxml2/Makefile index 8a60ae724b88..fe57bb18d3bc 100644 --- a/textproc/libxml2/Makefile +++ b/textproc/libxml2/Makefile @@ -21,7 +21,7 @@ LICENSE_FILE_TRIO= ${FILESDIR}/LICENSE.TRIO LICENSE_PERMS_TRIO= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept GNU_CONFIGURE= yes -USES+= cpe gmake iconv libtool pathfix pkgconfig shebangfix +USES+= compiler cpe gmake iconv libtool pathfix pkgconfig shebangfix CPE_VENDOR= xmlsoft USE_LDCONFIG= yes CONFIGURE_ARGS?=--with-iconv=${ICONV_PREFIX} \ @@ -54,6 +54,8 @@ THREAD_ALLOC_CONFIGURE_WITH= thread-alloc .endif # !defined(MASTERDIR) +.include <bsd.port.pre.mk> + post-patch: .for d in . doc doc/devhelp doc/examples @${REINPLACE_CMD} -e '/^install-data-am:/ s|install-data-local||' \ @@ -65,7 +67,7 @@ post-patch: s|/etc/sgml/catalog|${LOCALBASE}/share/sgml/catalog|g' \ ${WRKSRC}/${f} .endfor -.if exists(/usr/lib/libstdc++.so) +.if ${CHOSEN_COMPILER_TYPE} == gcc @${REINPLACE_CMD} -e 's/ -Wno-array-bounds//' ${WRKSRC}/configure .endif @@ -74,6 +76,6 @@ post-install: @${RM} -r ${STAGEDIR}${PREFIX}/share/gtk-doc .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> .endif |