2011-09-16 07:13:37 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.67 2011/09/16 11:13:41 espie Exp $
|
2006-04-26 16:05:06 -04:00
|
|
|
|
2007-09-15 18:36:51 -04:00
|
|
|
COMMENT-main= lightweight BitTorrent command line and daemon client
|
2010-10-21 17:52:51 -04:00
|
|
|
COMMENT-gtk= lightweight BitTorrent client with GTK+ interface
|
2010-10-25 16:28:04 -04:00
|
|
|
COMMENT-qt= lightweight BitTorrent client with Qt interface
|
2006-04-26 16:05:06 -04:00
|
|
|
|
2010-12-12 15:42:38 -05:00
|
|
|
VER= 2.13
|
2007-11-27 15:30:19 -05:00
|
|
|
DISTNAME= transmission-${VER}
|
2010-05-03 13:39:33 -04:00
|
|
|
PKGNAME-main= transmission-${VER}
|
2010-10-21 17:52:51 -04:00
|
|
|
PKGNAME-gtk= transmission-gtk-${VER}
|
2010-10-25 16:28:04 -04:00
|
|
|
PKGNAME-qt= transmission-qt-${VER}
|
2006-04-26 16:05:06 -04:00
|
|
|
CATEGORIES= net
|
2008-01-11 13:15:00 -05:00
|
|
|
HOMEPAGE= http://www.transmissionbt.com/
|
2011-01-10 03:35:16 -05:00
|
|
|
REVISION-main = 0
|
2011-09-16 07:13:37 -04:00
|
|
|
REVISION-gtk = 0
|
|
|
|
REVISION-qt = 0
|
2006-04-26 16:05:06 -04:00
|
|
|
|
|
|
|
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
|
|
|
|
|
2008-12-02 10:29:07 -05:00
|
|
|
# GPLv2
|
2006-04-26 16:05:06 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2010-11-23 13:52:40 -05:00
|
|
|
MASTER_SITES= http://download.m0k.org/transmission/files/
|
2007-11-27 15:30:19 -05:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2006-04-26 16:05:06 -04:00
|
|
|
|
2010-10-25 16:28:04 -04:00
|
|
|
PSEUDO_FLAVORS= no_gtk no_qt
|
2006-04-26 16:05:06 -04:00
|
|
|
FLAVOR?=
|
|
|
|
|
2006-11-22 16:58:24 -05:00
|
|
|
MULTI_PACKAGES= -main
|
2006-04-26 16:05:06 -04:00
|
|
|
|
2010-10-21 17:52:51 -04:00
|
|
|
WANTLIB= c crypto curl event eventextra idn m pthread ssl z
|
2007-11-27 15:30:19 -05:00
|
|
|
WANTLIB-main= ${WANTLIB}
|
2006-04-26 16:05:06 -04:00
|
|
|
|
2009-04-04 10:42:58 -04:00
|
|
|
MODULES= devel/gettext textproc/intltool
|
2010-11-19 17:31:32 -05:00
|
|
|
LIB_DEPENDS= net/curl \
|
|
|
|
devel/libeventextra
|
2008-04-22 12:50:42 -04:00
|
|
|
|
2006-12-23 12:04:16 -05:00
|
|
|
USE_GMAKE= Yes
|
2007-11-27 15:30:19 -05:00
|
|
|
USE_LIBTOOL= Yes
|
2010-10-21 17:52:51 -04:00
|
|
|
CONFIGURE_STYLE=gnu
|
2009-10-28 15:38:11 -04:00
|
|
|
CONFIGURE_ARGS= --disable-shared \
|
2010-04-01 18:16:29 -04:00
|
|
|
--disable-libnotify \
|
2010-03-21 12:30:28 -04:00
|
|
|
--disable-libappindicator \
|
|
|
|
--disable-libcanberra \
|
2010-04-01 18:16:29 -04:00
|
|
|
--disable-gconf2
|
2010-03-21 12:30:28 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2007-11-27 15:30:19 -05:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
2010-10-21 17:52:51 -04:00
|
|
|
LIBEVENT_LIBS="-leventextra -levent" \
|
2007-11-27 15:30:19 -05:00
|
|
|
OPENSSL_CFLAGS="-I/usr/include" \
|
|
|
|
OPENSSL_LIBS="-lcrypto"
|
2010-05-01 09:50:05 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}
|
2006-04-26 16:05:06 -04:00
|
|
|
|
2010-10-21 17:52:51 -04:00
|
|
|
.if ${FLAVOR:L:Mno_gtk}
|
2008-04-22 12:50:42 -04:00
|
|
|
CONFIGURE_ARGS+=--disable-gtk
|
2006-04-26 16:05:06 -04:00
|
|
|
.else
|
2010-10-21 17:52:51 -04:00
|
|
|
MULTI_PACKAGES+=-gtk
|
|
|
|
WANTLIB-gtk= ${WANTLIB} X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext \
|
|
|
|
Xfixes Xi Xinerama Xrandr Xrender Xxf86vm GL atk-1.0 cairo \
|
|
|
|
dbus-1 dbus-glib-1 drm expat fontconfig freetype \
|
|
|
|
gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0 gmodule-2.0 \
|
|
|
|
gobject-2.0 gthread-2.0 gtk-x11-2.0 pango-1.0 pangoft2-1.0 \
|
2008-04-22 12:50:42 -04:00
|
|
|
Xfixes Xi Xinerama Xrandr Xrender atk-1.0 cairo dbus-1 \
|
2010-10-11 04:11:24 -04:00
|
|
|
expat fontconfig freetype gio-2.0 glib-2.0 \
|
2008-04-22 12:50:42 -04:00
|
|
|
gmodule-2.0 gobject-2.0 gthread-2.0 pango-1.0 pangoft2-1.0 \
|
2010-05-01 09:50:05 -04:00
|
|
|
pangocairo-1.0 pixman-1 png pcre pthread-stubs xcb \
|
2010-10-21 17:52:51 -04:00
|
|
|
xcb-render xcb-shm
|
2010-11-19 17:31:32 -05:00
|
|
|
LIB_DEPENDS+= x11/gtk+2 \
|
|
|
|
x11/dbus-glib
|
|
|
|
RUN_DEPENDS-gtk=${PKGNAME-main}:net/transmission,-main \
|
|
|
|
devel/desktop-file-utils \
|
|
|
|
sysutils/gamin,-server,no_python
|
2006-04-26 16:05:06 -04:00
|
|
|
.endif
|
|
|
|
|
2010-10-25 16:28:04 -04:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2010-11-19 17:31:32 -05:00
|
|
|
.if !${FLAVOR:L:Mno_qt}
|
2010-10-25 16:28:04 -04:00
|
|
|
MULTI_PACKAGES+=-qt
|
2010-11-19 17:31:32 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
ONLY_FOR_ARCHS-qt = ${GCC4_ARCHS}
|
|
|
|
.if ${COMPILER_VERSION:L:Mgcc4*} && !${FLAVOR:L:Mno_qt}
|
|
|
|
LIB_DEPENDS+= x11/qt4
|
2010-10-25 16:28:04 -04:00
|
|
|
WANTLIB-qt= ${WANTLIB} QtCore QtDBus QtGui QtNetwork QtXml \
|
|
|
|
dbus-1 expat fontconfig freetype stdc++
|
2010-12-12 15:42:38 -05:00
|
|
|
RUN_DEPENDS-qt= ${PKGNAME-main}:net/transmission,-main \
|
|
|
|
devel/desktop-file-utils
|
2010-10-25 16:28:04 -04:00
|
|
|
|
|
|
|
post-build:
|
|
|
|
cd ${WRKSRC}/qt; qmake4 qtr.pro; make ${MAKE_FLAGS}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
cd ${WRKSRC}/qt; make ${MAKE_FLAGS} install INSTALL_ROOT=${PREFIX} \
|
|
|
|
INSTALL_FILE="${INSTALL_DATA}" \
|
|
|
|
INSTALL_PROGRAM="${INSTALL_PROGRAM}"
|
2010-12-12 15:42:38 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/applications
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/qt/transmission-qt.desktop \
|
|
|
|
${PREFIX}/share/applications/
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/qt/icons/transmission.png \
|
|
|
|
${PREFIX}/share/pixmaps/transmission-qt.png
|
2010-10-25 16:28:04 -04:00
|
|
|
.endif
|
|
|
|
|
2006-04-26 16:05:06 -04:00
|
|
|
.include <bsd.port.mk>
|