e954e49132
will be build in static, because of libevent port has a crazy library change at the each release (libevent-1.<version>.so.1).
52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
# New ports collection makefile for: transmission
|
|
# Date created: 08 October 2005
|
|
# Whom: Mezz <mezz@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= transmission
|
|
PORTVERSION= 0.90
|
|
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
|
|
USE_OPENSSL= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
# --without-gtk broke configure, CUSTOM_SUBDIRS (manual) will taking care of it.
|
|
CONFIGURE_ARGS?=--without-wx
|
|
|
|
CUSTOM_SUBDIRS?=third-party libtransmission cli
|
|
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' \
|
|
${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e 's|%%CUSTOM_SUBDIRS%%|${CUSTOM_SUBDIRS}|g' \
|
|
${WRKSRC}/Makefile.in
|
|
|
|
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>
|