2015-05-13 06:16:26 +00:00

52 lines
1.6 KiB
Makefile

# $OpenBSD: Makefile,v 1.60 2015/05/13 06:16:26 ajacoutot Exp $
SHARED_ONLY= Yes
COMMENT= standard GNOME themes
GNOME_PROJECT= gnome-themes-standard
GNOME_VERSION= 3.16.2
# LGPLv2.1
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
WANTLIB += Xrandr Xrender atk-1.0 cairo expat ffi fontconfig freetype
WANTLIB += gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0 gmodule-2.0
WANTLIB += gobject-2.0 graphite2 gthread-2.0 gtk-x11-2.0 harfbuzz
WANTLIB += m pango-1.0 pangocairo-1.0 pangoft2-1.0 pcre pixman-1
WANTLIB += png pthread pthread-stubs xcb xcb-render xcb-shm z
MODULES= devel/gettext \
x11/gnome
BUILD_DEPENDS= x11/gtk+3
LIB_DEPENDS= x11/gtk+2
MODGNOME_TOOLS= gtk-update-icon-cache
# As explained here:
# https://mail.gnome.org/archives/desktop-devel-list/2011-March/msg00017.html
# we need to depend on gtk-engines2 in order for the gtk2 themes to work.
RUN_DEPENDS += x11/gtk-engines2
# default settings
RUN_DEPENDS += fonts/cantarell-fonts \
x11/gnome/adwaita-icon-theme
post-install:
rm ${PREFIX}/lib/gtk-2.0/2.10.0/engines/*.{a,la}
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gnome-themes-standard
# set the global cursor theme (libXcursor)
# https://bugzilla.gnome.org/show_bug.cgi?id=660353
${INSTALL_DATA} ${FILESDIR}/index.theme \
${PREFIX}/share/examples/gnome-themes-standard
# set the global gtk+2 theme (matches what's directly bundled in gtk+3;
# /etc/gtk-2.0/gtkrc takes precedence over /usr/local/share/gtk-2.0/gtkrc;
# sync "gtk-icon-theme-name" with x11/gtk+2/files/gtkrc
${INSTALL_DATA} ${FILESDIR}/gtkrc \
${PREFIX}/share/examples/gnome-themes-standard
.include <bsd.port.mk>