freebsd-ports/net-p2p/transmission25-cli/Makefile
Jeremy Messenger 647b339968 Remove the created by me and update those header at the same time. I never
care about those header, so you even can claim that those were created by
you instead of me.
2012-12-31 17:03:21 +00:00

83 lines
2.1 KiB
Makefile

# $FreeBSD$
PORTNAME= transmission
PORTVERSION= 2.51
PORTREVISION?= 1
CATEGORIES?= net-p2p
#MASTER_SITES= http://download.m0k.org/${PORTNAME}/files/ \
MASTER_SITES= http://transmission.cachefly.net/
PKGNAMESUFFIX?= -cli
MAINTAINER?= crees@FreeBSD.org
COMMENT?= The last version of Transmission that still supports GTK 2.0
LATEST_LINK= ${PORTNAME}25${PKGNAMESUFFIX}
CONFLICTS_INSTALL= ${PORTNAME}${PKGNAMESUFFIX}-2.6*
SLAVEPORT?= cli
.if ${SLAVEPORT}!="web"
LIB_DEPENDS?= ${GEN_LIB_DEPENDS}
# General dependencies
GEN_LIB_DEPENDS=curl.6:${PORTSDIR}/ftp/curl \
event-2.0.6:${PORTSDIR}/devel/libevent2
GEN_RUN_DEPENDS=${LOCALBASE}/share/transmission/web/index.html:${PORTSDIR}/www/transmission25-web
USE_GMAKE= yes
USE_GNOME?= pkgconfig
USE_OPENSSL= yes
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS=--with-zlib=/usr \
--disable-libappindicator \
--disable-gconf2 \
${EXTRA_CONF_ARGS}
EXTRA_CONF_ARGS?=--enable-cli \
--disable-daemon \
--without-gtk \
--disable-mac \
--disable-nls
MAN1?= transmission-cli.1 transmission-create.1 transmission-edit.1 \
transmission-show.1
EXTRA_PATCHES= ${PATCHDIR}/disable-web
.endif
USE_XZ= yes
DOCS= AUTHORS COPYING NEWS README
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
general-patch:
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
's|noinst_PROGRAMS = |noinst_PROGRAMS = #|g'
.if ${SLAVEPORT}!="gtk2"
@${REINPLACE_CMD} -e '/#define DISABLE_GETTEXT/s,/\* \(.*\) \*/,\1,' \
${WRKSRC}/libtransmission/utils.h
.endif
@${REINPLACE_CMD} -e \
's|_pthread_flags=".*"|_pthread_flags="${PTHREAD_LIBS}"|g ; \
s|rt_clock_gettime=yes|rt_clock_gettime=no|g ; \
s|" == "|" = "|g ; s|$$with_ssl.*/usr;|${OPENSSLBASE};|g' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|doc \\| \\|g' \
${WRKSRC}/Makefile.in
.if ${SLAVEPORT}!="cli"
@${REINPLACE_CMD} -e 's|utils \\|\\|g' \
${WRKSRC}/Makefile.in
.endif
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>