freebsd-ports/net-p2p/libtorrent-rasterbar-14/Makefile

68 lines
1.7 KiB
Makefile

# New ports collection makefile for: libtorrent-rasterbar-14
# Date created: 14 February 2010
# Whom: dougb@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= libtorrent-rasterbar
PORTVERSION= 0.14.12
CATEGORIES= net-p2p ipv6
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
PROJECTHOST= libtorrent
MAINTAINER= dougb@FreeBSD.org
COMMENT= A C++ library implementing a BitTorrent client
LIB_DEPENDS= boost_date_time.4:${PORTSDIR}/devel/boost-libs \
GeoIP.5:${PORTSDIR}/net/GeoIP
MAKE_JOBS_SAFE= yes
CONFLICTS= libtorrent-rasterbar-0.15.*
USE_GNOME= gnomehack
USE_OPENSSL= yes
USE_AUTOTOOLS= aclocal automake autoconf libtool
ACLOCAL_ARGS= -I m4
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --disable-debug \
--disable-python-binding \
--disable-examples \
--with-boost-regex=no \
--with-boost-program-options=no \
--with-boost=${LOCALBASE} \
--with-boost-asio=boost_system \
--with-boost-system=boost_system \
--with-boost-filesystem=boost_filesystem \
--with-boost-thread=boost_thread \
--with-dht=on \
--with-encryption=on \
--with-libgeoip \
--with-zlib=system
USE_LDCONFIG= yes
CPPFLAGS= ${PTHREAD_CFLAGS}
LDFLAGS= ${PTHREAD_LIBS}
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
post-patch:
@${REINPLACE_CMD} -e 's|libdir)/pkgconfig|prefix)/libdata/pkgconfig|g' \
${WRKSRC}/Makefile.am
@${REINPLACE_CMD} -e 's|^AM_CFLAGS|AM_CPPFLAGS|g' \
${WRKSRC}/src/Makefile.am
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/*.html ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/*.css ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/*.gif ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/*.jpg ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/*.png ${DOCSDIR}
.endif
.include <bsd.port.mk>