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