Date: Thu, 9 Feb 2017 18:53:12 +0000 (UTC) From: Mark Linimon <linimon@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r433767 - in head: archivers/fastjar audio/audiere biology/p5-AcePerl comms/libfec devel/dcmtk devel/p5-subversion devel/py-ode games/abuse_sdl games/quake2-relay graphics/py-soya3d lan... Message-ID: <201702091853.v19IrCxs010112@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: linimon Date: Thu Feb 9 18:53:12 2017 New Revision: 433767 URL: https://svnweb.freebsd.org/changeset/ports/433767 Log: Add -fPIC to various ports to enable them to build on armv6. Approved by: portmgr (tier-2 blanket) Modified: head/archivers/fastjar/Makefile head/audio/audiere/Makefile head/biology/p5-AcePerl/Makefile head/comms/libfec/Makefile head/devel/dcmtk/Makefile head/devel/p5-subversion/Makefile head/devel/py-ode/Makefile head/games/abuse_sdl/Makefile head/games/quake2-relay/Makefile head/graphics/py-soya3d/Makefile head/lang/squirrel/Makefile head/mail/courier-authlib-vchkpw/Makefile head/math/p5-Math-GSL/Makefile head/math/pari/Makefile head/misc/talkfilters/Makefile head/multimedia/ffmpeg0/Makefile head/net/olsrd/Makefile head/net/p5-Parallel-Pvm/Makefile head/textproc/py-ltxml/Makefile head/x11-toolkits/irrlicht/Makefile head/x11-wm/fvwm/Makefile Modified: head/archivers/fastjar/Makefile ============================================================================== --- head/archivers/fastjar/Makefile Thu Feb 9 18:35:48 2017 (r433766) +++ head/archivers/fastjar/Makefile Thu Feb 9 18:53:12 2017 (r433767) @@ -15,6 +15,8 @@ USES= gmake makeinfo perl5 tar:bzip2 USES_PERL5= build GNU_CONFIGURE= yes +CFLAGS_aarch64= -fPIC + WRKSRC= ${WRKDIR}/${PORTNAME} PORTDOCS= CHANGES ChangeLog NEWS README PLIST_FILES= bin/fastjar bin/grepjar \ Modified: head/audio/audiere/Makefile ============================================================================== --- head/audio/audiere/Makefile Thu Feb 9 18:35:48 2017 (r433766) +++ head/audio/audiere/Makefile Thu Feb 9 18:53:12 2017 (r433767) @@ -22,6 +22,8 @@ CONFIGURE_ENV= PTHREAD_LIBS="-lpthread" CPPFLAGS+= -I${LOCALBASE}/include/speex -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib +CFLAGS_aarch64= -fPIC + PORTDOCS= changelog.txt cvs.txt dependencies.txt faq.txt glossary.txt \ license.txt overview.txt readme.txt release-howto.txt \ tutorial.txt Modified: head/biology/p5-AcePerl/Makefile ============================================================================== --- head/biology/p5-AcePerl/Makefile Thu Feb 9 18:35:48 2017 (r433766) +++ head/biology/p5-AcePerl/Makefile Thu Feb 9 18:53:12 2017 (r433767) @@ -17,17 +17,12 @@ LICENSE_COMB= dual BUILD_DEPENDS= p5-Cache-Cache>=0:devel/p5-Cache-Cache RUN_DEPENDS:= ${BUILD_DEPENDS} -BROKEN_aarch64= Fails to link: unresolvable R_AARCH64_ADR_PREL_PG_HI21 relocation - MAKE_JOBS_UNSAFE= yes USES= perl5 USE_PERL5= configure -.include <bsd.port.pre.mk> - -.if ${ARCH} == "amd64" -CFLAGS+= -fPIC -.endif +CFLAGS_aarch64= -fPIC +CFLAGS_amd64= -fPIC post-patch: @${SED} -e 's|XX__CC__XX|${CC}|' < ${FILESDIR}/FREEBSD_DEF \ @@ -37,4 +32,4 @@ post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Ace/Freesubs/Freesubs.so ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Ace/RPC/RPC.so -.include <bsd.port.post.mk> +.include <bsd.port.mk> Modified: head/comms/libfec/Makefile ============================================================================== --- head/comms/libfec/Makefile Thu Feb 9 18:35:48 2017 (r433766) +++ head/comms/libfec/Makefile Thu Feb 9 18:53:12 2017 (r433767) @@ -26,11 +26,8 @@ PLIST_FILES= include/fec.h \ man/man3/rs.3.gz \ man/man3/simd-viterbi.3.gz -.include <bsd.port.pre.mk> - -.if ${ARCH} == "amd64" -CFLAGS+= -fPIC -.endif +CFLAGS_aarch64= -fPIC +CFLAGS_amd64= -fPIC post-patch: @${CP} ${FILESDIR}/cpu_mode.c ${WRKSRC} @@ -46,4 +43,4 @@ do-install: ${INSTALL_MAN} ${WRKSRC}/${_man} ${STAGEDIR}${MAN3PREFIX}/man/man3 .endfor -.include <bsd.port.post.mk> +.include <bsd.port.mk> Modified: head/devel/dcmtk/Makefile ============================================================================== --- head/devel/dcmtk/Makefile Thu Feb 9 18:35:48 2017 (r433766) +++ head/devel/dcmtk/Makefile Thu Feb 9 18:53:12 2017 (r433767) @@ -29,10 +29,11 @@ PLIST_SUB= SHLIBVER=${SHLIBVER} PORTDOCS= * -OPTIONS_DEFINE= DOCS - +CFLAGS_aarch64= -fPIC CFLAGS_amd64= -fPIC +OPTIONS_DEFINE= DOCS + post-patch: ${FIND} ${WRKSRC} -name "*.h.orig" -delete Modified: head/devel/p5-subversion/Makefile ============================================================================== --- head/devel/p5-subversion/Makefile Thu Feb 9 18:35:48 2017 (r433766) +++ head/devel/p5-subversion/Makefile Thu Feb 9 18:53:12 2017 (r433767) @@ -35,6 +35,8 @@ CFLAGS_aarch64= -fPIC ALL_TARGET= swig-pl-lib swig-pl INSTALL_TARGET= install-swig-pl +CFLAGS_aarch64= -fPIC + pre-install: ${REINPLACE_CMD} '/SWIG_PL_DIR/s, install$$, all pure_install,g' ${WRKSRC}/Makefile Modified: head/devel/py-ode/Makefile ============================================================================== --- head/devel/py-ode/Makefile Thu Feb 9 18:35:48 2017 (r433766) +++ head/devel/py-ode/Makefile Thu Feb 9 18:53:12 2017 (r433767) @@ -18,6 +18,8 @@ BUILD_DEPENDS= ${LOCALBASE}/lib/libode.a USES= python:2 tar:bzip2 USE_PYTHON= autoplist distutils +CFLAGS_aarch64= -fPIC + OPTIONS_DEFINE= TRIMESH OPTIONS_DEFAULT=TRIMESH TRIMESH_DESC= Trimesh support (sync with OPCODE opt of devel/ode) Modified: head/games/abuse_sdl/Makefile ============================================================================== --- head/games/abuse_sdl/Makefile Thu Feb 9 18:35:48 2017 (r433766) +++ head/games/abuse_sdl/Makefile Thu Feb 9 18:53:12 2017 (r433767) @@ -20,6 +20,7 @@ USE_SDL= mixer sdl GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-assetdir=${DATADIR} --enable-release +CFLAGS_aarch64= -fPIC CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib Modified: head/games/quake2-relay/Makefile ============================================================================== --- head/games/quake2-relay/Makefile Thu Feb 9 18:35:48 2017 (r433766) +++ head/games/quake2-relay/Makefile Thu Feb 9 18:53:12 2017 (r433767) @@ -22,15 +22,14 @@ MAKE_ARGS= MODE=release OBJ_DIR=. OUT_DI WRKSRC= ${WRKDIR}/relay-${PORTVERSION} PORTDOCS= FAQ README +CFLAGS_aarch64= -fPIC +CFLAGS_amd64= -fPIC + OPTIONS_DEFINE= DOCS .include "${.CURDIR}/../quake2-data/Makefile.include" .include <bsd.port.options.mk> -.if ${ARCH} == "amd64" || ${ARCH} == "ia64" -CFLAGS+= -fPIC -.endif - post-patch: .SILENT ${REINPLACE_CMD} -e 's/-ldl// ; /^include/d ; \ s/cp -p/${INSTALL_PROGRAM}/' ${WRKSRC}/Makefile Modified: head/graphics/py-soya3d/Makefile ============================================================================== --- head/graphics/py-soya3d/Makefile Thu Feb 9 18:35:48 2017 (r433766) +++ head/graphics/py-soya3d/Makefile Thu Feb 9 18:53:12 2017 (r433767) @@ -27,6 +27,8 @@ USE_GL= glew glu USE_PYTHON= autoplist distutils USE_SDL= sdl +CFLAGS_aarch64= -fPIC +CFLAGS_amd64= -fPIC LDFLAGS+= -L${LOCALBASE}/lib -lGLU SOYATUTVER= 0.14 @@ -45,10 +47,6 @@ DISTFILES+= SoyaTutorial-${SOYATUTVER}${ .include <bsd.port.pre.mk> -.if ${ARCH} == "amd64" -CFLAGS += -fPIC -.endif - post-patch: @${REINPLACE_CMD} -e \ 's|%%LOCALBASE%%|${LOCALBASE}|g' -e \ Modified: head/lang/squirrel/Makefile ============================================================================== --- head/lang/squirrel/Makefile Thu Feb 9 18:35:48 2017 (r433766) +++ head/lang/squirrel/Makefile Thu Feb 9 18:53:12 2017 (r433767) @@ -16,11 +16,14 @@ USES= dos2unix USE_LDCONFIG= yes WRKSRC= ${WRKDIR}/SQUIRREL2 +CFLAGS_aarch64= -fPIC +CFLAGS_amd64= -fPIC +CFLAGS_sparc64= -fPIC + .include <bsd.port.pre.mk> -.if ${ARCH} == amd64 || ${ARCH} == sparc64 || ${ARCH} == ia64 +.if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH} == sparc64 ALL_TARGET= sq64 -CFLAGS+= -fPIC .else ALL_TARGET= sq32 .endif Modified: head/mail/courier-authlib-vchkpw/Makefile ============================================================================== --- head/mail/courier-authlib-vchkpw/Makefile Thu Feb 9 18:35:48 2017 (r433766) +++ head/mail/courier-authlib-vchkpw/Makefile Thu Feb 9 18:53:12 2017 (r433767) @@ -9,4 +9,6 @@ CATEGORIES= mail MASTERDIR= ${.CURDIR}/../../security/courier-authlib +CFLAGS_aarch64= -fPIC + .include "${MASTERDIR}/Makefile" Modified: head/math/p5-Math-GSL/Makefile ============================================================================== --- head/math/p5-Math-GSL/Makefile Thu Feb 9 18:35:48 2017 (r433766) +++ head/math/p5-Math-GSL/Makefile Thu Feb 9 18:53:12 2017 (r433767) @@ -25,6 +25,8 @@ USES= perl5 BROKEN_sparc64= does not compile on sparc64 +CFLAGS_aarch64= -fPIC + post-install: ${FIND} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Math/GSL/ -name "*.so" | ${XARGS} ${STRIP_CMD} Modified: head/math/pari/Makefile ============================================================================== --- head/math/pari/Makefile Thu Feb 9 18:35:48 2017 (r433766) +++ head/math/pari/Makefile Thu Feb 9 18:53:12 2017 (r433767) @@ -30,6 +30,8 @@ USE_LDCONFIG= yes USE_PERL5= build USES= perl5 +CFLAGS_aarch64= -fPIC + OPTIONS_DEFINE= DOCS OPTIMIZED_CFLAGS X11 OPTIONS_DEFAULT= OPTIMIZED_CFLAGS X11 .ifndef WITH_DEBUG Modified: head/misc/talkfilters/Makefile ============================================================================== --- head/misc/talkfilters/Makefile Thu Feb 9 18:35:48 2017 (r433766) +++ head/misc/talkfilters/Makefile Thu Feb 9 18:53:12 2017 (r433767) @@ -21,6 +21,8 @@ USE_LDCONFIG= yes SUB_FILES= pkg-message +CFLAGS_aarch64= -fPIC + INFO= talkfilters post-extract: Modified: head/multimedia/ffmpeg0/Makefile ============================================================================== --- head/multimedia/ffmpeg0/Makefile Thu Feb 9 18:35:48 2017 (r433766) +++ head/multimedia/ffmpeg0/Makefile Thu Feb 9 18:53:12 2017 (r433767) @@ -29,6 +29,8 @@ USE_PERL5= build SHEBANG_FILES= doc/texi2pod.pl NOPRECIOUSMAKEVARS= yes # ARCH +CFLAGS_aarch64= -fPIC + FFMPEG_SUFFIX= 0 HAS_CONFIGURE= yes CONFIGURE_LOG= config.err Modified: head/net/olsrd/Makefile ============================================================================== --- head/net/olsrd/Makefile Thu Feb 9 18:35:48 2017 (r433766) +++ head/net/olsrd/Makefile Thu Feb 9 18:53:12 2017 (r433767) @@ -19,15 +19,15 @@ USE_RC_SUBR= olsrd ALL_TARGET= build_all INSTALL_TARGET= install_all +CFLAGS_aarch64= -fPIC +CFLAGS_amd64= -fPIC + OPTIONS_DEFINE= MULTI_IF MULTI_IF_DESC= IPv4 multiple interface support MULTI_IF_LIB_DEPENDS= libnet.so:net/libnet MULTI_IF_MAKE_ARGS= LIBNET=1 -CFLAGS_ia64= -fPIC -CFLAGS_amd64= -fPIC - post-patch: @${REINPLACE_CMD} -e 's|/sbin/ldconfig|:|g' ${WRKSRC}/make/Makefile.fbsd Modified: head/net/p5-Parallel-Pvm/Makefile ============================================================================== --- head/net/p5-Parallel-Pvm/Makefile Thu Feb 9 18:35:48 2017 (r433766) +++ head/net/p5-Parallel-Pvm/Makefile Thu Feb 9 18:53:12 2017 (r433767) @@ -20,6 +20,8 @@ PVM_ROOT= ${LOCALBASE}/lib/pvm CONFIGURE_ENV= PVM_ROOT="${PVM_ROOT}" PVM_ARCH="${PVM_ROOT}/lib/pvmgetarch" CONFIGURE_ARGS= INC="-I${LOCALBASE}/include" -NOT_FOR_ARCHS= amd64 ia64 +NOT_FOR_ARCHS= amd64 + +CFLAGS_aarch64= -fPIC .include <bsd.port.mk> Modified: head/textproc/py-ltxml/Makefile ============================================================================== --- head/textproc/py-ltxml/Makefile Thu Feb 9 18:35:48 2017 (r433766) +++ head/textproc/py-ltxml/Makefile Thu Feb 9 18:53:12 2017 (r433767) @@ -21,6 +21,9 @@ USES= python USE_PYTHON= distutils autoplist USE_LDCONFIG= yes +CFLAGS_aarch64= -fPIC +CFLAGS_amd64= -fPIC + DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} PORTDOCS= 00README @@ -30,10 +33,6 @@ OPTIONS_DEFINE= DOCS EXAMPLES .include <bsd.port.pre.mk> -.if ${ARCH} == "amd64" || ${ARCH} == "ia64" -CFLAGS+= -fPIC -.endif - post-install: @${STRIP_CMD} \ ${STAGEDIR}${PYTHON}${PYTHON_SITELIBDIR}/PyLTXML/LTXMLinter.so Modified: head/x11-toolkits/irrlicht/Makefile ============================================================================== --- head/x11-toolkits/irrlicht/Makefile Thu Feb 9 18:35:48 2017 (r433766) +++ head/x11-toolkits/irrlicht/Makefile Thu Feb 9 18:53:12 2017 (r433767) @@ -21,8 +21,8 @@ USE_XORG= x11 xxf86vm USE_LDCONFIG= yes MAKE_ENV= SHLIB_VER=${SHARED_LIB_VER} +CFLAGS_aarch64= -fPIC CFLAGS_amd64= -fPIC -CFLAGS_ia64= -fPIC PLIST_SUB= SHARED_LIB_VER=${SHARED_LIB_VER} SUB_FILES= pkg-message Modified: head/x11-wm/fvwm/Makefile ============================================================================== --- head/x11-wm/fvwm/Makefile Thu Feb 9 18:35:48 2017 (r433766) +++ head/x11-wm/fvwm/Makefile Thu Feb 9 18:53:12 2017 (r433767) @@ -14,6 +14,8 @@ COMMENT= Fvwm window manager USES= imake USE_XORG= xbitmaps xpm xext x11 xmu +CFLAGS_aarch64= -fPIC + pre-configure: ${REINPLACE_CMD} -e '/DependSubdirs/y,/*#, ,' ${WRKSRC}/Imakefile ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702091853.v19IrCxs010112>