diff options
author | linimon <linimon@FreeBSD.org> | 2017-02-10 02:53:12 +0800 |
---|---|---|
committer | linimon <linimon@FreeBSD.org> | 2017-02-10 02:53:12 +0800 |
commit | d986308550a19d058cd7490871a870e705d8365c (patch) | |
tree | be5801b4b385a04c75cc1baf3b06a46cc4f893e5 | |
parent | b9168d5cd97c323a0847a91c6972bca6948a21a0 (diff) | |
download | freebsd-ports-gnome-d986308550a19d058cd7490871a870e705d8365c.tar.gz freebsd-ports-gnome-d986308550a19d058cd7490871a870e705d8365c.tar.zst freebsd-ports-gnome-d986308550a19d058cd7490871a870e705d8365c.zip |
Add -fPIC to various ports to enable them to build on armv6.
Approved by: portmgr (tier-2 blanket)
-rw-r--r-- | archivers/fastjar/Makefile | 2 | ||||
-rw-r--r-- | audio/audiere/Makefile | 2 | ||||
-rw-r--r-- | biology/p5-AcePerl/Makefile | 11 | ||||
-rw-r--r-- | comms/libfec/Makefile | 9 | ||||
-rw-r--r-- | devel/dcmtk/Makefile | 5 | ||||
-rw-r--r-- | devel/p5-subversion/Makefile | 2 | ||||
-rw-r--r-- | devel/py-ode/Makefile | 2 | ||||
-rw-r--r-- | games/abuse_sdl/Makefile | 1 | ||||
-rw-r--r-- | games/quake2-relay/Makefile | 7 | ||||
-rw-r--r-- | graphics/py-soya3d/Makefile | 6 | ||||
-rw-r--r-- | lang/squirrel/Makefile | 7 | ||||
-rw-r--r-- | mail/courier-authlib-vchkpw/Makefile | 2 | ||||
-rw-r--r-- | math/p5-Math-GSL/Makefile | 2 | ||||
-rw-r--r-- | math/pari/Makefile | 2 | ||||
-rw-r--r-- | misc/talkfilters/Makefile | 2 | ||||
-rw-r--r-- | multimedia/ffmpeg0/Makefile | 2 | ||||
-rw-r--r-- | net/olsrd/Makefile | 6 | ||||
-rw-r--r-- | net/p5-Parallel-Pvm/Makefile | 4 | ||||
-rw-r--r-- | textproc/py-ltxml/Makefile | 7 | ||||
-rw-r--r-- | x11-toolkits/irrlicht/Makefile | 2 | ||||
-rw-r--r-- | x11-wm/fvwm/Makefile | 2 |
21 files changed, 50 insertions, 35 deletions
diff --git a/archivers/fastjar/Makefile b/archivers/fastjar/Makefile index 699decb81259..146609add818 100644 --- a/archivers/fastjar/Makefile +++ b/archivers/fastjar/Makefile @@ -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 \ diff --git a/audio/audiere/Makefile b/audio/audiere/Makefile index c510f1b342ce..45ad97c4ff4e 100644 --- a/audio/audiere/Makefile +++ b/audio/audiere/Makefile @@ -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 diff --git a/biology/p5-AcePerl/Makefile b/biology/p5-AcePerl/Makefile index 66126d02b99e..188922db72d1 100644 --- a/biology/p5-AcePerl/Makefile +++ b/biology/p5-AcePerl/Makefile @@ -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> diff --git a/comms/libfec/Makefile b/comms/libfec/Makefile index 6f41d8cb07bc..6e5e198afc07 100644 --- a/comms/libfec/Makefile +++ b/comms/libfec/Makefile @@ -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> diff --git a/devel/dcmtk/Makefile b/devel/dcmtk/Makefile index 49aafe82a006..bc541fb5b79d 100644 --- a/devel/dcmtk/Makefile +++ b/devel/dcmtk/Makefile @@ -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 diff --git a/devel/p5-subversion/Makefile b/devel/p5-subversion/Makefile index d5495fc8cb9b..e43d4e1b8b9c 100644 --- a/devel/p5-subversion/Makefile +++ b/devel/p5-subversion/Makefile @@ -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 diff --git a/devel/py-ode/Makefile b/devel/py-ode/Makefile index 407b2b89c27e..0c899f0a8975 100644 --- a/devel/py-ode/Makefile +++ b/devel/py-ode/Makefile @@ -18,6 +18,8 @@ BUILD_DEPENDS= ${LOCALBASE}/lib/libode.a:devel/ode 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) diff --git a/games/abuse_sdl/Makefile b/games/abuse_sdl/Makefile index 7c124221071a..3e12bc9be2b3 100644 --- a/games/abuse_sdl/Makefile +++ b/games/abuse_sdl/Makefile @@ -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 diff --git a/games/quake2-relay/Makefile b/games/quake2-relay/Makefile index 0593f89d62cb..b68eab0168f9 100644 --- a/games/quake2-relay/Makefile +++ b/games/quake2-relay/Makefile @@ -22,15 +22,14 @@ MAKE_ARGS= MODE=release OBJ_DIR=. OUT_DIR=. Q2MODULE=game.so \ 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 diff --git a/graphics/py-soya3d/Makefile b/graphics/py-soya3d/Makefile index c498ae62be53..1c890a2994ca 100644 --- a/graphics/py-soya3d/Makefile +++ b/graphics/py-soya3d/Makefile @@ -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}${EXTRACT_SUFX} .include <bsd.port.pre.mk> -.if ${ARCH} == "amd64" -CFLAGS += -fPIC -.endif - post-patch: @${REINPLACE_CMD} -e \ 's|%%LOCALBASE%%|${LOCALBASE}|g' -e \ diff --git a/lang/squirrel/Makefile b/lang/squirrel/Makefile index 9aea441fa114..80505b3da780 100644 --- a/lang/squirrel/Makefile +++ b/lang/squirrel/Makefile @@ -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 diff --git a/mail/courier-authlib-vchkpw/Makefile b/mail/courier-authlib-vchkpw/Makefile index 12f4fcf99f2b..ea3887d59752 100644 --- a/mail/courier-authlib-vchkpw/Makefile +++ b/mail/courier-authlib-vchkpw/Makefile @@ -9,4 +9,6 @@ CATEGORIES= mail MASTERDIR= ${.CURDIR}/../../security/courier-authlib +CFLAGS_aarch64= -fPIC + .include "${MASTERDIR}/Makefile" diff --git a/math/p5-Math-GSL/Makefile b/math/p5-Math-GSL/Makefile index 607d432b48fb..621932bb33ea 100644 --- a/math/p5-Math-GSL/Makefile +++ b/math/p5-Math-GSL/Makefile @@ -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} diff --git a/math/pari/Makefile b/math/pari/Makefile index 9fc61e26204f..8c1e9656dce7 100644 --- a/math/pari/Makefile +++ b/math/pari/Makefile @@ -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 diff --git a/misc/talkfilters/Makefile b/misc/talkfilters/Makefile index 3d3e9351f8ed..b4b742d012ee 100644 --- a/misc/talkfilters/Makefile +++ b/misc/talkfilters/Makefile @@ -21,6 +21,8 @@ USE_LDCONFIG= yes SUB_FILES= pkg-message +CFLAGS_aarch64= -fPIC + INFO= talkfilters post-extract: diff --git a/multimedia/ffmpeg0/Makefile b/multimedia/ffmpeg0/Makefile index 1dc0381fec28..7ab62c43b0d6 100644 --- a/multimedia/ffmpeg0/Makefile +++ b/multimedia/ffmpeg0/Makefile @@ -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 diff --git a/net/olsrd/Makefile b/net/olsrd/Makefile index db17ce793108..22e2abe6414a 100644 --- a/net/olsrd/Makefile +++ b/net/olsrd/Makefile @@ -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 diff --git a/net/p5-Parallel-Pvm/Makefile b/net/p5-Parallel-Pvm/Makefile index 09b0b44c25ab..5c4d4baea6d3 100644 --- a/net/p5-Parallel-Pvm/Makefile +++ b/net/p5-Parallel-Pvm/Makefile @@ -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> diff --git a/textproc/py-ltxml/Makefile b/textproc/py-ltxml/Makefile index a0591dbe584f..75ff8cc7d53f 100644 --- a/textproc/py-ltxml/Makefile +++ b/textproc/py-ltxml/Makefile @@ -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 diff --git a/x11-toolkits/irrlicht/Makefile b/x11-toolkits/irrlicht/Makefile index 26f5438ead25..713b98538d11 100644 --- a/x11-toolkits/irrlicht/Makefile +++ b/x11-toolkits/irrlicht/Makefile @@ -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 diff --git a/x11-wm/fvwm/Makefile b/x11-wm/fvwm/Makefile index 9784e31b2cda..684572ed632e 100644 --- a/x11-wm/fvwm/Makefile +++ b/x11-wm/fvwm/Makefile @@ -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' \ |