openbsd-ports/devel/geany/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

59 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.15 2008/04/17 08:10:10 ajacoutot Exp $
COMMENT= small and lightweight IDE
DISTNAME= geany-0.13
PKGNAME= ${DISTNAME}p1
CATEGORIES= devel
HOMEPAGE= http://geany.uvena.de/
MAINTAINER= Vlad Glagolev <stealth@sourcemage.org>
# GPL + Scintilla License
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=geany/}
EXTRACT_SUFX= .tar.bz2
MODULES= devel/gettext
USE_X11= Yes
USE_GMAKE= Yes
USE_LIBTOOL= Yes
WANTLIB= X11 Xext Xrender Xau Xcursor Xdmcp Xfixes Xi \
Xcomposite Xdamage pcre \
Xinerama Xrandr expat stdc++ c m z glitz png \
glib-2.0 gmodule-2.0 gobject-2.0 \
fontconfig freetype atk-1.0 cairo \
pango-1.0 pangoft2-1.0 pangocairo-1.0
BUILD_DEPENDS= :p5-XML-Parser-*:textproc/p5-XML-Parser
LIB_DEPENDS= gdk-x11-2.0,gdk_pixbuf-2.0,gtk-x11-2.0::x11/gtk+2
RUN_DEPENDS= :desktop-file-utils-*:devel/desktop-file-utils
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS+=${CONFIGURE_SHARED} \
--enable-static
FLAVORS= vte
FLAVOR?=
.if ${FLAVOR:L:Mvte}
LIB_DEPENDS+= :vte-*:devel/vte
.else
CONFIGURE_ARGS+=--disable-vte
.endif
pre-configure:
@perl -pi -e 's:\@GMSGFMT\@:${LOCALBASE}/bin/msgfmt:' \
${WRKSRC}/po/Makefile.in.in
.include <bsd.port.mk>