90 lines
2.4 KiB
Makefile
90 lines
2.4 KiB
Makefile
DPB_PROPERTIES= parallel
|
|
|
|
COMMENT-main= multi-platform graphical toolkit
|
|
COMMENT-cups= gtk+2 CUPS print backend
|
|
|
|
GNOME_VERSION= 2.24.33
|
|
GNOME_PROJECT= gtk+
|
|
|
|
PKGNAME-main= gtk+2-${GNOME_VERSION}
|
|
PKGNAME-cups= gtk+2-cups-${GNOME_VERSION}
|
|
|
|
REVISION-main= 3
|
|
REVISION-cups= 3
|
|
|
|
CATEGORIES= x11 devel
|
|
|
|
SHARED_LIBS += gdk-x11-2.0 2400.0 # 2400.32
|
|
SHARED_LIBS += gtk-x11-2.0 2400.0 # 2400.32
|
|
SHARED_LIBS += gailutil 26.0 # 18.1
|
|
|
|
HOMEPAGE= http://www.gtk.org/
|
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
# LGPLv2
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} X11 Xau Xcomposite Xcursor Xdamage Xdmcp
|
|
WANTLIB += Xext Xfixes Xi Xinerama Xrandr Xrender atk-1.0 cairo expat
|
|
WANTLIB += ffi fontconfig freetype fribidi gdk_pixbuf-2.0 gio-2.0
|
|
WANTLIB += glib-2.0 gmodule-2.0 gobject-2.0 graphite2 harfbuzz
|
|
WANTLIB += iconv intl jpeg m pango-1.0 pangocairo-1.0 pangoft2-1.0
|
|
WANTLIB += pcre2-8 pixman-1 png xcb xcb-render xcb-shm z
|
|
|
|
WANTLIB-main += ${WANTLIB} c
|
|
|
|
WANTLIB-cups += ${WANTLIB}
|
|
WANTLIB-cups += avahi-client avahi-common crypto cups dbus-1 execinfo
|
|
WANTLIB-cups += gdk-x11-2.0 gtk-x11-2.0 ssl
|
|
|
|
MULTI_PACKAGES= -main -cups
|
|
|
|
MODULES= lang/python \
|
|
x11/gnome
|
|
|
|
DEBUG_PACKAGES= ${BUILD_PACKAGES}
|
|
|
|
LIB_DEPENDS-main= devel/pango \
|
|
graphics/gdk-pixbuf2 \
|
|
x11/gnome/at-spi2-core
|
|
|
|
RUN_DEPENDS-main= ${RUN_DEPENDS} \
|
|
x11/hicolor-icon-theme
|
|
|
|
# convenient dependency to prevent hunting what needs what:
|
|
# some apps need more icons than the stock ones
|
|
# some apps needs the svg version of the icon (librsvg pulled in)
|
|
RUN_DEPENDS-main += x11/gnome/icon-theme-symbolic # pulls x11/gnome/icon-theme
|
|
|
|
LIB_DEPENDS-cups= print/cups,-libs \
|
|
${BASE_PKGPATH},-main=${GNOME_VERSION}
|
|
|
|
MODPY_BUILDDEP= No
|
|
MODPY_RUNDEP= No
|
|
MODPY_ADJ_FILES= gtk/gtk-builder-convert
|
|
|
|
MODGNOME_TOOLS= gobject-introspection gtk-update-icon-cache
|
|
|
|
MODGNOME_CPPFLAGS= -I${X11BASE}/include/freetype2
|
|
|
|
CFLAGS += -Wno-expansion-to-defined
|
|
|
|
TEST_IS_INTERACTIVE= x11
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
CONFIGURE_ARGS= --with-xinput=xfree
|
|
|
|
FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/gtk+2
|
|
|
|
post-install:
|
|
# sync "gtk-icon-theme-name" with x11/gnome/themes-standard/files/gtkrc
|
|
${INSTALL_DATA} ${FILESDIR}/gtkrc \
|
|
${PREFIX}/share/gtk-2.0
|
|
rm ${PREFIX}/lib/gtk-2.0/2.10.0/{engines,immodules,printbackends}/*.{a,la}
|
|
rm ${PREFIX}/lib/gtk-2.0/modules/*.{a,la}
|
|
# built as a subpackage of x11/gtk+3
|
|
rm ${PREFIX}/bin/gtk-update-icon-cache
|
|
|
|
.include <bsd.port.mk>
|