openbsd-ports/editors/leafpad/Makefile
ajacoutot 973a6fb381 - tweak the way the gtk-update-icon-cache goo is run
gtk-update-icon-cache is part of gtk+2: adding gtk+2 to run_depends just
to update the icon cache (which only gtk apps can use) is overkill to
say the least!
As from now, each time icons are installed under %D/share/icons, we try
to execute gtk-update-icon-cache and if it is not there, we just ignore
the error.
What it means is that if you have gtk+2 installed, then it'll run fine
and your apps will be able to use the cache. Otherwise, it will silently
fails which is fine since it means none of your apps would have been
able to take advantage of the cache anyway.

discussed with jasper@
2008-04-17 08:10:09 +00:00

43 lines
1.1 KiB
Makefile
Executable File

# $OpenBSD: Makefile,v 1.17 2008/04/17 08:10:10 ajacoutot Exp $
COMMENT= simple GTK+ text editor
DISTNAME= leafpad-0.8.13
PKGNAME= ${DISTNAME}p0
CATEGORIES= editors x11
HOMEPAGE= http://tarot.freeshell.org/leafpad/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://savannah.nongnu.org/download/leafpad/
WANTLIB= X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes \
Xi Xinerama Xrandr Xrender atk-1.0 c cairo expat \
fontconfig freetype glib-2.0 glitz gmodule-2.0 \
gobject-2.0 m pango-1.0 pangocairo-1.0 pangoft2-1.0 \
png z
MODULES= devel/gettext textproc/intltool
LIB_DEPENDS= gtk-x11-2.0.>=1000,gdk-x11-2.0.>=1000,gdk_pixbuf-2.0.>=1000::x11/gtk+2
RUN_DEPENDS= :desktop-file-utils-*:devel/desktop-file-utils
USE_X11= Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/leafpad
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/leafpad/
.include <bsd.port.mk>