freebsd-ports/net-p2p/twister/Makefile

68 lines
1.5 KiB
Makefile
Raw Normal View History

# Created by: Thierry Thomas <thierry@pompo.net>
# $FreeBSD$
PORTNAME= twister-core
PORTVERSION= 0.9.31
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
LIB_DEPENDS= libboost_system.so:${PORTSDIR}/devel/boost-libs \
libleveldb.so:${PORTSDIR}/databases/leveldb \
libicui18n.so:${PORTSDIR}/devel/icu
2014-10-08 22:25:49 +02:00
OPTIONS_DEFINE= DOCS
USE_GITHUB= yes
GH_ACCOUNT= miguelfreitas
USE_BDB= yes
WANT_BDB_VER= 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} \
2014-07-05 20:36:55 +02:00
BDB_LIB_PATH=${BDB_LIB_DIR} \
ICONV_LIB="${ICONV_LIB}"
PLIST_FILES= bin/twisterd
PORTDOCS= README.md
.include <bsd.port.options.mk>
2014-07-05 20:36:55 +02:00
.if (${OPSYS} == FreeBSD && ${OSVERSION} < 1000000)
WITH_OPENSSL_PORT= yes
.endif
2015-04-18 17:14:57 +02:00
post-patch:
@${REINPLACE_CMD} 's|%%PORTVERSION%%|${PORTVERSION}|' \
2014-11-30 13:15:44 +01:00
${WRKSRC}/share/genbuild.sh
pre-configure:
2015-04-20 09:27:09 +02:00
(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>