1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-12 07:27:57 +00:00
freebsd-ports/net-p2p/transmission-cli/Makefile
Tobias C. Berner 6168e237a8 net-p2p/transmission* -- update and falvorize
* update to 2.94
* flavorize the Qt frontends
* give maintainership to lebarondemerde@privacychain.ch

PR:		226710
Approved by:	portmgr (mat), crees (previous maintainer)
Differential Revision:	https://reviews.freebsd.org/D14699
2018-07-15 17:01:05 +00:00

89 lines
1.8 KiB
Makefile

# $FreeBSD$
PORTNAME= transmission
DISTVERSION= 2.94
CATEGORIES+= net-p2p
SLAVEPORT?= cli
PKGNAMESUFFIX?= -cli
MAINTAINER= lebarondemerde@privacychain.ch
COMMENT= Meta-port for Transmission BitTorrent client
LICENSE+= MIT
.if ${SLAVEPORT:Ncli}
LICENSE+= GPLv2+
LICENSE_COMB= multi
LICENSE_FILE= ${WRKSRC}/COPYING
.endif
.if ${SLAVEPORT:Nweb}
LIB_DEPENDS+= libcurl.so:ftp/curl \
libdht.so:devel/jech-dht \
libb64.so:converters/libb64 \
libevent.so:devel/libevent \
libnatpmp.so:net/libnatpmp \
libutp.so:net/libutp \
libminiupnpc.so:net/miniupnpc
USES+= cmake:outsource cpe iconv libtool localbase pkgconfig
. if ${SLAVEPORT:Mcli}
USES+= ssl
NLS_USES= gettext-runtime:run
. endif
CPE_VENDOR= transmissionbt
.endif
USE_GITHUB= yes
.if ${SLAVEPORT} != web
SLAVES= cli daemon gtk qt
CMAKE_ON+= ENABLE_${SLAVEPORT:tu}
CMAKE_OFF+= ${SLAVES:N${SLAVEPORT}:tu:S/^/ENABLE_/}
. if ${SLAVEPORT:Nweb:Ncli}
CMAKE_OFF+= ENABLE_UTILS
. endif
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${SLAVEPORT}
CMAKE_ARGS+= -DCMAKE_INSTALL_DOCDIR=${DOCSDIR}
OPTIONS_DEFINE+= DOCS LITE NLS
OPTIONS_SUB= yes
OPTIONS_DEFAULT= OPENSSL
NLS_CMAKE_BOOL= ENABLE_NLS
OPTIONS_SINGLE= SSL
OPTIONS_SINGLE_SSL= OPENSSL WOLFSSL
OPENSSL_USES= ssl
OPENSSL_CMAKE_ARGS= -DWITH_CRYPTO="openssl"
WOLFSSL_LIB_DEPENDS= libwolfssl.so:security/wolfssl
WOLFSSL_CMAKE_ARGS= -DWITH_CRYPTO="cyassl"
LITE_CONFIGURE_ENABLE= lightweight
LITE_CMAKE_BOOL= ENABLE_LIGHTWEIGHT
.endif
post-extract:
@${FIND} ${WRKSRC}/web -name .git* -delete
.if ${SLAVEPORT:Mweb}
@${FIND} ${WRKSRC}/web \( -name '*.am' -o -name '*.in' \
-o -name '*.scss' \) -delete
do-install:
( cd ${WRKSRC} && ${COPYTREE_SHARE} web ${STAGEDIR}${DATADIR} )
.endif
.if ${SLAVEPORT:Mdaemon}
post-install:
${MKDIR} ${STAGEDIR}${ETCDIR}/home
.endif
.include <bsd.port.mk>