freebsd-ports/net-p2p/twister/Makefile
Mathieu Arnold 4d32bbcef6 Move USE_BDB support from bsd.databases.mk to its own file.
Also:
- Deorbit WANT_BDB_VER, one can use USES=bdb:<ver> instead.
- USE_BDB can't happen after bsd.port.pre.mk because it is a USES.

PR:		208971
Submitted by:	mat
Exp-run by:	antoine
With hat:	portmgr
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D5951
2016-04-25 16:17:19 +00:00

68 lines
1.5 KiB
Makefile

# Created by: Thierry Thomas <thierry@pompo.net>
# $FreeBSD$
PORTNAME= twister-core
PORTVERSION= 0.9.34
DISTVERSIONPREFIX= v
PORTEPOCH= 1
CATEGORIES= net-p2p
MAINTAINER= thierry@FreeBSD.org
COMMENT= Experimental peer-to-peer microblogging software
LICENSE= BSD3CLAUSE MIT
LICENSE_COMB= dual
LICENSE_FILE= ${WRKSRC}/COPYING
BROKEN_powerpc64= Does not build
LIB_DEPENDS= libboost_system.so:devel/boost-libs \
libleveldb.so:databases/leveldb \
libicui18n.so:devel/icu
OPTIONS_DEFINE= DOCS
USE_GITHUB= yes
GH_ACCOUNT= miguelfreitas
USE_BDB= 48
USE_OPENSSL= yes
USES= autoreconf:build gmake iconv libtool
GNU_CONFIGURE= yes
CONFIGURE_WRKSRC=${WRKSRC}/libtorrent
CONFIGURE_ARGS= --with-libiconv \
--with-boost=${LOCALBASE} \
--with-boost-system=boost_system
MAKEFILE= makefile.freebsd
BUILD_WRKSRC= ${WRKSRC}/src
MAKE_ENV= BOOST_INCLUDE_PATH=${LOCALBASE}/include \
BOOST_LIB_PATH=${LOCALBASE}/lib \
BDB_INCLUDE_PATH=${BDB_INCLUDE_DIR} \
BDB_LIB_PATH=${BDB_LIB_DIR} \
ICONV_LIB="${ICONV_LIB}"
PLIST_FILES= bin/twisterd
PORTDOCS= README.md
.include <bsd.port.options.mk>
.if (${OPSYS} == FreeBSD && ${OSVERSION} < 1000000)
WITH_OPENSSL_PORT= yes
.endif
post-patch:
${REINPLACE_CMD} 's|%%PORTVERSION%%|${PORTVERSION}|' \
${WRKSRC}/share/genbuild.sh
pre-configure:
(cd ${CONFIGURE_WRKSRC} && ./autotool.sh)
do-install:
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/twisterd ${STAGEDIR}${PREFIX}/bin
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>