2005-10-10 21:31:11 +02:00
# New ports collection makefile for: transmission
# Date created: 08 October 2005
# Whom: Mezz <mezz@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME = transmission
2007-05-01 18:44:07 +02:00
PORTVERSION = 0.72
PORTREVISION ?= 0
2006-01-30 22:36:28 +01:00
CATEGORIES = net-p2p
2007-05-01 18:44:07 +02:00
#MASTER_SITES= http://download.m0k.org/${PORTNAME}/files/
MASTER_SITES = ${ MASTER_SITE_LOCAL } \
http://people.freebsd.org/~mezz/distfiles/
MASTER_SITE_SUBDIR = mezz
2007-04-24 03:34:15 +02:00
DISTNAME = Transmission-${ PORTVERSION }
2005-10-10 21:31:11 +02:00
MAINTAINER = mezz@FreeBSD.org
2006-02-11 19:10:29 +01:00
COMMENT ?= A free BitTorrent client written from scratch in C
2005-10-10 21:31:11 +02:00
2006-06-25 06:10:38 +02:00
USE_GMAKE = yes
2005-10-20 21:11:03 +02:00
HAS_CONFIGURE = yes
2006-02-11 19:10:29 +01:00
CONFIGURE_ARGS ?= --prefix= ${ PREFIX } \
--disable-gtk
2005-10-10 21:31:11 +02:00
2006-02-11 19:10:29 +01:00
EXTRACT_AFTER_ARGS = | ${ TAR } -xf - --exclude beos \
--exclude macosx \
2006-06-25 06:10:38 +02:00
--exclude Transmission.xcodeproj
DOCS = AUTHORS LICENSE NEWS README
2005-10-10 21:31:11 +02:00
2006-06-25 06:10:38 +02:00
. i f d e f i n e d ( S L A V E _ T R A N S )
EXTRACT_AFTER_ARGS += --exclude cli
. e l s e
EXTRACT_AFTER_ARGS += --exclude gtk
MAN1 = transmissioncli.1
. e n d i f
2005-10-10 21:31:11 +02:00
2005-10-20 21:11:03 +02:00
. i f d e f i n e d ( W I T H O U T _ O P E N S S L )
CONFIGURE_ARGS += --disable-openssl
. e l s e
USE_OPENSSL = yes
. e n d i f
pre-everything ::
. i f ! d e f i n e d ( W I T H O U T _ O P E N S S L )
@${ ECHO_MSG } "You may specify the following on the command line:"
@${ ECHO_MSG } " "
2005-11-19 01:55:47 +01:00
@${ ECHO_MSG } "WITHOUT_OPENSSL=yes to disable OpenSSL support, using built-in SHA1 implementation. Warning, it is a bit slower if you use this option." | ${ FMT } 75 75
2005-10-20 21:11:03 +02:00
. e n d i f
2006-06-25 06:10:38 +02:00
general-patch :
@${ REINPLACE_CMD } -e ' s| /usr/local/| ${ LOCALBASE } /| g ; \
s| /usr/X11R6/| ${ X11BASE } /| g' \
2005-10-10 21:31:11 +02:00
${ WRKSRC } /configure
2006-06-25 06:10:38 +02:00
@${ REINPLACE_CMD } -e ' s| -pthread| ${ PTHREAD_LIBS } | g ; \
s| -g -Wall -W -O3 -funroll-loops| -Wall -W| g' \
${ WRKSRC } /mk/common.mk
2007-04-23 23:18:01 +02:00
@${ REINPLACE_CMD } -e 's|) .install.misc|)|g' \
${ WRKSRC } /mk/default.mk
2005-10-10 21:31:11 +02:00
2006-06-25 06:10:38 +02:00
post-patch : general -patch
2006-02-11 19:10:29 +01:00
2007-04-23 23:18:01 +02:00
general-install :
2005-10-10 21:31:11 +02:00
. i f n d e f ( N O P O R T D O C S )
@${ MKDIR } ${ DOCSDIR }
2006-06-25 06:10:38 +02:00
. f o r i i n $ { D O C S }
2005-10-10 21:31:11 +02:00
@${ INSTALL_DATA } ${ WRKSRC } /${ i } ${ DOCSDIR }
. e n d f o r
. e n d i f
2007-04-23 23:18:01 +02:00
post-install : general -install
2005-10-10 21:31:11 +02:00
. i n c l u d e < b s d . p o r t . m k >