openbsd-ports/net/transmission/Makefile

107 lines
3.1 KiB
Makefile
Raw Normal View History

2011-09-16 07:13:37 -04:00
# $OpenBSD: Makefile,v 1.67 2011/09/16 11:13:41 espie Exp $
COMMENT-main= lightweight BitTorrent command line and daemon client
COMMENT-gtk= lightweight BitTorrent client with GTK+ interface
COMMENT-qt= lightweight BitTorrent client with Qt interface
VER= 2.13
DISTNAME= transmission-${VER}
2010-05-03 13:39:33 -04:00
PKGNAME-main= transmission-${VER}
PKGNAME-gtk= transmission-gtk-${VER}
PKGNAME-qt= transmission-qt-${VER}
CATEGORIES= net
HOMEPAGE= http://www.transmissionbt.com/
REVISION-main = 0
2011-09-16 07:13:37 -04:00
REVISION-gtk = 0
REVISION-qt = 0
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
# GPLv2
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_gtk no_qt
FLAVOR?=
2006-11-22 16:58:24 -05:00
MULTI_PACKAGES= -main
WANTLIB= c crypto curl event eventextra idn m pthread ssl z
WANTLIB-main= ${WANTLIB}
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
USE_GMAKE= Yes
USE_LIBTOOL= Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --disable-shared \
--disable-libnotify \
--disable-libappindicator \
--disable-libcanberra \
--disable-gconf2
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
LIBEVENT_LIBS="-leventextra -levent" \
OPENSSL_CFLAGS="-I/usr/include" \
OPENSSL_LIBS="-lcrypto"
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}
.if ${FLAVOR:L:Mno_gtk}
2008-04-22 12:50:42 -04:00
CONFIGURE_ARGS+=--disable-gtk
.else
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 \
pangocairo-1.0 pixman-1 png pcre pthread-stubs xcb \
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
.endif
.include <bsd.own.mk>
2010-11-19 17:31:32 -05:00
.if !${FLAVOR:L:Mno_qt}
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
WANTLIB-qt= ${WANTLIB} QtCore QtDBus QtGui QtNetwork QtXml \
dbus-1 expat fontconfig freetype stdc++
RUN_DEPENDS-qt= ${PKGNAME-main}:net/transmission,-main \
devel/desktop-file-utils
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}"
${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
.endif
.include <bsd.port.mk>