openbsd-ports/net/transmission/Makefile

53 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.8 2007/01/04 20:19:54 steven Exp $
COMMENT-main= "lightweight BitTorrent client"
COMMENT-gui= "lightweight BitTorrent client with graphical interface"
VER= 0.6.1
DISTNAME= Transmission-${VER}
PKGNAME-main= transmission-${VER}
PKGNAME-gui= transmission-gui-${VER}p0
CATEGORIES= net
HOMEPAGE= http://transmission.m0k.org/
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
# MIT
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://download.m0k.org/transmission/files/
PSEUDO_FLAVORS= no_gui
FLAVOR?=
MULTI_PACKAGES= -main
WANTLIB= c crypto m pthread
USE_GMAKE= Yes
CONFIGURE_STYLE=simple
CONFIGURE_ARGS= --prefix='$${DESTDIR}${PREFIX}'
.if ${FLAVOR:L:Mno_gui}
CONFIGURE_ARGS+=--disable-gtk
.else
MULTI_PACKAGES+=-gui
MODULES= devel/gettext
WANTLIB-gui= ${WANTLIB} X11 Xext Xrender fontconfig freetype z \
atk-1.0.>=1011.0 glib-2.0.>=1000.0 gmodule-2.0.>=1000.0 \
gobject-2.0.>=1000.0 pango-1.0.>=1200.0 pangoft2-1.0.>=1200.0 \
pangocairo-1.0.>=1200.0 cairo glitz png
LIB_DEPENDS= gdk_pixbuf-2.0.>=802.0,gdk-x11-2.0.>=802.0,gtk-x11-2.0.>=802.0::x11/gtk+2
LIB_DEPENDS-main=
RUN_DEPENDS-main=
USE_X11= Yes
CONFIGURE_ARGS+=--gettext-prefix=${LOCALBASE}
.endif
NO_REGRESS= Yes
.include <bsd.port.mk>