1 # $NetBSD: Makefile,v 1.38 2013/02/16 11:21:52 wiz Exp $
4 DISTNAME= fotoxx-13.01.2
7 MASTER_SITES= http://www.kornelix.com/uploads/1/3/0/3/13035936/
9 MAINTAINER= pkgsrc-users@NetBSD.org
10 HOMEPAGE= http://www.kornelix.com/fotoxx.html
11 COMMENT= Program for editing image files from a digital camera
14 BUILD_DEFS+= PKG_SYSCONFBASE
16 PKG_SYSCONFSUBDIR= xdg/menus
18 # XXX work around misc/xdg-utils being completely broken
19 XDG_CONFIG_DIRS="${DESTDIR}${PKG_SYSCONFBASE}/xdg"
20 MAKE_ENV+= XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS}"
21 MAKE_ENV+= XDG_DATA_DIRS="${DESTDIR}${PREFIX}/share"
23 OWN_DIRS+= ${PREFIX}/share/desktop-directories
25 DEPENDS+= xdg-utils-[0-9]*:../../misc/xdg-utils
26 DEPENDS+= p5-Image-ExifTool-[0-9]*:../../graphics/p5-Image-ExifTool
27 DEPENDS+= dcraw-[0-9]*:../../graphics/dcraw
28 DEPENDS+= gimp-ufraw-[0-9]*:../../graphics/gimp-ufraw
31 USE_TOOLS+= pkg-config
34 INSTALL_TARGET= install
36 .include "../../mk/bsd.prefs.mk"
38 .if exists(/usr/include/execinfo.h)
39 CXXFLAGS+= -DHAVE_EXECINFO_H
40 . if (${OPSYS} == "NetBSD")
45 SUBST_CLASSES+= fix-paths
46 SUBST_STAGE.fix-paths= pre-configure
47 SUBST_MESSAGE.fix-paths= Fixing absolute paths.
48 SUBST_FILES.fix-paths= desktop
49 SUBST_SED.fix-paths= -e 's,=/usr,=${PREFIX},g'
50 SUBST_SED.fix-paths= -e 's,=/usr,=${PREFIX},g'
52 # XXX work around misc/xdg-utils being completely broken
54 ${INSTALL_DATA_DIR} ${DESTDIR}${PKG_SYSCONFDIR}
55 ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/desktop-directories
57 .include "../../graphics/tiff/buildlink3.mk"
58 .include "../../x11/gtk3/buildlink3.mk"
59 .include "../../sysutils/desktop-file-utils/desktopdb.mk"
60 .include "../../mk/bsd.pkg.mk"