diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-11-17 15:10:22 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-11-17 15:10:22 +0800 |
commit | c767aa11d490564c065da4dada97c781dde6bf2a (patch) | |
tree | 60ba6a51805bdc0e40e2ddfcb175f88ebf2f8a61 /www/mozilla/Makefile.common | |
parent | 9739875bd303fa29e22e5f14c887eb5eb4ebddf8 (diff) | |
download | marcuscom-ports-c767aa11d490564c065da4dada97c781dde6bf2a.tar.gz marcuscom-ports-c767aa11d490564c065da4dada97c781dde6bf2a.tar.zst marcuscom-ports-c767aa11d490564c065da4dada97c781dde6bf2a.zip |
On second thought, move the rpath stuff to Makefile.common so all Mozilla
browsers can benefit from it.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@5155 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'www/mozilla/Makefile.common')
-rw-r--r-- | www/mozilla/Makefile.common | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/www/mozilla/Makefile.common b/www/mozilla/Makefile.common index 99e5a56ac..c93fabf85 100644 --- a/www/mozilla/Makefile.common +++ b/www/mozilla/Makefile.common @@ -1,5 +1,5 @@ # $FreeBSD$ -# $MCom: ports/www/mozilla/Makefile.common,v 1.4 2005/11/14 04:12:09 ahze Exp $ +# $MCom: ports/www/mozilla/Makefile.common,v 1.5 2005/11/14 20:03:15 ahze Exp $ BUILD_DEPENDS+= zip:${PORTSDIR}/archivers/zip LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg \ @@ -16,6 +16,7 @@ MAINTAINER?= gnome@FreeBSD.org MOZILLA?= ${PORTNAME} MOZILLA_VER?= ${PORTVERSION} +MOZ_RPATH?= ${MOZILLA} USE_GNOME+= gtk20 libidl desktopfileutils USE_ICONV= yes USE_PERL5_BUILD=yes @@ -61,7 +62,7 @@ PKGCONFIG_FILES?= ${MOZILLA}-gtkmozembed ${MOZILLA}-js \ CPPFLAGS+= -I${X11BASE}/include -I${LOCALBASE}/include CFLAGS+= ${PTHREAD_CFLAGS} -LDFLAGS+= -L${X11BASE}/lib +LDFLAGS+= -L${X11BASE}/lib -Wl,-rpath,${PREFIX}/lib/${MOZ_RPATH} LIBS+= ${PTHREAD_LIBS} .if defined(WITH_SMB) @@ -112,7 +113,7 @@ MOZCONFIG_SED= ${SED} -e 's|@CPPFLAGS@|${CPPFLAGS}|' \ -e 's|%%KRB5_HOME%%|${KRB5_HOME}|' \ -e 's|%%MOZDIR%%|${PREFIX}/lib/${MOZILLA}|' -pre-configure: +pre-configure: .if exists(${.CURDIR}/pkg-install.in) @${MOZCONFIG_SED} < ${.CURDIR}/pkg-install.in > ${PKGINSTALL} .endif @@ -141,3 +142,7 @@ pre-configure: ${ECHO_CMD} "${PKGNAME}: bind installed with PORT_REPLACES_BASE_BIND causes build problems."; \ ${FALSE}; \ fi + +post-build: + @${REINPLACE_CMD} -e "s|\(Libs:.*\)\($$\)|\1 -Wl,-rpath,${PREFIX}/lib/${MOZ_RPATH}\2|" \ + ${WRKSRC}/build/unix/*.pc |