(which is not) throughout the ports Makefiles. * Replace find|xargs with find -exec {} + * Replace -exec {} \; with -exec {} + if applicable. * Use the -delete operator to remove files and empty directories. * Combine and tweak some find(1) invocations while here. ok kn@ rsadowski@ espie@
48 lines
1.3 KiB
Makefile
48 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.69 2020/03/20 16:44:26 naddy Exp $
|
|
|
|
COMMENT= ncurses BitTorrent client based on libTorrent
|
|
|
|
DISTNAME= rtorrent-0.9.6
|
|
REVISION= 8
|
|
EPOCH= 0
|
|
CATEGORIES= net
|
|
|
|
HOMEPAGE= https://rakshasa.github.io/rtorrent/
|
|
|
|
# GPLv2+
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} c crypto curl curses m nghttp2 pthread
|
|
WANTLIB += ssl torrent>=21 z
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
MASTER_SITES= https://rtorrent.net/downloads/
|
|
|
|
BUILD_DEPENDS= devel/cppunit
|
|
LIB_DEPENDS= net/libtorrent>=0.13.4 \
|
|
net/curl
|
|
|
|
CONFIGURE_STYLE= autoconf
|
|
AUTOCONF_VERSION= 2.69
|
|
CONFIGURE_ENV += LDFLAGS=-pthread
|
|
CONFIGURE_ARGS= --disable-debug
|
|
|
|
DEBUG_PACKAGES = ${BUILD_PACKAGES}
|
|
|
|
CXXFLAGS += -std=c++11
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/rtorrent
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/rtorrent
|
|
${INSTALL_DATA} ${WRKSRC}/doc/rtorrent.rc \
|
|
${PREFIX}/share/examples/rtorrent/rtorrent.rc
|
|
|
|
# this patches *only* files containing tr1 to no longer refer to tr1
|
|
# we do it pre-patch, because autoconf passes right after us
|
|
pre-patch:
|
|
find ${WRKDIST} -type f -exec fgrep -lw tr1 {} + | \
|
|
xargs sed -i.bak -e 's,<tr1/,<,' -e 's/std::tr1/std/g' -e 's/tr1::placeholders::/std::placeholders::/g' -e 's/tr1::bind/std::bind/g'
|
|
|
|
.include <bsd.port.mk>
|