1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

net-p2p/libtorrent-rasterbar

- Change master sites, use SF instead of GOOGLE_CODE
- Change license BSD to BSD3CLAUSE
- Disable all warnings with -w
- Set PORTSCOUT, with 0.16.14 segmentation fault with
  qBittorrent Versions 3.1.5, 3.1.6, 3.1.8
- Add SHLIB_VER and PLIST_SUB
- Add STRIP Option, and add to default Options
- Strip libraries for Master and Slave Port

net-p2p/libtorrent-rasterbar-python

- Add STRIP to OPTIONS_EXCLUDE
This commit is contained in:
Rusmir Dusko 2014-02-03 22:43:37 +00:00
parent 24114b8f19
commit 047b835b8d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=342476
3 changed files with 21 additions and 6 deletions

View File

@ -22,7 +22,7 @@ PYDISTUTILS_PKGNAME= python_libtorrent
PLIST= ${NONEXISTENT}
PLIST_FILES= %%PYTHON_SITELIBDIR%%/libtorrent.so
OPTIONS_EXCLUDE= DOCS EXAMPLES
OPTIONS_EXCLUDE= DOCS EXAMPLES STRIP
# insure python paths are correctly identified
CONFIGURE_ENV= PYTHON_INCLUDEDIR="${PYTHON_INCLUDEDIR}" \

View File

@ -5,13 +5,12 @@ PORTNAME= libtorrent-rasterbar
PORTVERSION= 0.16.13
PORTREVISION= 2
CATEGORIES?= net-p2p ipv6
MASTER_SITES= GOOGLE_CODE
PROJECTHOST= libtorrent
MASTER_SITES= SF/${PORTNAME:S/-rasterbar//}/${PORTNAME:S/-rasterbar//}/
MAINTAINER= nemysis@FreeBSD.org
COMMENT?= C++ library implementing a BitTorrent client
LICENSE= BSD
LICENSE= BSD3CLAUSE
LIB_DEPENDS?= libboost_date_time.so:${PORTSDIR}/devel/boost-libs \
libGeoIP.so:${PORTSDIR}/net/GeoIP
@ -19,8 +18,12 @@ LIB_DEPENDS?= libboost_date_time.so:${PORTSDIR}/devel/boost-libs \
USES= compiler:c++11-lang pathfix pkgconfig iconv
USE_OPENSSL= yes
GNU_CONFIGURE= yes
CFLAGS+= -w
USE_LDCONFIG= yes
# Wrong versioning upstream
PORTSCOUT= skipv:0.16.14
CONFIGURE_ARGS= --disable-debug \
--disable-static \
--enable-dht \
@ -34,6 +37,9 @@ CONFIGURE_ARGS= --disable-debug \
--with-libiconv \
--with-openssl=${OPENSSLBASE}
SHLIB_VER= 7
PLIST_SUB+= SHLIB_VER="${SHLIB_VER}"
SUB_FILES= pkg-message
PORTDOCS= *
@ -47,7 +53,8 @@ DOC_FILES2= *.png *.jpg *.gif *.html *.rst *.css
PORTEXAMPLES= *.cpp
OPTIONS_DEFINE= DOCS EXAMPLES
OPTIONS_DEFINE= DOCS EXAMPLES STRIP
OPTIONS_DEFAULT= STRIP
.include <bsd.port.options.mk>
@ -63,6 +70,14 @@ post-patch:
${WRKSRC}/Jamfile
post-install:
.if ${PORT_OPTIONS:MSTRIP}
${STRIP_CMD} \
${STAGEDIR}${PREFIX}/lib/libtorrent-rasterbar.so.${SHLIB_VER}
.else
${STRIP_CMD} \
${STAGEDIR}${PREFIX}/lib/${PYTHON_VERSION}/site-packages/libtorrent.so
.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR2}

View File

@ -135,7 +135,7 @@ include/libtorrent/web_peer_connection.hpp
include/libtorrent/xml_parse.hpp
lib/libtorrent-rasterbar.la
lib/libtorrent-rasterbar.so
lib/libtorrent-rasterbar.so.7
lib/libtorrent-rasterbar.so.%%SHLIB_VER%%
libdata/pkgconfig/libtorrent-rasterbar.pc
@dirrm include/libtorrent/kademlia
@dirrm include/libtorrent/extensions