From 2c14bd88c0c9a4240e9854262f0b48f2767d65b4 Mon Sep 17 00:00:00 2001 From: Alexey Dokuchaev Date: Thu, 31 Jan 2013 14:14:59 +0000 Subject: - Convert NOPORTDOCS -> PORT_OPTIONS:MDOCS - Sort knobs and bring in minor whitespace changes --- net-p2p/libtorrent-rasterbar-16/Makefile | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'net-p2p') diff --git a/net-p2p/libtorrent-rasterbar-16/Makefile b/net-p2p/libtorrent-rasterbar-16/Makefile index 48b728846505..0259a576bf3f 100644 --- a/net-p2p/libtorrent-rasterbar-16/Makefile +++ b/net-p2p/libtorrent-rasterbar-16/Makefile @@ -19,12 +19,13 @@ NO_LATEST_LINK= yes LIB_DEPENDS+= boost_date_time:${PORTSDIR}/devel/boost-libs \ GeoIP:${PORTSDIR}/net/GeoIP -USE_PKGCONFIG= build +GNU_CONFIGURE= yes USE_GNOME= gnomehack -USE_OPENSSL= yes USE_ICONV= yes +USE_LDCONFIG= yes +USE_OPENSSL= yes +USE_PKGCONFIG= build -GNU_CONFIGURE= yes CONFIGURE_ARGS+= --disable-debug \ --disable-static \ --enable-dht \ @@ -37,38 +38,39 @@ CONFIGURE_ARGS+= --disable-debug \ --with-libgeoip \ --with-openssl=${OPENSSLBASE} -USE_LDCONFIG= yes +PORTDOCS= * + +OPTIONS_DEFINE= DOCS .include -.if defined(SLAVE_PORT) && ${SLAVE_PORT:L}=="yes" && defined(USE_PYTHON) +.if defined(SLAVE_PORT) && ${SLAVE_PORT:L} == "yes" && defined(USE_PYTHON) CONFIGURE_ARGS+= --enable-python-binding \ --with-boost-python=boost_python .else CONFIGURE_ARGS+= --disable-python-binding .endif -.if defined(SLAVE_PORT) && ${SLAVE_PORT:L}=="yes" -post-patch: slave-post-patch +.if defined(SLAVE_PORT) && ${SLAVE_PORT:L} == "yes" +post-patch: slave-post-patch .else post-patch: @${REINPLACE_CMD} -e 's|/usr/local/include|${PREFIX}/include|' \ ${WRKSRC}/Jamfile .endif -.if defined(SLAVE_PORT) && ${SLAVE_PORT:L}=="yes" -post-install: slave-post-install +.if defined(SLAVE_PORT) && ${SLAVE_PORT:L} == "yes" +post-install: slave-post-install .else post-install: .endif -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} +.if ${PORT_OPTIONS:MDOCS} + @${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} -PORTDOCS= * .endif .include -- cgit v1.2.3