blob: 76a6ed967d07d05d7785afa6a681a558cbd5ab46 (
plain) (
blame)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# New ports collection makefile for: transmission
# Date created: 08 October 2005
# Whom: Mezz <mezz@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= transmission
PORTVERSION= 1.10
PORTREVISION?= 0
CATEGORIES= net-p2p
MASTER_SITES= http://download.m0k.org/${PORTNAME}/files/
MAINTAINER= mezz@FreeBSD.org
COMMENT?= A free BitTorrent client written from scratch in C
USE_BZIP2= yes
USE_GMAKE= yes
USE_GNOME?= gnometarget intlhack
USE_GETTEXT= yes
USE_OPENSSL= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS}"
LDFLAGS= -L${LOCALBASE}/lib -lintl
CONFIGURE_ARGS?=${GCONFIGURE} \
--enable-cli \
--disable-daemon \
--disable-gtk
# General configure
GCONFIGURE= --disable-beos \
--disable-darwin \
--disable-wx
DOCS= AUTHORS LICENSE NEWS README
MAN1?= transmissioncli.1
general-patch:
@${REINPLACE_CMD} -e \
's|CFLAGS="-g -Wall.*"|CFLAGS="${CFLAGS} -Wall -W"|g ; \
s|CXXFLAGS="-g -Wall.*"|CXXFLAGS="${CXXFLAGS} -Wall -W"|g ; \
s|_pthread_flags=".*"|_pthread_flags="${PTHREAD_LIBS}"|g ; \
s|[$$]GMSGFMT[$$]|$$INTLTOOL_MSGFMT$$|g' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|bin_PROGRAMS = benc2php.*|bin_PROGRAMS = |g' \
${WRKSRC}/libtransmission/Makefile.in
@${REINPLACE_CMD} -e 's|-lrt||g' \
${WRKSRC}/third-party/libevent/configure
@${REINPLACE_CMD} -e 's|@SUBDIRS = . sample.*|@SUBDIRS = .|g' \
${WRKSRC}/third-party/libevent/Makefile.in
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
's|$$(OPENSSL_CFLAGS)||g ; s|$$(OPENSSL_LIBS)||g ; \
s|noinst_PROGRAMS = |noinst_PROGRAMS = #|g'
post-patch: general-patch
general-install:
.ifndef (NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for i in ${DOCS}
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
post-install: general-install
.include <bsd.port.mk>
|