aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/tribler
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2014-07-03 18:57:48 +0000
committerPawel Pekala <pawel@FreeBSD.org>2014-07-03 18:57:48 +0000
commit12c49b0345676cbf2d18b0c8cb021c54fc454847 (patch)
tree1465424f2a60f76eab8fa88c7251cfb5e573dc3b /net-p2p/tribler
parent544a1af433e07d07304b30f29bc360261a5b93e4 (diff)
downloadports-12c49b0345676cbf2d18b0c8cb021c54fc454847.tar.gz
ports-12c49b0345676cbf2d18b0c8cb021c54fc454847.zip
- Add staging support
- Convert to new LIB_DEPENDS format
Notes
Notes: svn path=/head/; revision=360445
Diffstat (limited to 'net-p2p/tribler')
-rw-r--r--net-p2p/tribler/Makefile36
1 files changed, 14 insertions, 22 deletions
diff --git a/net-p2p/tribler/Makefile b/net-p2p/tribler/Makefile
index 259cb02938e3..35ecf833b05d 100644
--- a/net-p2p/tribler/Makefile
+++ b/net-p2p/tribler/Makefile
@@ -20,8 +20,8 @@ LICENSE= LGPL21 MIT
LICENSE_COMB= multi
EXTRACT_DEPENDS=${UNZIP_CMD}:${PORTSDIR}/archivers/unzip
-LIB_DEPENDS= event-2.0:${PORTSDIR}/devel/libevent2 \
- vlc:${PORTSDIR}/multimedia/vlc
+LIB_DEPENDS= libevent-2.0.so:${PORTSDIR}/devel/libevent2 \
+ libvlc.so:${PORTSDIR}/multimedia/vlc
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 \
${PYTHON_PKGNAMEPREFIX}netifaces>0:${PORTSDIR}/net/py-netifaces \
${PYTHON_PKGNAMEPREFIX}m2crypto>0:${PORTSDIR}/security/py-m2crypto \
@@ -46,8 +46,6 @@ TRIBLER_DIR= ${PYTHONPREFIX_SITELIBDIR}/tribler
APSW_DISTNAME= apsw-3.7.14.1-r1
APSW_DISTFILE= ${APSW_DISTNAME}.zip
-NO_STAGE= yes
-
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
@@ -82,13 +80,11 @@ post-build:
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKDIR}/usr/share/tribler
post-install:
- (cd ${WRKDIR}/usr/bin \
- && ${INSTALL_SCRIPT} tribler ${PREFIX}/bin)
+ ${INSTALL_SCRIPT} ${WRKDIR}/usr/bin/tribler ${STAGEDIR}${PREFIX}/bin
(cd ${WRKDIR}/usr/share/tribler/Tribler/SwiftEngine \
- && ${INSTALL_PROGRAM} swift ${PREFIX}/libexec)
- @${MKDIR} ${TRIBLER_DIR}
- @${LN} -sf ${PREFIX}/libexec/swift ${TRIBLER_DIR}
- @${MKDIR} ${TRIBLER_DIR}/Tribler
+ && ${INSTALL_PROGRAM} swift ${STAGEDIR}${PREFIX}/libexec)
+ @${MKDIR} ${STAGEDIR}${TRIBLER_DIR}/Tribler
+ @${LN} -sf ${PREFIX}/libexec/swift ${STAGEDIR}${TRIBLER_DIR}
@(${TAR} -C ${WRKDIR}/usr/share/tribler/Tribler \
--exclude "Build" \
--exclude "LGPL-2.1.txt" \
@@ -97,22 +93,18 @@ post-install:
--exclude "readme.txt" \
--exclude "*LICENSE*.txt" \
--exclude "*.orig" \
- -cf - . | ${TAR} -C ${TRIBLER_DIR}/Tribler -xf -)
- @${FIND} ${TRIBLER_DIR}/Tribler -print0 | \
- ${XARGS} -0 ${CHOWN} ${SHAREOWN}
- @${FIND} ${TRIBLER_DIR}/Tribler -type f -print0 | \
+ -cf - . | ${TAR} -C ${STAGEDIR}${TRIBLER_DIR}/Tribler -xf -)
+ @${FIND} ${STAGEDIR}${TRIBLER_DIR}/Tribler -type f -print0 | \
${XARGS} -0 ${CHMOD} ${SHAREMODE}
- @${FIND} ${TRIBLER_DIR}/Tribler -type d -print0 | \
+ @${FIND} ${STAGEDIR}${TRIBLER_DIR}/Tribler -type d -print0 | \
${XARGS} -0 ${CHMOD} a+rx
- @${MKDIR} ${DESKTOPDIR}
+ @${MKDIR} ${STAGEDIR}${DESKTOPDIR}
(cd ${WRKDIR}/usr/share/applications \
- && ${INSTALL_DATA} tribler.desktop ${DESKTOPDIR})
+ && ${INSTALL_DATA} tribler.desktop ${STAGEDIR}${DESKTOPDIR})
(cd ${WRKDIR}/usr/share/pixmaps \
- && ${INSTALL_DATA} tribler.xpm ${PREFIX}/share/pixmaps)
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
+ && ${INSTALL_DATA} tribler.xpm ${STAGEDIR}${PREFIX}/share/pixmaps)
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKDIR}/usr/share/tribler/Tribler \
- && ${INSTALL_DATA} *LICENSE*.txt readme.txt ${DOCSDIR})
-.endif
+ && ${INSTALL_DATA} *LICENSE*.txt readme.txt ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>