2013-03-02 08:49:16 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.64 2013/03/02 13:49:16 ajacoutot Exp $
|
2011-03-11 04:58:31 -05:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
|
|
|
COMMENT-main= multi-platform graphical toolkit
|
|
|
|
COMMENT-cups= gtk+3 CUPS print backend
|
|
|
|
|
2013-01-07 09:34:31 -05:00
|
|
|
V= 3.6.4
|
2011-03-11 04:58:31 -05:00
|
|
|
DISTNAME= gtk+-${V}
|
2011-09-20 17:12:09 -04:00
|
|
|
EXTRACT_SUFX= .tar.xz
|
2011-03-11 04:58:31 -05:00
|
|
|
|
|
|
|
PKGNAME-main= gtk+3-${V}
|
|
|
|
PKGNAME-cups= gtk+3-cups-${V}
|
2013-03-02 08:49:16 -05:00
|
|
|
REVISION-main= 4
|
|
|
|
REVISION-cups= 3
|
2011-10-19 13:41:40 -04:00
|
|
|
|
2011-03-11 04:58:31 -05:00
|
|
|
CATEGORIES= x11 devel
|
|
|
|
|
2012-09-21 09:20:19 -04:00
|
|
|
SHARED_LIBS += gdk-3 600.0 # 600.0
|
|
|
|
SHARED_LIBS += gtk-3 600.0 # 600.0
|
|
|
|
SHARED_LIBS += gailutil-3 0.0 # 0.0
|
2011-03-11 04:58:31 -05:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2013-03-02 08:49:16 -05:00
|
|
|
WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes
|
2013-01-23 05:06:15 -05:00
|
|
|
WANTLIB += Xi Xinerama Xrandr Xrender atk-1.0 cairo cairo-gobject
|
|
|
|
WANTLIB += expat ffi fontconfig freetype gdk_pixbuf-2.0 gio-2.0
|
2011-10-15 08:03:52 -04:00
|
|
|
WANTLIB += glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0 m pango-1.0
|
|
|
|
WANTLIB += pangocairo-1.0 pangoft2-1.0 pcre pixman-1 png pthread-stubs
|
2012-09-21 09:20:19 -04:00
|
|
|
WANTLIB += ICE SM dbus-1 harfbuzz icudata icule icuuc pthread
|
2013-01-23 05:06:15 -05:00
|
|
|
WANTLIB += xcb xcb-render xcb-shm z atk-bridge-2.0 atspi
|
2011-03-11 04:58:31 -05:00
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gtk+/${V:C/^([0-9]+\.[0-9]+).*/\1/}/}
|
|
|
|
|
2012-08-30 10:27:03 -04:00
|
|
|
MULTI_PACKAGES= -main -cups
|
2011-03-11 04:58:31 -05:00
|
|
|
|
2011-03-25 14:50:40 -04:00
|
|
|
MODULES= devel/gettext \
|
|
|
|
devel/dconf
|
2011-03-11 04:58:31 -05:00
|
|
|
|
2011-04-07 03:45:02 -04:00
|
|
|
BUILD_DEPENDS= devel/gobject-introspection
|
|
|
|
|
2012-09-21 09:20:19 -04:00
|
|
|
# man pages
|
|
|
|
BUILD_DEPENDS +=textproc/docbook \
|
|
|
|
textproc/libxslt
|
|
|
|
|
2011-03-11 04:58:31 -05:00
|
|
|
RUN_DEPENDS-main= ${RUN_DEPENDS} \
|
2013-01-23 05:06:15 -05:00
|
|
|
x11/hicolor-icon-theme
|
2011-03-11 04:58:31 -05:00
|
|
|
|
|
|
|
LIB_DEPENDS-main= ${LIB_DEPENDS} \
|
2012-09-26 17:38:48 -04:00
|
|
|
devel/pango>=1.32.0 \
|
2012-09-21 09:20:19 -04:00
|
|
|
graphics/gdk-pixbuf2 \
|
2012-09-26 17:38:48 -04:00
|
|
|
x11/gnome/at-spi2-atk>=2.6.0
|
2011-03-11 04:58:31 -05:00
|
|
|
|
|
|
|
WANTLIB-main += ${WANTLIB}
|
2012-09-21 09:20:19 -04:00
|
|
|
WANTLIB-main += c
|
2011-03-11 04:58:31 -05:00
|
|
|
|
2011-03-25 14:50:40 -04:00
|
|
|
RUN_DEPENDS-cups= # empty
|
2011-03-11 04:58:31 -05:00
|
|
|
LIB_DEPENDS-cups= ${LIB_DEPENDS} \
|
2012-08-04 11:03:05 -04:00
|
|
|
print/cups,-libs \
|
2013-01-04 03:06:34 -05:00
|
|
|
${BASE_PKGPATH},-main=${V}
|
2011-03-11 04:58:31 -05:00
|
|
|
|
|
|
|
WANTLIB-cups += ${WANTLIB}
|
2012-12-12 13:53:08 -05:00
|
|
|
WANTLIB-cups += asn1 crypto cups gdk-3 gssapi gtk-3 krb5 ssl
|
2013-01-05 07:53:09 -05:00
|
|
|
WANTLIB-cups += avahi-client avahi-common
|
2011-03-11 04:58:31 -05: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 \
|
|
|
|
--disable-papi \
|
|
|
|
--disable-packagekit \
|
2012-09-27 13:38:17 -04:00
|
|
|
--enable-introspection
|
2011-03-11 04:58:31 -05:00
|
|
|
|
2012-12-12 13:53:08 -05:00
|
|
|
# sync archs list with devel/spidermonkey
|
|
|
|
# colord depends on polkit which depends on spidermonkey
|
|
|
|
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" || \
|
2013-02-12 15:15:37 -05:00
|
|
|
${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "hppa" || \
|
2013-01-22 03:31:34 -05:00
|
|
|
${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc64" || \
|
|
|
|
${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "mips64"
|
2012-12-12 13:53:08 -05:00
|
|
|
LIB_DEPENDS-cups += graphics/colord
|
|
|
|
WANTLIB-cups += colord lcms2
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS += --disable-colord
|
|
|
|
.endif
|
|
|
|
|
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=""
|
|
|
|
|
2011-03-11 04:58:31 -05:00
|
|
|
# Do not build gtk-update-icon-cache and other shared tools.
|
|
|
|
CONFIGURE_ARGS += --enable-gtk2-dependency
|
2011-12-08 05:02:34 -05:00
|
|
|
BUILD_DEPENDS += x11/gtk+2,-guic
|
2011-12-03 13:31:18 -05:00
|
|
|
RUN_DEPENDS += x11/gtk+2,-guic
|
2011-03-11 04:58:31 -05:00
|
|
|
|
|
|
|
FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/gtk+3
|
|
|
|
|
2011-09-20 17:12:09 -04:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/gtk-3.0/modules
|
2013-01-23 05:06:15 -05:00
|
|
|
rm ${PREFIX}/lib/gtk-3.0/3.0.0/{printbackends,immodules}/*.{a,la}
|
2011-09-20 17:12:09 -04:00
|
|
|
|
2011-03-11 04:58:31 -05:00
|
|
|
.include <bsd.port.mk>
|