openbsd-ports/x11/gtk+2/Makefile
ajacoutot 97da73dbcb - run gtk-update-icon-cache on install in case previous apps already
put icons under %D/share/icons/hicolor; this will allow us to use the
cache

"conceptual okay" from kurt@ (who came up with the same idea)
ok jasper@
2008-04-18 09:20:20 +00:00

79 lines
2.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.63 2008/04/18 09:20:20 ajacoutot Exp $
SHARED_ONLY= Yes
COMMENT-main= multi-platform graphical toolkit
COMMENT-docs= gtk+2 documentation
COMMENT-cups= gtk+2 CUPS print backend
VERSION= 2.12.9
DISTNAME= gtk+-${VERSION}
PKGNAME-main= gtk+2-${VERSION}p1
PKGNAME-docs= gtk+2-docs-${VERSION}p0
PKGNAME-cups= gtk+2-cups-${VERSION}
SHARED_LIBS += gdk_pixbuf-2.0 1200.9 # .1200.9
SHARED_LIBS += gdk-x11-2.0 1200.9 # .1200.9
SHARED_LIBS += gtk-x11-2.0 1200.9 # .1200.9
SHARED_LIBS += gdk_pixbuf_xlib-2.0 1200.9 # .1200.9
CATEGORIES= x11 devel
HOMEPAGE= http://www.gtk.org/
# LGPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gtk+/2.12/}
EXTRACT_SUFX= .tar.bz2
MULTI_PACKAGES= -main -docs -cups
WANTLIB= X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext \
Xfixes Xi Xinerama Xrandr Xrender cairo expat \
fontconfig freetype glitz m pcre z
MODULES= devel/gettext
BUILD_DEPENDS= ::print/cups
RUN_DEPENDS= ::x11/hicolor-icon-theme
LIB_DEPENDS-main= ${LIB_DEPENDS} \
glib-2.0.>=1000.0,gmodule-2.0.>=1000.0,gobject-2.0.>=1000.0,gthread-2.0::devel/glib2 \
pango-1.0.>=1300.0,pangocairo-1.0.>=1300.0,pangoft2-1.0.>=1300.0::devel/pango \
atk-1.0.>=1809.0::devel/atk \
tiff.>=35::graphics/tiff \
png.>=3::graphics/png \
jpeg.>=62::graphics/jpeg
WANTLIB-main= ${WANTLIB} c pthread
LIB_DEPENDS-docs=
RUN_DEPENDS-docs=
WANTLIB-docs=
PKG_ARCH-docs= *
LIB_DEPENDS-cups= ${LIB_DEPENDS} \
cups.>=3::print/cups \
gdk-x11-2.0,gdk_pixbuf-2.0,gtk-x11-2.0::${BASE_PKGPATH},-main
WANTLIB-cups= ${WANTLIB} atk-1.0 crypto glib-2.0 gmodule-2.0 \
gobject-2.0 pango-1.0 pangocairo-1.0 \
pangoft2-1.0 png ssl
USE_X11= Yes
USE_GMAKE= Yes
USE_LIBTOOL= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --disable-gtk-doc \
--with-xinput=yes
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include/freetype2/ -I${LOCALBASE}/include -I${LOCALBASE}/include/libpng" \
LDFLAGS="-L${LOCALBASE}/lib"
# The regression tests require a running instance of X.
# You will also need to set the XAUTHORITY environment variable to point
# to the appropriate .Xauthority file.
REGRESS_IS_INTERACTIVE= Yes
REGRESS_FLAGS= DISPLAY=${DISPLAY} XAUTHORITY=${XAUTHORITY}
.include <bsd.port.mk>