mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-12 03:00:28 +00:00
0c125fbe75
PR: 208293 Submitted by: aehlig@linta.de (maintainer)
77 lines
2.2 KiB
Makefile
77 lines
2.2 KiB
Makefile
# Created by: Klaus Aehlig <aehlig@linta.de>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= uzbl
|
|
PORTVERSION= 0.9.0
|
|
DISTVERSIONPREFIX=v
|
|
CATEGORIES= www
|
|
|
|
MAINTAINER= aehlig@linta.de
|
|
COMMENT= Web interface tools which adhere to the unix philosophy
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}setuptools${PYTHON_SUFFIX}>0:devel/py-setuptools${PYTHON_SUFFIX}
|
|
LIB_DEPENDS= libwebkitgtk-1.0.so:www/webkit-gtk2
|
|
RUN_DEPENDS= socat:net/socat \
|
|
dmenu:x11/dmenu \
|
|
${PYTHON_PKGNAMEPREFIX}configparser>0:devel/py-configparser
|
|
|
|
USES= gmake pkgconfig python:2 desktop-file-utils
|
|
USE_GNOME= gtk20 pygtk2
|
|
USE_LDCONFIG= yes
|
|
INSTALLS_ICONS= yes
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= uzbl
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
MAKE_ENV+= PYTHON=${PYTHON_VERSION}
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
PORTDOCS= AUTHORS DEBUGGING.md FAQ.md HACKING.md vim
|
|
.endif
|
|
|
|
PORTDATA= examples
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|" \
|
|
${WRKSRC}/examples/config/config \
|
|
${WRKSRC}/bin/uzbl-browser.in
|
|
@${REINPLACE_CMD} -e "s|share/uzbl|${DATADIR_REL}|" \
|
|
${WRKSRC}/examples/config/config \
|
|
${WRKSRC}/bin/uzbl-browser.in
|
|
@${REINPLACE_CMD} -e "s|/usr/share/uzbl|${DATADIR}|" \
|
|
${WRKSRC}/bin/uzbl-tabbed
|
|
|
|
post-build:
|
|
@${FIND} ${WRKSRC} \( -name "*.orig" -or -name "*.bak" \) -exec ${RM} -f {} \;
|
|
|
|
post-install:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for f in AUTHORS DEBUGGING.md FAQ.md HACKING.md
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/${f}
|
|
.endfor
|
|
(cd ${WRKSRC}/extras && ${COPYTREE_SHARE} vim ${STAGEDIR}${DOCSDIR})
|
|
.endif
|
|
${MKDIR} ${STAGEDIR}${DATADIR}/examples/data/dforms ${STAGEDIR}${DATADIR}/examples/config
|
|
.for f in data/bookmarks \
|
|
data/dforms/bbs.archlinux.org \
|
|
config/style.css data/uzbl.png
|
|
${INSTALL_DATA} ${WRKSRC}/examples/${f} ${STAGEDIR}${DATADIR}/examples/${f}
|
|
.endfor
|
|
${INSTALL_DATA} ${WRKSRC}/examples/config/config ${STAGEDIR}${DATADIR}/examples/config/config
|
|
(cd ${WRKSRC}/examples/data && \
|
|
${COPYTREE_BIN} scripts ${STAGEDIR}${DATADIR}/examples/data/)
|
|
.for f in uzbl-browser.1 uzbl-core.1 uzbl-event-manager.1
|
|
${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/man1/${f}
|
|
.endfor
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/uzbl-core
|
|
|
|
.include <bsd.port.mk>
|