freebsd-ports/net-p2p/tribler/Makefile
Alejandro Pulver 57a4a5149c Tribler is a social community that facilitates filesharing through a so called
peer-to-peer (p2p) network. A p2p network is structural different to a
server-computer structure, where every user downloads its files from one
central server. Within p2p the user/downloader becomes also an uploader to the
next user. In this way there is no central computer that provides every file
to all users.

WWW: http://www.tribler.org/
2007-05-02 16:24:34 +00:00

51 lines
1.4 KiB
Makefile

# New ports collection makefile for: tribler
# Date created: 2007-04-10
# Whom: alepulver
#
# $FreeBSD$
#
PORTNAME= tribler
PORTVERSION= 3.6.0
CATEGORIES= net-p2p
MASTER_SITES= SF
DISTNAME= Tribler_${PORTVERSION}_src
MAINTAINER= alepulver@FreeBSD.org
COMMENT= Streaming capable P2P network client based on BitTorrent
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/M2Crypto/__init__.py:${PORTSDIR}/security/py-m2crypto \
${PYTHON_SITELIBDIR}/_bsddb.so:${PORTSDIR}/databases/py-bsddb
USE_ZIP= yes
USE_PYTHON= 2.4+
USE_WX= 2.6+
WX_COMPS= python
WX_UNICODE= yes
post-extract:
@cd ${WRKSRC} && \
${RM} -rf *.bat *.exe.* *.nsi *.sh *LICENSE.txt debian mac && \
${MV} lastest_version.txt protocol_v3.txt readme.txt \
tribler.xpm ..
do-build:
@(${ECHO_CMD} "#!${SH}"; ${ECHO_CMD} "cd ${DATADIR} || exit 1"; \
${ECHO_CMD} 'exec ${PYTHON_CMD} abc.py "$$@"') > ${WRKDIR}/${PORTNAME}
@${PYTHON_CMD} -Oc 'import compileall; \
compileall.compile_dir("${WRKSRC}", force=1)'
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
${MKDIR} ${DATADIR}
${CP} -R ${WRKSRC}/* ${DATADIR}
@${FIND} ${DATADIR} -type d -print0 | ${XARGS} -0 ${CHMOD} ${BINMODE}
@${FIND} ${DATADIR} -type f -print0 | ${XARGS} -0 ${CHMOD} ${SHAREMODE}
${MKDIR} ${PREFIX}/share/pixmaps
${INSTALL_DATA} ${WRKDIR}/tribler.xpm ${PREFIX}/share/pixmaps
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/*.txt ${DOCSDIR}
.endif
.include <bsd.port.mk>