blob: 8b32c412823956b6dfcd449a2214a14ff5363857 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# $NetBSD: Makefile.common,v 1.11 2020/07/22 13:36:52 wiz Exp $
#
# used by net/transmission/Makefile
# used by net/transmission-gtk/Makefile
# used by net/transmission-qt/Makefile
VERSION= 3.00
DISTNAME= transmission-${VERSION}
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GITHUB:=transmission/}
EXTRACT_SUFX= .tar.xz
GITHUB_RELEASE= ${PKGVERSION_NOREV}
MAINTAINER= wiz@NetBSD.org
HOMEPAGE= http://www.transmissionbt.com/
COMMENT?= Free, lightweight BitTorrent client
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_TOOLS+= gmake pkg-config intltool msgfmt
EXTRACT_USING= bsdtar
# optionally, gnu-gpl-v3 instead of gnu-gpl-v2
LICENSE= gnu-gpl-v2 AND mit
PATCHDIR= ${.CURDIR}/../../net/transmission/patches
DISTINFO_FILE= ${.CURDIR}/../../net/transmission/distinfo
GNU_CONFIGURE= yes
LDFLAGS+= ${BUILDLINK_LDADD.getopt} ${BUILDLINK_LDADD.gettext}
.include "../../mk/bsd.prefs.mk"
.if !empty(OPSYS:M*BSD) || ${OPSYS} == "DragonFly"
CPPFLAGS+= -DBSD
.endif
.if ${OPSYS} == "Darwin"
LDFLAGS+= -framework CoreFoundation
.endif
ALL_ENV+= LIBEVENT_CFLAGS=-I${BUILDLINK_PREFIX.libevent}/include
ALL_ENV+= LIBEVENT_LIBS="-L${BUILDLINK_PREFIX.libevent}/lib ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.libevent}/lib -levent"
BUILDLINK_API_DEPENDS.libevent+= libevent>=2.0.10
.include "../../devel/libevent/buildlink3.mk"
ALL_ENV+= OPENSSL_CFLAGS="-I${SSLBASE}/include"
ALL_ENV+= OPENSSL_LIBS="-L${SSLBASE}/lib -lcrypto -lssl"
.include "../../devel/libgetopt/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
|