openbsd-ports/net/transmission/Makefile

70 lines
1.9 KiB
Makefile
Raw Normal View History

2008-07-09 15:43:42 -04:00
# $OpenBSD: Makefile,v 1.27 2008/07/09 19:43:42 naddy Exp $
COMMENT-main= lightweight BitTorrent command line and daemon client
COMMENT-gui= lightweight BitTorrent client with graphical interface
2008-07-09 15:43:42 -04:00
VER= 1.22
DISTNAME= transmission-${VER}
2008-03-17 14:38:20 -04:00
PKGNAME-main= transmission-${VER}
2008-07-09 15:43:42 -04:00
PKGNAME-gui= transmission-gui-${VER}
CATEGORIES= net
HOMEPAGE= http://www.transmissionbt.com/
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
2008-07-09 15:43:42 -04:00
# GPLv3
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://download.m0k.org/transmission/files/
EXTRACT_SUFX= .tar.bz2
PSEUDO_FLAVORS= no_gui
FLAVOR?=
2006-11-22 16:58:24 -05:00
MULTI_PACKAGES= -main
2008-07-09 15:43:42 -04:00
WANTLIB= c crypto idn m pthread ssl z
WANTLIB-main= ${WANTLIB}
2008-04-22 12:50:42 -04:00
MODULES= devel/gettext
USE_GMAKE= Yes
USE_LIBTOOL= Yes
CONFIGURE_STYLE=gnu
2008-04-22 12:50:42 -04:00
CONFIGURE_ARGS= --disable-shared --disable-wx
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
OPENSSL_CFLAGS="-I/usr/include" \
OPENSSL_LIBS="-lcrypto"
LIBTOOL_FLAGS= --tag=disable-shared
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC} ${WRKSRC}/third-party/libevent
.if ${FLAVOR:L:Mno_gui}
2008-04-22 12:50:42 -04:00
CONFIGURE_ARGS+=--disable-gtk
.else
2006-11-22 16:58:24 -05:00
MULTI_PACKAGES+=-gui
WANTLIB-gui= ${WANTLIB} X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext \
2008-04-22 12:50:42 -04:00
Xfixes Xi Xinerama Xrandr Xrender atk-1.0 cairo dbus-1 \
dbus-glib-1 expat fontconfig freetype gio-2.0 glib-2.0 glitz \
gmodule-2.0 gobject-2.0 gthread-2.0 pango-1.0 pangoft2-1.0 \
2008-07-09 15:43:42 -04:00
pangocairo-1.0 pixman-1 png pcre
2008-04-22 12:50:42 -04:00
LIB_DEPENDS= gdk_pixbuf-2.0,gdk-x11-2.0,gtk-x11-2.0::x11/gtk+2 \
2008-07-09 15:43:42 -04:00
notify.>=2::devel/libnotify \
curl.>=9::net/curl
LIB_DEPENDS-main=${MODGETTEXT_LIB_DEPENDS} \
curl.>=9::net/curl
2008-04-22 12:50:42 -04:00
RUN_DEPENDS-main=${MODGETTEXT_RUN_DEPENDS}
2008-02-17 16:59:32 -05:00
RUN_DEPENDS-gui=:${PKGNAME-main}:net/transmission,-main \
::devel/desktop-file-utils ${RUN_DEPENDS}
2006-11-22 16:58:24 -05:00
USE_X11= Yes
.endif
2008-04-22 12:50:42 -04:00
# Remove the \' printf flag from the translations, too.
post-patch:
@cd ${WRKSRC}/po; perl -pi.bak -e "s/%'/%/g; s/%(.*?)'d/%\1d/g" *.po
.include <bsd.port.mk>