diff options
author | marcus <marcus@FreeBSD.org> | 2004-02-13 15:30:21 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2004-02-13 15:30:21 +0800 |
commit | aaa2c217140a563470c800271a992047e7aa769e (patch) | |
tree | aa9a0c708dc5b562bbd21999eda87254a9b99b10 /www/firefox/Makefile | |
parent | fa2b10701e2dc13bfa15cce8176036b493a53c41 (diff) | |
download | freebsd-ports-gnome-aaa2c217140a563470c800271a992047e7aa769e.tar.gz freebsd-ports-gnome-aaa2c217140a563470c800271a992047e7aa769e.tar.zst freebsd-ports-gnome-aaa2c217140a563470c800271a992047e7aa769e.zip |
Remove the ugly libnspr hack, and be a little more clever when adding
libiconv support. While this approach adds an extra patch, it insures
that the built-in nspr will used without the need for additional messy
symlinks.
Diffstat (limited to 'www/firefox/Makefile')
-rw-r--r-- | www/firefox/Makefile | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/www/firefox/Makefile b/www/firefox/Makefile index cd389ba7cae1..90c95bf19f59 100644 --- a/www/firefox/Makefile +++ b/www/firefox/Makefile @@ -25,7 +25,8 @@ BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip \ freetype-config:${PORTSDIR}/print/freetype2 ALL_TARGET= default -CONFIGURE_ENV= WITH_GTK2=yes +CONFIGURE_ENV= WITH_GTK2=yes \ + LOCALBASE=${LOCALBASE} FAKEDIR= ${WRKDIR}/fake FAKESUBDIR= ${FAKEDIR}/lib/${PORTNAME} HAS_CONFIGURE= yes @@ -77,7 +78,7 @@ LIB_DEPENDS+= Xft.2:${PORTSDIR}/x11-fonts/Xft CPPFLAGS+= -I${X11BASE}/include -I${LOCALBASE}/include CFLAGS+= ${PTHREAD_CFLAGS} -LDFLAGS+= -L${X11BASE}/lib -L${LOCALBASE}/lib +LDFLAGS+= -L${X11BASE}/lib LIBS+= ${PTHREAD_LIBS} EXTRA_SCRIPTS= ${PORTNAME}.rb @@ -145,7 +146,6 @@ pre-install: .for ii in firefox Firefox firefox-config ${EXTRA_SCRIPTS} @${ECHO_CMD} bin/${ii} >> ${PLIST} .endfor - @${ECHO_CMD} lib/firefox/lib/mozilla-1.6/libnspr4.so.1 >> ${PLIST} @cd ${FAKEDIR} && ${FIND} * ! -type d | ${SORT} >> ${PLIST}; \ ${FIND} * -type d -empty | ${SORT} | ${SED} -e \ "s:^:@exec ${MKDIR} %D/:" -e "s:$$: || true:" >> ${PLIST}; \ @@ -174,8 +174,6 @@ post-install: ${PERL} -pi -e 's|${FAKEDIR}|${PREFIX}|g' ${LOCAL_PREFIX}/bin/firefox-config ${FIND} ${LOCAL_PREFIX}/lib/pkgconfig -type f | ${XARGS} ${PERL} -pi -e \ 's|${FAKEDIR}|${PREFIX}|g' - ${LN} -sf ${LOCAL_PREFIX}/lib/mozilla-1.6/libnspr4.so \ - ${LOCAL_PREFIX}/lib/mozilla-1.6/libnspr4.so.1 -if [ ! -L ${PREFIX}/lib/browser_plugins/libjavaplugin_oji.so ]; then \ for jpi in ${JPI_LIST}; do \ if [ -f $${jpi} ]; then \ |