openbsd-ports/x11/gnome/icon-theme/Makefile
ajacoutot 2e38793226 Default libtool(1) is in base now so there is no point in settings
USE_LIBTOOL to no since this has no implication on the build for these
particular ports.
2012-11-17 09:40:41 +00:00

51 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.57 2012/11/17 09:40:42 ajacoutot Exp $
PKG_ARCH= *
COMMENT= base icon theme for GNOME
GNOME_PROJECT= gnome-icon-theme
GNOME_VERSION= 3.6.2
CATEGORIES= x11
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MODULES= x11/gnome
BUILD_DEPENDS= x11/icon-naming-utils>=0.8.90
# gtk-update-icon-cache is used at build time
BUILD_DEPENDS +=x11/gtk+2,-guic
# If we have svg icons without their png counterpart and librsvg is not
# part of the dependency chain then we explicitely add it.
# gnome-icon-theme is the inherited theme for most icon themes so we
# make sure we have gtk-update-icon-cache and can display svg icons.
MODGNOME_ICON_CACHE= Yes
RUN_DEPENDS += x11/gnome/librsvg
CONFIGURE_ARGS= --enable-icon-mapping \
--disable-nls
# don't run gtk-update-icon-cache, the package takes care of it
CONFIGURE_ENV += ac_cv_path_GTK_UPDATE_ICON_CACHE=/usr/bin/true
EXAMPLEDIR= ${PREFIX}/share/examples/${GNOME_PROJECT}
# Unbreak GTK+ applications that use gnome-icon-theme, when executed outside
# of a Desktop Environment
post-install:
${INSTALL_DATA_DIR} ${EXAMPLEDIR}/gtk-2.0
${INSTALL_DATA_DIR} ${EXAMPLEDIR}/gtk-3.0
@echo 'gtk-icon-theme-name = "gnome"' > \
${EXAMPLEDIR}/gtk-2.0/gtkrc
@printf "[Settings]\ngtk-icon-theme-name = gnome\n" > \
${EXAMPLEDIR}/gtk-3.0/settings.ini
.include <bsd.port.mk>