1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-24 21:01:20 +00:00

Instead of running the browser in order to generate the component.reg

and xpti.dat files, use pre-generated copies of those files.  This
should make the build more reliable.
This commit is contained in:
Trevor Johnson 2001-03-06 04:04:26 +00:00
parent 024647601a
commit 0cdfbcbbba
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=39110
4 changed files with 18 additions and 8 deletions

View File

@ -68,6 +68,10 @@ DISTFILES= browser.xpi \
# langende.xpi langenfr.xpi langengb.xpi langenjp.xpi talkback.xpi jre.xpi AIM.xpi
DIST_SUBDIR= netscape6/english/${PORTVERSION}
PATCH_SITES= ${MASTER_SITE_LOCAL}
PATCH_SITE_SUBDIR= trevor
PATCHFILES= linux-netscape6-${PORTVERSION}-generated-files.tar.gz
MAINTAINER= trevor@FreeBSD.org
BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
@ -81,7 +85,6 @@ NO_FILTER_SHLIBS= yes
ONLY_FOR_ARCHS= i386
USE_XLIB= yes
WRKSRC= ${WRKDIR}/netscape-installer/xpi
INSTALL_DIR= ${PREFIX}/lib/linux-netscape6
PLIST= ${WRKDIR}/pkg-plist
STARTUP_CMD= netscape6
@ -98,11 +101,12 @@ do-extract:
do-patch:
${TOUCH} ${TOUCH_FLAGS} ${WRKSRC}/bin/chrome/user-skins.rdf ${WRKSRC}/bin/chrome/user-locales.rdf
${CP} -p ${FILESDIR}/*rdf ${WRKSRC}/bin/chrome
${TAR} -C ${WRKSRC}/bin -xzf ${DISTDIR}/${DIST_SUBDIR}/${PATCHFILES}
do-configure:
- kldload linux
${SETENV} $DISPLAY="NONE" ${WRKSRC}/bin/netscape file:///dev/null
@${ECHO} \"Factory not found\" and \"cannot open display\" errors here are normal.
# - kldload linux
# ${SETENV} $DISPLAY="NONE" ${WRKSRC}/bin/netscape file:///dev/null
# @${ECHO} \"Factory not found\" and \"cannot open display\" errors here are normal.
${SED} -e "s;%%INSTALL_DIR%%;${INSTALL_DIR};g" \
${FILESDIR}/start.sh >${WRKDIR}/${STARTUP_CMD}

View File

@ -5,3 +5,4 @@ MD5 (netscape6/english/6.01/mail.xpi) = 84fe2c90d392af7efbc1203dfb119edb
MD5 (netscape6/english/6.01/psm.xpi) = f3ebf86a9bef797cdd73d54c377c2a24
MD5 (netscape6/english/6.01/spellchecker.xpi) = 10f02b57ce76fe1c2aeac90c326f5cd1
MD5 (netscape6/english/6.01/xpcom.xpi) = 3802f2b572d61565367e7d720f2552ff
MD5 (netscape6/english/6.01/linux-netscape6-6.01-generated-files.tar.gz) = 6d1ac6abbe5879eba00a88bb229e005e

View File

@ -68,6 +68,10 @@ DISTFILES= browser.xpi \
# langende.xpi langenfr.xpi langengb.xpi langenjp.xpi talkback.xpi jre.xpi AIM.xpi
DIST_SUBDIR= netscape6/english/${PORTVERSION}
PATCH_SITES= ${MASTER_SITE_LOCAL}
PATCH_SITE_SUBDIR= trevor
PATCHFILES= linux-netscape6-${PORTVERSION}-generated-files.tar.gz
MAINTAINER= trevor@FreeBSD.org
BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
@ -81,7 +85,6 @@ NO_FILTER_SHLIBS= yes
ONLY_FOR_ARCHS= i386
USE_XLIB= yes
WRKSRC= ${WRKDIR}/netscape-installer/xpi
INSTALL_DIR= ${PREFIX}/lib/linux-netscape6
PLIST= ${WRKDIR}/pkg-plist
STARTUP_CMD= netscape6
@ -98,11 +101,12 @@ do-extract:
do-patch:
${TOUCH} ${TOUCH_FLAGS} ${WRKSRC}/bin/chrome/user-skins.rdf ${WRKSRC}/bin/chrome/user-locales.rdf
${CP} -p ${FILESDIR}/*rdf ${WRKSRC}/bin/chrome
${TAR} -C ${WRKSRC}/bin -xzf ${DISTDIR}/${DIST_SUBDIR}/${PATCHFILES}
do-configure:
- kldload linux
${SETENV} $DISPLAY="NONE" ${WRKSRC}/bin/netscape file:///dev/null
@${ECHO} \"Factory not found\" and \"cannot open display\" errors here are normal.
# - kldload linux
# ${SETENV} $DISPLAY="NONE" ${WRKSRC}/bin/netscape file:///dev/null
# @${ECHO} \"Factory not found\" and \"cannot open display\" errors here are normal.
${SED} -e "s;%%INSTALL_DIR%%;${INSTALL_DIR};g" \
${FILESDIR}/start.sh >${WRKDIR}/${STARTUP_CMD}

View File

@ -5,3 +5,4 @@ MD5 (netscape6/english/6.01/mail.xpi) = 84fe2c90d392af7efbc1203dfb119edb
MD5 (netscape6/english/6.01/psm.xpi) = f3ebf86a9bef797cdd73d54c377c2a24
MD5 (netscape6/english/6.01/spellchecker.xpi) = 10f02b57ce76fe1c2aeac90c326f5cd1
MD5 (netscape6/english/6.01/xpcom.xpi) = 3802f2b572d61565367e7d720f2552ff
MD5 (netscape6/english/6.01/linux-netscape6-6.01-generated-files.tar.gz) = 6d1ac6abbe5879eba00a88bb229e005e