Date: Fri, 14 Aug 2009 11:11:46 GMT From: svn-freebsd-gecko@chruetertee.ch To: freebsd-gecko@freebsd.org Subject: [SVN-Commit] r76 - branches/experimental/Mk Message-ID: <200908141111.n7EBBk9a058572@trillian.chruetertee.ch>
next in thread | raw e-mail | index | archive | help
Author: beat Date: Fri Aug 14 11:11:46 2009 New Revision: 76 Log: - Update bsd.gecko,mk for upcomming Thunderbird 3 update: Introduce MOZSRC variable which points to ${WRKDIR}/mozilla because Thunderbird 3 changed the distribution format. Submitted by: Florian Smeets <flo AT kasimir.com> Modified: branches/experimental/Mk/bsd.gecko.mk Modified: branches/experimental/Mk/bsd.gecko.mk ============================================================================== --- branches/experimental/Mk/bsd.gecko.mk Thu Aug 13 22:03:48 2009 (r75) +++ branches/experimental/Mk/bsd.gecko.mk Fri Aug 14 11:11:46 2009 (r76) @@ -65,7 +65,7 @@ # # post-patch: # @${REINPALCE_CMD} -e 's|mozilla-|${GECKO}-|' \ -# ${WRKSRC}/configure +# ${MOZSRC}/configure # # If you want your port to check the ${GECKO} variable to see which backend # has been chosen. @@ -76,7 +76,7 @@ # post-patch: # .if ${GECKO}=="seamonkey" # @${REINPLACE_CMD} -e 's|mozilla-|seamonkey-|' \ -# ${WRKSRC}/configure +# ${MOZSRC}/configure # .endif _GECKO_ALL= firefox nvu seamonkey thunderbird xulrunner flock mozilla \ @@ -258,7 +258,7 @@ ice xproto MOZILLA_SUFX?= none -WRKSRC?= ${WRKDIR}/mozilla +MOZSRC?= ${WRKDIR}/mozilla FAKEDIR?= ${WRKDIR}/fake PLIST?= ${WRKDIR}/plist PLISTD?= ${WRKDIR}/plist_dirs @@ -501,17 +501,17 @@ @${REINPLACE_CMD} -e 's/%{idldir}/%idldir%/g ; \ s|"%FULL_NSPR_CFLAGS%"|`nspr-config --cflags`|g ; \ s|"%FULL_NSPR_LIBS%"|`nspr-config --libs`|g' \ - ${WRKSRC}/build/unix/mozilla-config.in + ${MOZSRC}/build/unix/mozilla-config.in @${REINPLACE_CMD} -e 's|<iconv.h>|\"${LOCALBASE}/include/iconv.h\"|g' \ ${WRKSRC}/configure \ - ${WRKSRC}/intl/uconv/native/nsNativeUConvService.cpp \ - ${WRKSRC}/xpcom/io/nsNativeCharsetUtils.cpp + ${MOZSRC}/intl/uconv/native/nsNativeUConvService.cpp \ + ${MOZSRC}/xpcom/io/nsNativeCharsetUtils.cpp @${REINPLACE_CMD} -e 's|%%MOZILLA%%|${MOZILLA}|g' \ ${WRKSRC}/config/autoconf.mk.in @${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|g ; \ s|echo aout|echo elf|g ; s|/usr/X11R6|${LOCALBASE}|g' \ - ${WRKSRC}/security/coreconf/FreeBSD.mk \ - ${WRKSRC}/js/src/Makefile.in + ${MOZSRC}/security/coreconf/FreeBSD.mk \ + ${MOZSRC}/js/src/Makefile.in @if [ -d ${WRKSRC}/directory/c-sdk ]; then \ ${REINPLACE_CMD} -e 's|echo aout|echo elf|g' \ ${WRKSRC}/directory/c-sdk/config/FreeBSD.mk \ @@ -524,14 +524,14 @@ ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g ; \ s|%%LOCALBASE%%|${LOCALBASE}|g' \ - ${WRKSRC}/build/unix/run-mozilla.sh + ${MOZSRC}/build/unix/run-mozilla.sh @${REINPLACE_CMD} -E -e 's|libesd\.so\.[0-9]+|libesd.so|g' \ - ${WRKSRC}/widget/src/gtk2/nsSound.cpp + ${MOZSRC}/widget/src/gtk2/nsSound.cpp @${REINPLACE_CMD} -E -e 's|libcups\.so\.[0-9]+|libcups.so|g' \ - ${WRKSRC}/*/*/*/nsDeviceContextSpecG.cpp + ${MOZSRC}/*/*/*/nsDeviceContextSpecG.cpp @${REINPLACE_CMD} -e 's|/usr/local/netscape|${LOCALBASE}|g ; \ s|/usr/local/lib/netscape|${LOCALBASE}/lib|g' \ - ${WRKSRC}/xpcom/*/SpecialSystemDirectory.cpp + ${MOZSRC}/xpcom/*/SpecialSystemDirectory.cpp # handles mozilla pis scripts. gecko-moz-pis-patch: @@ -542,13 +542,13 @@ post-configure: gecko-post-configure gecko-post-configure: - @${ECHO_CMD} "#define JNIIMPORT" >> ${WRKSRC}/mozilla-config.h + @${ECHO_CMD} "#define JNIIMPORT" >> ${MOZSRC}/mozilla-config.h post-build: gecko-post-build gecko-post-build: @${REINPLACE_CMD} -e "s|\(Libs:.*\)\($$\)|\1 -Wl,-rpath,${PREFIX}/lib/${MOZ_RPATH}\2|" \ - ${WRKSRC}/build/unix/*.pc || ${TRUE} + ${MOZSRC}/build/unix/*.pc || ${TRUE} pre-install: gecko-moz-pis-pre-install gecko-pre-install port-pre-install gecko-create-plist @@ -561,7 +561,7 @@ .if !defined(NOGECKO_PLIST) @${RM} -rf ${FAKEDIR} ${PLIST} ${PLISTD} ${PLISTF} @${TOUCH} -f ${PLIST} ${PLISTD} ${PLISTF} - @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \ + @cd ${MOZSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \ ${MAKEFILE} ${MAKE_ARGS} prefix=${FAKEDIR} ${INSTALL_TARGET} .if defined(MOZILLA_SUFX) && ${MOZILLA_SUFX}!="none" ${MV} ${FAKEDIR}/bin/${MOZILLA:S/${MOZILLA_SUFX}//} ${FAKEDIR}/bin/${MOZILLA}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908141111.n7EBBk9a058572>