summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorbad <bad@pkgsrc.org>2013-02-02 00:41:50 +0000
committerbad <bad@pkgsrc.org>2013-02-02 00:41:50 +0000
commitc33d9b80b8139bd260fe393d3bad8e4f9fe8a8e2 (patch)
tree6396d160cebd01b2c83f91657d47eaea76c2d47a /graphics
parentbd265c84b1c00d07eb4ddb76f8ca774eb085dcd7 (diff)
downloadpkgsrc-c33d9b80b8139bd260fe393d3bad8e4f9fe8a8e2.tar.gz
Work around the xdg-desktop-menu being completely useless wrt. pkgsrc.
Fix absolute paths in desktop file. Bump PKGREVISION. C.F. pkg/47523
Diffstat (limited to 'graphics')
-rw-r--r--graphics/fotoxx/Makefile27
1 files changed, 25 insertions, 2 deletions
diff --git a/graphics/fotoxx/Makefile b/graphics/fotoxx/Makefile
index 024cbd2fc83..56b3292b095 100644
--- a/graphics/fotoxx/Makefile
+++ b/graphics/fotoxx/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.36 2013/01/26 21:37:46 adam Exp $
+# $NetBSD: Makefile,v 1.37 2013/02/02 00:41:50 bad Exp $
#
DISTNAME= fotoxx-13.01.2
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= graphics
MASTER_SITES= http://www.kornelix.com/uploads/1/3/0/3/13035936/
@@ -11,6 +11,17 @@ HOMEPAGE= http://www.kornelix.com/fotoxx.html
COMMENT= Program for editing image files from a digital camera
LICENSE= gnu-gpl-v3
+BUILD_DEFS+= PKG_SYSCONFBASE
+
+PKG_SYSCONFSUBDIR= xdg/menus
+
+# XXX work around misc/xdg-utils being completely broken
+XDG_CONFIG_DIRS="${DESTDIR}${PKG_SYSCONFBASE}/xdg"
+MAKE_ENV+= XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS}"
+MAKE_ENV+= XDG_DATA_DIRS="${DESTDIR}${PREFIX}/share"
+
+OWN_DIRS+= ${PREFIX}/share/desktop-directories
+
DEPENDS+= xdg-utils-[0-9]*:../../misc/xdg-utils
DEPENDS+= p5-Image-ExifTool-[0-9]*:../../graphics/p5-Image-ExifTool
DEPENDS+= dcraw-[0-9]*:../../graphics/dcraw
@@ -31,6 +42,18 @@ LDFLAGS+= -lexecinfo
. endif
.endif
+SUBST_CLASSES+= fix-paths
+SUBST_STAGE.fix-paths= pre-configure
+SUBST_MESSAGE.fix-paths= Fixing absolute paths.
+SUBST_FILES.fix-paths= desktop
+SUBST_SED.fix-paths= -e 's,=/usr,=${PREFIX},g'
+SUBST_SED.fix-paths= -e 's,=/usr,=${PREFIX},g'
+
+# XXX work around misc/xdg-utils being completely broken
+pre-install:
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PKG_SYSCONFDIR}
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/desktop-directories
+
.include "../../graphics/tiff/buildlink3.mk"
.include "../../x11/gtk3/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"