openbsd-ports/x11/gtk+2/Makefile

101 lines
2.6 KiB
Makefile
Raw Normal View History

2013-03-04 12:12:59 -05:00
# $OpenBSD: Makefile,v 1.158 2013/03/04 17:12:59 ajacoutot Exp $
SHARED_ONLY= Yes
COMMENT-main= multi-platform graphical toolkit
COMMENT-guic= gtk+ icon theme caching utility
2013-03-04 12:12:59 -05:00
V= 2.24.17
DISTNAME= gtk+-${V}
2009-08-29 16:17:49 -04:00
PKGNAME-main= gtk+2-${V}
PKGNAME-guic= gtk-update-icon-cache-${V}
CATEGORIES= x11 devel
SHARED_LIBS += gdk-x11-2.0 2400.0 # 2400.0
SHARED_LIBS += gtk-x11-2.0 2400.0 # 2400.0
SHARED_LIBS += gailutil 26.0 # 18.1
2008-09-27 13:59:12 -04:00
HOMEPAGE= http://www.gtk.org/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
2008-09-27 13:59:12 -04:00
# LGPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += ffi gdk_pixbuf-2.0 gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0
WANTLIB += gthread-2.0 m pcre png z
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gtk+/${V:C/^([0-9]+\.[0-9]+).*/\1/}/}
2012-01-25 04:05:18 -05:00
EXTRACT_SUFX= .tar.xz
2012-08-30 09:55:28 -04:00
MULTI_PACKAGES= -main -guic
MODULES= devel/gettext \
lang/python
2013-01-23 04:36:30 -05:00
BUILD_DEPENDS= devel/gobject-introspection
LIB_DEPENDS= graphics/gdk-pixbuf2
RUN_DEPENDS-main= ${RUN_DEPENDS} \
${BASE_PKGPATH},-guic \
2013-01-23 04:36:30 -05:00
x11/hicolor-icon-theme
LIB_DEPENDS-main= ${LIB_DEPENDS} \
devel/glib2 \
devel/pango \
devel/atk \
print/cups,-libs
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
2013-03-02 08:48:32 -05:00
WANTLIB-main += X11 Xcomposite Xcursor Xdamage Xext Xfixes
2013-01-23 04:36:30 -05:00
WANTLIB-main += Xi Xinerama Xrandr Xrender cairo expat dbus-1 icuuc
WANTLIB-main += fontconfig freetype pixman-1 pthread-stubs xcb icule
WANTLIB-main += xcb-render xcb-shm png asn1 crypto cups gssapi krb5 ssl
2013-01-23 04:36:30 -05:00
WANTLIB-main += harfbuzz icudata avahi-client avahi-common
# python is only used by gtk-builder-convert, so let's not enforce the
# dependency
MODPY_BUILDDEP= No
MODPY_RUNDEP= No
RUN_DEPENDS-guic= ${RUN_DEPENDS} \
x11/hicolor-icon-theme
2013-01-23 04:36:30 -05:00
WANTLIB-guic += ${WANTLIB}
WANTLIB-guic += c pthread
2010-05-10 13:22:10 -04:00
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 \
--enable-introspection \
--with-xinput \
--disable-papi
# If one of these tools is found at configure stage, it might be used,
# no matter whether we use --disable-gtk-doc or not.
CONFIGURE_ENV +=ac_cv_path_GTKDOC_CHECK="" \
ac_cv_path_GTKDOC_REBASE="" \
ac_cv_path_GTKDOC_MKPDF=""
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>