2014-06-22 13:39:24 +00:00
|
|
|
# Created by: Thierry Thomas <thierry@pompo.net>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= twister-core
|
2015-12-25 22:27:26 +00:00
|
|
|
PORTVERSION= 0.9.34
|
2015-05-30 21:25:06 +00:00
|
|
|
DISTVERSIONPREFIX= v
|
2017-01-06 08:45:03 +00:00
|
|
|
PORTREVISION= 6
|
2015-04-10 20:31:39 +00:00
|
|
|
PORTEPOCH= 1
|
2014-06-22 13:39:24 +00:00
|
|
|
CATEGORIES= net-p2p
|
|
|
|
|
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
|
|
|
COMMENT= Experimental peer-to-peer microblogging software
|
|
|
|
|
|
|
|
LICENSE= BSD3CLAUSE MIT
|
|
|
|
LICENSE_COMB= dual
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2016-04-21 16:43:14 +00:00
|
|
|
BROKEN_powerpc64= Does not build
|
|
|
|
|
2016-04-01 14:16:16 +00:00
|
|
|
LIB_DEPENDS= libboost_system.so:devel/boost-libs \
|
2016-11-11 11:59:55 +00:00
|
|
|
libleveldb.so:databases/leveldb
|
2014-06-22 13:39:24 +00:00
|
|
|
|
2014-10-08 20:25:49 +00:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2014-06-22 13:39:24 +00:00
|
|
|
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= miguelfreitas
|
|
|
|
|
2016-08-08 13:46:50 +00:00
|
|
|
USES= bdb:48 autoreconf:build gmake iconv libtool ssl
|
2014-06-22 13:39:24 +00:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_WRKSRC=${WRKSRC}/libtorrent
|
|
|
|
CONFIGURE_ARGS= --with-libiconv \
|
|
|
|
--with-boost=${LOCALBASE} \
|
|
|
|
--with-boost-system=boost_system
|
2014-06-29 20:44:35 +00:00
|
|
|
MAKEFILE= makefile.freebsd
|
2014-06-22 13:39:24 +00:00
|
|
|
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 18:36:55 +00:00
|
|
|
BDB_LIB_PATH=${BDB_LIB_DIR} \
|
|
|
|
ICONV_LIB="${ICONV_LIB}"
|
2014-06-22 13:39:24 +00:00
|
|
|
|
|
|
|
PLIST_FILES= bin/twisterd
|
|
|
|
PORTDOCS= README.md
|
|
|
|
|
2015-04-18 15:14:57 +00:00
|
|
|
post-patch:
|
2017-01-09 13:16:49 +00:00
|
|
|
@${REINPLACE_CMD} 's|%%PORTVERSION%%|${PORTVERSION}|' \
|
2014-11-30 12:15:44 +00:00
|
|
|
${WRKSRC}/share/genbuild.sh
|
2014-06-22 13:39:24 +00:00
|
|
|
|
2015-04-19 12:15:26 +00:00
|
|
|
pre-configure:
|
2015-04-20 07:27:09 +00:00
|
|
|
(cd ${CONFIGURE_WRKSRC} && ./autotool.sh)
|
2015-04-19 12:15:26 +00:00
|
|
|
|
2014-06-22 13:39:24 +00:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/twisterd ${STAGEDIR}${PREFIX}/bin
|
2015-09-01 16:20:47 +00:00
|
|
|
|
|
|
|
do-install-DOCS-on:
|
2017-01-09 13:16:49 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2014-06-22 13:39:24 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|