openbsd-ports/x11/gtk+2/Makefile
2010-11-22 08:36:47 +00:00

98 lines
2.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.121 2010/11/22 08:36:59 espie Exp $
SHARED_ONLY= Yes
COMMENT-main= multi-platform graphical toolkit
COMMENT-docs= gtk+2 documentation
COMMENT-cups= gtk+2 CUPS print backend
V= 2.22.1
DISTNAME= gtk+-${V}
PKGNAME-main= gtk+2-${V}
PKGNAME-docs= gtk+2-docs-${V}
PKGNAME-cups= gtk+2-cups-${V}
CATEGORIES= x11 devel
SHARED_LIBS += gdk-x11-2.0 2200.0 # 2200.0
SHARED_LIBS += gtk-x11-2.0 2200.0 # 2200.0
SHARED_LIBS += gailutil 26.0 # 18.1
HOMEPAGE= http://www.gtk.org/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# LGPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes
WANTLIB += Xi Xinerama Xrandr Xrender cairo expat fontconfig freetype
WANTLIB += gthread-2.0 m pcre pixman-1 pthread-stubs xcb
WANTLIB += xcb-render z gdk_pixbuf-2.0 GL Xxf86vm drm xcb-shm
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gtk+/${V:C/^([0-9]+\.[0-9]+).*/\1/}/}
EXTRACT_SUFX= .tar.bz2
MULTI_PACKAGES= -main -docs -cups
MODULES= devel/gettext \
lang/python
RUN_DEPENDS= x11/hicolor-icon-theme \
misc/shared-mime-info
LIB_DEPENDS-main= ${LIB_DEPENDS} \
devel/glib2>=2.26.0 \
devel/pango \
devel/atk \
graphics/gdk-pixbuf2
WANTLIB-main += ${WANTLIB} c pthread glib-2.0 gmodule-2.0 gobject-2.0
WANTLIB-main += gio-2.0 pango-1.0 pangocairo-1.0 pangoft2-1.0 atk-1.0
WANTLIB-main += png
MODPY_BUILDDEP= No
MODPY_RUNDEP= No
LIB_DEPENDS-docs=
RUN_DEPENDS-docs=
WANTLIB-docs +=
PKG_ARCH-docs= *
LIB_DEPENDS-cups= ${LIB_DEPENDS} \
print/cups \
${BASE_PKGPATH},-main
WANTLIB-cups += ${WANTLIB}
WANTLIB-cups += asn1 atk-1.0 crypto gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0
WANTLIB-cups += gssapi krb5 pango-1.0 pangocairo-1.0 pangoft2-1.0 png
WANTLIB-cups += ssl cups gdk-x11-2.0 gdk_pixbuf-2.0 gtk-x11-2.0
USE_GMAKE= Yes
USE_LIBTOOL= Yes
REGRESS_IS_INTERACTIVE= x11
CONFIGURE_STYLE= gnu
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include/freetype2/ \
-I${LOCALBASE}/include \
-I${LOCALBASE}/include/libpng" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--disable-gtk-doc \
--disable-introspection \
--enable-man=no \
--with-xinput=yes \
--disable-papi \
--disable-silent-rules
FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/gtk+2
pre-configure:
perl -pi -e 's,/usr/bin/env python,${MODPY_BIN},' \
${WRKSRC}/gtk/gtk-builder-convert
.include <bsd.port.mk>