diff options
author | pawel <pawel@FreeBSD.org> | 2014-07-04 02:57:48 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2014-07-04 02:57:48 +0800 |
commit | 13309b2127b4e76e6026d002c81d2eb948f73fb5 (patch) | |
tree | 1465424f2a60f76eab8fa88c7251cfb5e573dc3b /net-p2p/tribler | |
parent | ce1f444fd00b6f1c8d4b2ab509bd8c01ab70c51c (diff) | |
download | freebsd-ports-gnome-13309b2127b4e76e6026d002c81d2eb948f73fb5.tar.gz freebsd-ports-gnome-13309b2127b4e76e6026d002c81d2eb948f73fb5.tar.zst freebsd-ports-gnome-13309b2127b4e76e6026d002c81d2eb948f73fb5.zip |
- Add staging support
- Convert to new LIB_DEPENDS format
Diffstat (limited to 'net-p2p/tribler')
-rw-r--r-- | net-p2p/tribler/Makefile | 36 |
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> |