Index: head/net-p2p/libtorrent-rasterbar/Makefile =================================================================== --- head/net-p2p/libtorrent-rasterbar/Makefile (revision 342475) +++ head/net-p2p/libtorrent-rasterbar/Makefile (revision 342476) @@ -1,75 +1,90 @@ # Created by: Doug Barton # $FreeBSD$ 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 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 \ --enable-encryption \ --enable-pool-allocators \ --enable-deprecated-functions \ --with-boost=${LOCALBASE} \ --with-boost-system=boost_system \ --enable-geoip \ --with-libgeoip \ --with-libiconv \ --with-openssl=${OPENSSLBASE} +SHLIB_VER= 7 +PLIST_SUB+= SHLIB_VER="${SHLIB_VER}" + SUB_FILES= pkg-message PORTDOCS= * DOCSRCDIR1= ${WRKSRC} DOC_FILES1= AUTHORS README DOCSRCDIR2= ${WRKSRC}/docs DOCSDIR2= ${DOCSDIR}/docs DOC_FILES2= *.png *.jpg *.gif *.html *.rst *.css PORTEXAMPLES= *.cpp -OPTIONS_DEFINE= DOCS EXAMPLES +OPTIONS_DEFINE= DOCS EXAMPLES STRIP +OPTIONS_DEFAULT= STRIP .include .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 post-patch: @${REINPLACE_CMD} -e 's|/usr/local/include|${PREFIX}/include|' \ ${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} ${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2} @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/examples/|} \ ${STAGEDIR}${EXAMPLESDIR} .include Index: head/net-p2p/libtorrent-rasterbar/pkg-plist =================================================================== --- head/net-p2p/libtorrent-rasterbar/pkg-plist (revision 342475) +++ head/net-p2p/libtorrent-rasterbar/pkg-plist (revision 342476) @@ -1,143 +1,143 @@ include/libtorrent/ConvertUTF.h include/libtorrent/add_torrent_params.hpp include/libtorrent/address.hpp include/libtorrent/alert.hpp include/libtorrent/alert_types.hpp include/libtorrent/alloca.hpp include/libtorrent/allocator.hpp include/libtorrent/assert.hpp include/libtorrent/aux_/session_impl.hpp include/libtorrent/bandwidth_limit.hpp include/libtorrent/bandwidth_manager.hpp include/libtorrent/bandwidth_queue_entry.hpp include/libtorrent/bandwidth_socket.hpp include/libtorrent/bencode.hpp include/libtorrent/bitfield.hpp include/libtorrent/bloom_filter.hpp include/libtorrent/broadcast_socket.hpp include/libtorrent/bt_peer_connection.hpp include/libtorrent/buffer.hpp include/libtorrent/build_config.hpp include/libtorrent/chained_buffer.hpp include/libtorrent/config.hpp include/libtorrent/connection_queue.hpp include/libtorrent/copy_ptr.hpp include/libtorrent/create_torrent.hpp include/libtorrent/deadline_timer.hpp include/libtorrent/debug.hpp include/libtorrent/disk_buffer_holder.hpp include/libtorrent/disk_buffer_pool.hpp include/libtorrent/disk_io_thread.hpp include/libtorrent/entry.hpp include/libtorrent/enum_net.hpp include/libtorrent/error.hpp include/libtorrent/error_code.hpp include/libtorrent/escape_string.hpp include/libtorrent/extensions.hpp include/libtorrent/extensions/logger.hpp include/libtorrent/extensions/lt_trackers.hpp include/libtorrent/extensions/metadata_transfer.hpp include/libtorrent/extensions/smart_ban.hpp include/libtorrent/extensions/ut_metadata.hpp include/libtorrent/extensions/ut_pex.hpp include/libtorrent/file.hpp include/libtorrent/file_pool.hpp include/libtorrent/file_storage.hpp include/libtorrent/fingerprint.hpp include/libtorrent/gzip.hpp include/libtorrent/hasher.hpp include/libtorrent/http_connection.hpp include/libtorrent/http_parser.hpp include/libtorrent/http_seed_connection.hpp include/libtorrent/http_stream.hpp include/libtorrent/http_tracker_connection.hpp include/libtorrent/i2p_stream.hpp include/libtorrent/identify_client.hpp include/libtorrent/instantiate_connection.hpp include/libtorrent/intrusive_ptr_base.hpp include/libtorrent/invariant_check.hpp include/libtorrent/io.hpp include/libtorrent/io_service.hpp include/libtorrent/io_service_fwd.hpp include/libtorrent/ip_filter.hpp include/libtorrent/kademlia/dht_tracker.hpp include/libtorrent/kademlia/find_data.hpp include/libtorrent/kademlia/logging.hpp include/libtorrent/kademlia/msg.hpp include/libtorrent/kademlia/node.hpp include/libtorrent/kademlia/node_entry.hpp include/libtorrent/kademlia/node_id.hpp include/libtorrent/kademlia/observer.hpp include/libtorrent/kademlia/refresh.hpp include/libtorrent/kademlia/routing_table.hpp include/libtorrent/kademlia/rpc_manager.hpp include/libtorrent/kademlia/traversal_algorithm.hpp include/libtorrent/lazy_entry.hpp include/libtorrent/lsd.hpp include/libtorrent/magnet_uri.hpp include/libtorrent/max.hpp include/libtorrent/natpmp.hpp include/libtorrent/packet_buffer.hpp include/libtorrent/parse_url.hpp include/libtorrent/pch.hpp include/libtorrent/pe_crypto.hpp include/libtorrent/peer.hpp include/libtorrent/peer_connection.hpp include/libtorrent/peer_id.hpp include/libtorrent/peer_info.hpp include/libtorrent/peer_request.hpp include/libtorrent/piece_block_progress.hpp include/libtorrent/piece_picker.hpp include/libtorrent/policy.hpp include/libtorrent/proxy_base.hpp include/libtorrent/ptime.hpp include/libtorrent/puff.hpp include/libtorrent/random.hpp include/libtorrent/rsa.hpp include/libtorrent/rss.hpp include/libtorrent/session.hpp include/libtorrent/session_settings.hpp include/libtorrent/session_status.hpp include/libtorrent/settings.hpp include/libtorrent/size_type.hpp include/libtorrent/sliding_average.hpp include/libtorrent/socket.hpp include/libtorrent/socket_io.hpp include/libtorrent/socket_type.hpp include/libtorrent/socket_type_fwd.hpp include/libtorrent/socks5_stream.hpp include/libtorrent/ssl_stream.hpp include/libtorrent/stat.hpp include/libtorrent/storage.hpp include/libtorrent/storage_defs.hpp include/libtorrent/string_util.hpp include/libtorrent/struct_debug.hpp include/libtorrent/thread.hpp include/libtorrent/time.hpp include/libtorrent/timestamp_history.hpp include/libtorrent/tommath.h include/libtorrent/tommath_class.h include/libtorrent/tommath_superclass.h include/libtorrent/torrent.hpp include/libtorrent/torrent_handle.hpp include/libtorrent/torrent_info.hpp include/libtorrent/tracker_manager.hpp include/libtorrent/udp_socket.hpp include/libtorrent/udp_tracker_connection.hpp include/libtorrent/union_endpoint.hpp include/libtorrent/upnp.hpp include/libtorrent/utf8.hpp include/libtorrent/utp_socket_manager.hpp include/libtorrent/utp_stream.hpp include/libtorrent/version.hpp include/libtorrent/web_connection_base.hpp 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 @dirrm include/libtorrent/aux_ @dirrm include/libtorrent Index: head/net-p2p/libtorrent-rasterbar-python/Makefile =================================================================== --- head/net-p2p/libtorrent-rasterbar-python/Makefile (revision 342475) +++ head/net-p2p/libtorrent-rasterbar-python/Makefile (revision 342476) @@ -1,31 +1,31 @@ # Created by: Doug Barton # $FreeBSD$ CATEGORIES= net-p2p python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} COMMENT= Python bindings for libtorrent-rasterbar LIB_DEPENDS= libtorrent-rasterbar.so:${PORTSDIR}/net-p2p/libtorrent-rasterbar \ libboost_python.so:${PORTSDIR}/devel/boost-python-libs MASTERDIR= ${.CURDIR}/../libtorrent-rasterbar BUILD_WRKSRC= ${WRKSRC}/bindings/python INSTALL_WRKSRC= ${BUILD_WRKSRC} SLAVE_PORT= yes USE_PYTHON= yes USE_PYDISTUTILS= yes 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}" \ PYTHON_VERSION="${PYTHON_VERSION}" .include "${MASTERDIR}/Makefile"