aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-04-09 20:23:37 +0800
committerbapt <bapt@FreeBSD.org>2014-04-09 20:23:37 +0800
commitca2cb648e317eae51918c58dbf4b6c4637fb34e2 (patch)
treec8ae404b92c696cb93bbea680f4e4f0650a57ff4 /www
parentaa6b0757d1e360ac57bfd70df5dc8ee3a0cd5d46 (diff)
downloadfreebsd-ports-gnome-ca2cb648e317eae51918c58dbf4b6c4637fb34e2.tar.gz
freebsd-ports-gnome-ca2cb648e317eae51918c58dbf4b6c4637fb34e2.tar.zst
freebsd-ports-gnome-ca2cb648e317eae51918c58dbf4b6c4637fb34e2.zip
Support stage
Use USES=gecko
Diffstat (limited to 'www')
-rw-r--r--www/firefox-i18n/Makefile17
1 files changed, 9 insertions, 8 deletions
diff --git a/www/firefox-i18n/Makefile b/www/firefox-i18n/Makefile
index 69f0f33f95e6..c54c70a83c9f 100644
--- a/www/firefox-i18n/Makefile
+++ b/www/firefox-i18n/Makefile
@@ -14,8 +14,7 @@ COMMENT= Localized interface for Firefox
EXTRACT_DEPENDS= zip:${PORTSDIR}/archivers/zip
-USES= zip:infozip
-USE_FIREFOX= 28
+USES= zip:infozip gecko:firefox,28
USE_XPI= firefox linux-firefox
NO_ARCH= yes
@@ -29,7 +28,6 @@ PLIST?= ${WRKDIR}/plist
PLISTD?= ${WRKDIR}/plist_dirs
PLISTF?= ${WRKDIR}/plist_files
-NO_STAGE= yes
.include "${.CURDIR}/Makefile.option"
.include <bsd.port.pre.mk>
@@ -71,11 +69,14 @@ pre-configure: config
.endif
do-install:
- @${INSTALL} -d ${XPI_LIBDIR} ${XPI_SLDIRS_ALL}
- @${CP} -R ${WRKSRC}/ ${XPI_LIBDIR}/
- @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${XPI_LIBDIR}/${WDIR}/
- @${CHMOD} -R a+rX,go-w ${XPI_LIBDIR}/${WDIR}/
- @for _dir in ${XPI_LINKFARMS} ; { ${LN} -sf ${XPI_LIBDIR}/${WDIR} $$_dir/ ${_Q} ; }
+ @${MKDIR} ${STAGEDIR}${XPI_LIBDIR} ${STAGEDIR}${XPI_SLDIRS_ALL}
+ cd ${WRKSRC}; ${PAX} -rw . ${STAGEDIR}${XPI_LIBDIR}
+ ${CHMOD} -R a+rX,go-w ${STAGEDIR}${XPI_LIBDIR}/${WDIR}/
+ @for e in ${STAGEDIR}${XPI_LIBDIR}/${WDIR}; do \
+ for _dir in ${XPI_LINKFARMS} ; do \
+ ${LN} -sf $${_e##*/} ${STAGEDIR}$$_dir/ ${_Q} ; \
+ done \
+ done
@${ECHO_CMD} '@exec ${INSTALL} -d ${XPI_SLDIRS_ALL:S,^${PREFIX},%D,}' ${_A}
@${ECHO_CMD} '@exec for _dir in ${XPI_LINKFARMS} ; { \
${LN} -sf ${XPI_LIBDIR}/${WDIR} $$_dir/ ${_Q}; }' ${_A}