Fixup fromcvs/togit conversion
[pkgsrcv2.git] / graphics / fotoxx / Makefile
1 # $NetBSD: Makefile,v 1.38 2013/02/16 11:21:52 wiz Exp $
2 #
3
4 DISTNAME=       fotoxx-13.01.2
5 PKGREVISION=    4
6 CATEGORIES=     graphics
7 MASTER_SITES=   http://www.kornelix.com/uploads/1/3/0/3/13035936/
8
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
12 LICENSE=        gnu-gpl-v3
13
14 BUILD_DEFS+=    PKG_SYSCONFBASE
15
16 PKG_SYSCONFSUBDIR=      xdg/menus
17
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"
22
23 OWN_DIRS+=      ${PREFIX}/share/desktop-directories
24
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
29
30 USE_LANGUAGES=  c++
31 USE_TOOLS+=     pkg-config
32
33 BUILD_TARGET=   fotoxx
34 INSTALL_TARGET= install
35
36 .include "../../mk/bsd.prefs.mk"
37
38 .if exists(/usr/include/execinfo.h)
39 CXXFLAGS+=      -DHAVE_EXECINFO_H
40 .  if (${OPSYS} == "NetBSD")
41 LDFLAGS+=       -lexecinfo
42 .  endif
43 .endif
44
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'
51
52 # XXX work around misc/xdg-utils being completely broken
53 pre-install:
54         ${INSTALL_DATA_DIR} ${DESTDIR}${PKG_SYSCONFDIR}
55         ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/desktop-directories
56
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"