2013-09-07 17:49:54 +02:00
|
|
|
# Created by: Klaus Aehlig <aehlig@linta.de>
|
2010-01-08 11:02:36 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= uzbl
|
|
|
|
DISTVERSION= 0.0.0.${GITDATE}
|
2013-09-07 17:49:54 +02:00
|
|
|
PORTREVISION= 2
|
2010-01-08 11:02:36 +01:00
|
|
|
CATEGORIES= www
|
2010-03-15 12:10:55 +01:00
|
|
|
MASTER_SITES= http://www.linta.de/distfiles/
|
2010-01-08 11:02:36 +01:00
|
|
|
|
|
|
|
MAINTAINER= aehlig@linta.de
|
|
|
|
COMMENT= Web interface tools which adhere to the unix philosophy
|
|
|
|
|
2011-12-01 07:16:52 +01:00
|
|
|
LICENSE= GPLv3
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
2013-09-07 17:49:54 +02:00
|
|
|
LIB_DEPENDS= libwebkitgtk-1.0.so:${PORTSDIR}/www/webkit-gtk2
|
2011-03-17 15:11:47 +01:00
|
|
|
RUN_DEPENDS= socat:${PORTSDIR}/net/socat \
|
2013-09-07 17:49:54 +02:00
|
|
|
dmenu:${PORTSDIR}/x11/dmenu
|
2010-01-08 11:02:36 +01:00
|
|
|
|
2013-09-07 17:49:54 +02:00
|
|
|
USES= gmake pkgconfig
|
|
|
|
USE_GNOME= gtk20 pygtk2
|
2010-01-08 11:02:36 +01:00
|
|
|
USE_LDCONFIG= yes
|
2014-01-13 22:00:02 +01:00
|
|
|
USE_PYTHON= 2
|
2010-01-08 11:02:36 +01:00
|
|
|
|
2012-05-23 08:55:07 +02:00
|
|
|
GITDATE= 2012.05.14
|
|
|
|
GITVERSION= 228bc38
|
2010-01-08 11:02:36 +01:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/Dieterbe-uzbl-${GITVERSION}
|
|
|
|
|
2013-09-07 17:49:54 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2011-03-17 15:11:47 +01:00
|
|
|
|
2013-09-21 01:36:50 +02:00
|
|
|
NO_STAGE= yes
|
2013-09-07 17:49:54 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2010-03-02 00:53:58 +01:00
|
|
|
PORTDOCS= AUTHORS README COMMUNITY CONTRIBUTING FAQ INSTALL TODO config-syntax \
|
2011-03-17 15:11:47 +01:00
|
|
|
multiple-instances-management performance url-editing config.h vim
|
2010-03-02 00:53:58 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(NOPORTDATA)
|
|
|
|
PORTDATA= examples
|
|
|
|
.endif
|
|
|
|
|
2010-01-08 11:02:36 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|" \
|
2010-03-02 00:53:58 +01:00
|
|
|
${WRKSRC}/examples/config/config \
|
2011-04-14 21:22:58 +02:00
|
|
|
${WRKSRC}/bin/uzbl-browser \
|
|
|
|
${WRKSRC}/bin/uzbl-event-manager
|
2010-03-02 00:53:58 +01:00
|
|
|
@${REINPLACE_CMD} -e "s|share/uzbl|${DATADIR_REL}|" \
|
2010-03-15 12:10:55 +01:00
|
|
|
${WRKSRC}/examples/config/config \
|
2011-04-14 21:22:58 +02:00
|
|
|
${WRKSRC}/bin/uzbl-browser \
|
|
|
|
${WRKSRC}/bin/uzbl-event-manager
|
2010-04-06 01:31:06 +02:00
|
|
|
@${REINPLACE_CMD} -e "s|/usr/share/uzbl|${DATADIR}|" \
|
2011-04-14 21:22:58 +02:00
|
|
|
${WRKSRC}/bin/uzbl-tabbed
|
2012-05-23 08:55:07 +02:00
|
|
|
@${REINPLACE_CMD} -e "s|/usr/bin/env python2|/usr/bin/env ${PYTHON_VERSION}|" \
|
|
|
|
${WRKSRC}/bin/uzbl-event-manager
|
2010-01-08 11:02:36 +01:00
|
|
|
|
|
|
|
post-build:
|
2010-03-02 00:53:58 +01:00
|
|
|
@${FIND} ${WRKSRC} \( -name "*.orig" -or -name "*.bak" \) -exec ${RM} -f {} \;
|
2010-01-08 11:02:36 +01:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/uzbl-core ${PREFIX}/bin
|
2011-04-14 21:22:58 +02:00
|
|
|
.for f in uzbl-event-manager uzbl-browser uzbl-tabbed
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/${f} ${PREFIX}/bin
|
2010-01-08 11:02:36 +01:00
|
|
|
.endfor
|
2013-09-07 17:49:54 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2010-03-02 00:53:58 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/config.h ${DOCSDIR}
|
2010-01-08 11:02:36 +01:00
|
|
|
.for f in COMMUNITY CONTRIBUTING FAQ INSTALL TODO config-syntax \
|
2011-03-17 15:11:47 +01:00
|
|
|
multiple-instances-management performance url-editing
|
2010-03-02 00:53:58 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/${f} ${DOCSDIR}/${f}
|
2010-01-08 11:02:36 +01:00
|
|
|
.endfor
|
|
|
|
.for f in AUTHORS README
|
2010-03-02 00:53:58 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/${f}
|
2010-01-08 11:02:36 +01:00
|
|
|
.endfor
|
2010-12-01 13:48:45 +01:00
|
|
|
(cd ${WRKSRC}/extras && ${COPYTREE_SHARE} vim ${DOCSDIR})
|
2010-03-02 00:53:58 +01:00
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTDATA)
|
2010-04-06 01:31:06 +02:00
|
|
|
${MKDIR} ${DATADIR}/examples/data/dforms ${DATADIR}/examples/config
|
2010-12-01 13:48:45 +01:00
|
|
|
.for f in data/bookmarks \
|
2010-04-06 01:31:06 +02:00
|
|
|
data/dforms/bbs.archlinux.org \
|
2011-04-14 21:22:58 +02:00
|
|
|
config/style.css data/uzbl.png
|
2010-03-02 00:53:58 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/${f} ${DATADIR}/examples/${f}
|
2010-01-08 11:02:36 +01:00
|
|
|
.endfor
|
2010-03-02 00:53:58 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/config/config ${DATADIR}/examples/config/config
|
|
|
|
(cd ${WRKSRC}/examples/data && \
|
|
|
|
${COPYTREE_BIN} plugins ${DATADIR}/examples/data/)
|
|
|
|
(cd ${WRKSRC}/examples/data && \
|
|
|
|
${COPYTREE_BIN} scripts ${DATADIR}/examples/data/)
|
|
|
|
.endif
|
2010-01-08 11:02:36 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|