2013-03-04 12:12:59 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.158 2013/03/04 17:12:59 ajacoutot Exp $
|
2003-08-15 17:07:05 -04:00
|
|
|
|
2010-05-02 03:10:04 -04:00
|
|
|
SHARED_ONLY= Yes
|
2002-07-25 05:42:35 -04:00
|
|
|
|
2010-05-02 03:10:04 -04:00
|
|
|
COMMENT-main= multi-platform graphical toolkit
|
2011-12-03 13:30:41 -05:00
|
|
|
COMMENT-guic= gtk+ icon theme caching utility
|
2002-07-25 05:42:35 -04:00
|
|
|
|
2013-03-04 12:12:59 -05:00
|
|
|
V= 2.24.17
|
2010-09-30 03:18:15 -04:00
|
|
|
DISTNAME= gtk+-${V}
|
2009-08-29 16:17:49 -04:00
|
|
|
|
2010-09-30 03:18:15 -04:00
|
|
|
PKGNAME-main= gtk+2-${V}
|
2011-12-03 13:30:41 -05:00
|
|
|
PKGNAME-guic= gtk-update-icon-cache-${V}
|
|
|
|
|
2010-05-02 03:10:04 -04:00
|
|
|
CATEGORIES= x11 devel
|
2002-07-25 05:42:35 -04:00
|
|
|
|
2011-03-07 14:19:27 -05:00
|
|
|
SHARED_LIBS += gdk-x11-2.0 2400.0 # 2400.0
|
|
|
|
SHARED_LIBS += gtk-x11-2.0 2400.0 # 2400.0
|
2010-09-30 03:18:15 -04:00
|
|
|
SHARED_LIBS += gailutil 26.0 # 18.1
|
2008-09-27 13:59:12 -04:00
|
|
|
|
2010-05-02 03:10:04 -04:00
|
|
|
HOMEPAGE= http://www.gtk.org/
|
2002-07-25 05:42:35 -04:00
|
|
|
|
2010-09-30 03:18:15 -04:00
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
|
2008-09-27 13:59:12 -04:00
|
|
|
# LGPLv2
|
2010-05-02 03:10:04 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2002-07-25 05:42:35 -04:00
|
|
|
|
2011-12-03 13:30:41 -05:00
|
|
|
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
|
2002-07-25 05:42:35 -04:00
|
|
|
|
2010-09-30 03:18:15 -04:00
|
|
|
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
|
2002-07-25 05:42:35 -04:00
|
|
|
|
2012-08-30 09:55:28 -04:00
|
|
|
MULTI_PACKAGES= -main -guic
|
2007-04-23 12:29:05 -04:00
|
|
|
|
2010-07-22 06:40:35 -04:00
|
|
|
MODULES= devel/gettext \
|
|
|
|
lang/python
|
2004-12-07 01:20:46 -05:00
|
|
|
|
2013-01-23 04:36:30 -05:00
|
|
|
BUILD_DEPENDS= devel/gobject-introspection
|
|
|
|
LIB_DEPENDS= graphics/gdk-pixbuf2
|
|
|
|
|
2011-03-07 14:19:27 -05:00
|
|
|
RUN_DEPENDS-main= ${RUN_DEPENDS} \
|
2011-12-03 13:30:41 -05:00
|
|
|
${BASE_PKGPATH},-guic \
|
2013-01-23 04:36:30 -05:00
|
|
|
x11/hicolor-icon-theme
|
2008-04-15 15:34:53 -04:00
|
|
|
|
2010-05-02 03:10:04 -04:00
|
|
|
LIB_DEPENDS-main= ${LIB_DEPENDS} \
|
2013-01-05 07:53:09 -05:00
|
|
|
devel/glib2 \
|
|
|
|
devel/pango \
|
|
|
|
devel/atk \
|
2012-08-04 11:04:43 -04:00
|
|
|
print/cups,-libs
|
2010-09-30 03:18:15 -04:00
|
|
|
|
|
|
|
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
|
2012-08-04 11:04:43 -04:00
|
|
|
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
|
2002-07-25 05:42:35 -04:00
|
|
|
|
2011-12-03 13:30:41 -05:00
|
|
|
# python is only used by gtk-builder-convert, so let's not enforce the
|
|
|
|
# dependency
|
2010-07-22 06:40:35 -04:00
|
|
|
MODPY_BUILDDEP= No
|
|
|
|
MODPY_RUNDEP= No
|
|
|
|
|
2011-12-03 13:30:41 -05:00
|
|
|
RUN_DEPENDS-guic= ${RUN_DEPENDS} \
|
|
|
|
x11/hicolor-icon-theme
|
2013-01-23 04:36:30 -05:00
|
|
|
|
2011-12-03 13:30:41 -05:00
|
|
|
WANTLIB-guic += ${WANTLIB}
|
|
|
|
WANTLIB-guic += c pthread
|
2004-02-04 02:39:18 -05:00
|
|
|
|
2010-05-10 13:22:10 -04:00
|
|
|
USE_GMAKE= Yes
|
2010-05-02 03:10:04 -04:00
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
REGRESS_IS_INTERACTIVE= x11
|
2007-04-23 12:29:05 -04:00
|
|
|
|
2010-05-02 03:10:04 -04:00
|
|
|
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 \
|
2011-04-07 03:45:02 -04:00
|
|
|
--enable-introspection \
|
2011-12-03 13:30:41 -05:00
|
|
|
--with-xinput \
|
2011-06-02 13:09:31 -04:00
|
|
|
--disable-papi
|
2010-05-02 02:46:12 -04:00
|
|
|
|
2012-09-21 10:48:05 -04:00
|
|
|
# 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=""
|
|
|
|
|
2010-05-02 03:10:04 -04:00
|
|
|
FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/gtk+2
|
2002-08-11 07:03:27 -04:00
|
|
|
|
2008-11-15 08:29:55 -05:00
|
|
|
pre-configure:
|
2010-07-22 06:40:35 -04:00
|
|
|
perl -pi -e 's,/usr/bin/env python,${MODPY_BIN},' \
|
2008-11-15 08:29:55 -05:00
|
|
|
${WRKSRC}/gtk/gtk-builder-convert
|
|
|
|
|
2002-07-25 05:42:35 -04:00
|
|
|
.include <bsd.port.mk>
|