diff options
author | lioux <lioux@FreeBSD.org> | 2004-10-15 06:09:16 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2004-10-15 06:09:16 +0800 |
commit | f9c256e1d594c6e2e2583c0c627f9c2ce8a16a61 (patch) | |
tree | 576fb41907f6ce77adde5d61d61279ebac59719e | |
parent | 60a50a9064bc5c0e3cf0c77994af48d2b7cb2996 (diff) | |
download | freebsd-ports-gnome-f9c256e1d594c6e2e2583c0c627f9c2ce8a16a61.tar.gz freebsd-ports-gnome-f9c256e1d594c6e2e2583c0c627f9c2ce8a16a61.tar.zst freebsd-ports-gnome-f9c256e1d594c6e2e2583c0c627f9c2ce8a16a61.zip |
o Fix build on FreeBSD 5.x branch (version 502126) [1]
o Make port CFLAGS safe (do not arbitrarily add '-O2' to it)
PR: 72448 [1]
Submitted by: Michael Johnson <ahze@ahze.net> [1]
-rw-r--r-- | multimedia/openquicktime/Makefile | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/multimedia/openquicktime/Makefile b/multimedia/openquicktime/Makefile index 18ce2651250f..9a25d04b0882 100644 --- a/multimedia/openquicktime/Makefile +++ b/multimedia/openquicktime/Makefile @@ -23,7 +23,6 @@ GNU_CONFIGURE= yes USE_GNOME= gtk12 USE_GMAKE= yes USE_REINPLACE= yes -USE_SIZE= yes INSTALL_SHLIBS= yes PKGDEINSTALL= ${PKGINSTALL} @@ -31,10 +30,6 @@ OPTIONS= DEBUG "Turn on debugging" on .include <bsd.port.pre.mk> -.if ${OSVERSION} >= 502126 -BROKEN= "Does not compile on FreeBSD >= 5.x" -.endif - .ifndef(WITH_DEBUG) CONFIGURE_ARGS+= --enable-debug=no .endif @@ -44,7 +39,15 @@ BROKEN= "Does not build on sparc64" .endif post-patch: - @${REINPLACE_CMD} -e "s/xCC/xc/" ${WRKSRC}/configure + @${REINPLACE_CMD} \ + -e 's|xCC|xc|' \ + -e 's|-O2||' \ + ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} +.if ${OSVERSION} >= 502126 + @${REINPLACE_CMD} \ + -e 's|-fpic||' \ + ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} +.endif post-install: @${SETENV} PKG_PREFIX=${PREFIX} ${SH} \ |