From aaa2c217140a563470c800271a992047e7aa769e Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 13 Feb 2004 07:30:21 +0000 Subject: 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. --- www/firefox-esr/Makefile | 8 +++----- www/firefox-esr/files/patch-configure | 38 +++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 5 deletions(-) create mode 100644 www/firefox-esr/files/patch-configure (limited to 'www/firefox-esr') diff --git a/www/firefox-esr/Makefile b/www/firefox-esr/Makefile index cd389ba7cae1..90c95bf19f59 100644 --- a/www/firefox-esr/Makefile +++ b/www/firefox-esr/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 \ diff --git a/www/firefox-esr/files/patch-configure b/www/firefox-esr/files/patch-configure new file mode 100644 index 000000000000..9e60372adb33 --- /dev/null +++ b/www/firefox-esr/files/patch-configure @@ -0,0 +1,38 @@ +--- configure.orig Fri Feb 13 01:06:29 2004 ++++ configure Fri Feb 13 01:07:17 2004 +@@ -9181,7 +9181,7 @@ + echo $ac_n "(cached) $ac_c" 1>&6 + else + ac_save_LIBS="$LIBS" +-LIBS="-liconv $LIBS" ++LIBS="-L$LOCALBASE/lib -liconv $LIBS" + cat > conftest.$ac_ext <&6 +- _ICONV_LIBS="$_ICONV_LIBS -liconv" ++ _ICONV_LIBS="$_ICONV_LIBS -L$LOCALBASE/lib -liconv" + else + echo "$ac_t""no" 1>&6 + echo $ac_n "checking for libiconv in -liconv""... $ac_c" 1>&6 +@@ -9222,7 +9222,7 @@ + echo $ac_n "(cached) $ac_c" 1>&6 + else + ac_save_LIBS="$LIBS" +-LIBS="-liconv $LIBS" ++LIBS="-L$LOCALBASE/lib -liconv $LIBS" + cat > conftest.$ac_ext <&6 +- _ICONV_LIBS="$_ICONV_LIBS -liconv" ++ _ICONV_LIBS="$_ICONV_LIBS -L$LOCALBASE/lib -liconv" + else + echo "$ac_t""no" 1>&6 + fi -- cgit