mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-07 06:40:06 +00:00
60d1a83c2a
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
68 lines
2.3 KiB
Makefile
68 lines
2.3 KiB
Makefile
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= conkeror
|
|
PORTVERSION= 20140911
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://distfiles.pirateparty.in/ashish/ \
|
|
LOCAL/ashish
|
|
|
|
MAINTAINER= ashish@FreeBSD.org
|
|
COMMENT= Keyboard-oriented, customizable web browser based on Mozilla XULRunner
|
|
|
|
LICENSE= GPLv1 GPLv2 MPL
|
|
LICENSE_COMB= multi
|
|
|
|
OPTIONS_SINGLE+= XULRUNNER
|
|
OPTIONS_SINGLE_XULRUNNER= FIREFOX LIBXUL
|
|
FIREFOX_DESC?= Use XULRunner from Firefox port
|
|
LIBXUL_DESC?= Use XULRunner from LibXUL port
|
|
OPTIONS_DEFAULT+= LIBXUL
|
|
|
|
USES= desktop-file-utils tar:xz
|
|
|
|
LIBXUL_USES= gecko
|
|
FIREFOX_USES= gecko:firefox,32
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
BUILD_ID= ${ECHO_CMD} -n `whoami`@`hostname`_`date +%s`
|
|
|
|
post-patch:
|
|
cd ${WRKSRC} && \
|
|
${MV} debian/conkeror.desktop . && \
|
|
${MV} contrib/man/conkeror.1 . && \
|
|
${RM} -rf contrib/debian contrib/man debian tests && \
|
|
${RM} -f contrib/build.sh contrib/install.sh contrib/mketags.sh \
|
|
contrib/testrun.sh contrib/run-conkeror && \
|
|
${MKDIR} share && \
|
|
${MV} branding chrome components content \
|
|
contrib defaults locale modules search-engines help \
|
|
style share && \
|
|
${MV} COPYING CREDITS Info.plist chrome.manifest \
|
|
content-policy.manifest share
|
|
.if ${PORT_OPTIONS:MFIREFOX}
|
|
${REINPLACE_CMD} -e "s/xulrunner/firefox/g" ${WRKSRC}/conkeror
|
|
${REINPLACE_CMD} -e "s/XULRUNNER/FIREFOX/g" ${WRKSRC}/conkeror
|
|
${REINPLACE_CMD} -e 's/exec $${FIREFOX}/exec $${FIREFOX} -app/' ${WRKSRC}/conkeror
|
|
.endif
|
|
|
|
do-build:
|
|
${MAKE} -C ${WRKSRC}
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/libexec/conkeror
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
|
${MKDIR} ${STAGEDIR}${DESKTOPDIR}
|
|
cd ${WRKSRC}/share && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
|
|
${SED} -e "s/BuildID=git/BuildID=$$(${BUILD_ID})/g" \
|
|
-e "s/^Version=\(.*\)$$/Version=\1 (FreeBSD-${OSREL})/g" \
|
|
<${WRKSRC}/application.ini >${STAGEDIR}${DATADIR}/application.ini
|
|
${INSTALL_SCRIPT} ${WRKSRC}/conkeror ${STAGEDIR}${PREFIX}/bin/
|
|
${INSTALL_DATA} ${WRKSRC}/conkeror.desktop ${STAGEDIR}${DESKTOPDIR}
|
|
${INSTALL_PROGRAM} ${WRKSRC}/conkeror-spawn-helper ${STAGEDIR}${PREFIX}/libexec/conkeror/
|
|
${LN} -sf ${PREFIX}/libexec/conkeror/conkeror-spawn-helper ${STAGEDIR}${DATADIR}/
|
|
${INSTALL_MAN} ${WRKSRC}/conkeror.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
|
|
|
|
.include <bsd.port.mk>
|