blob: c2a43be9824b52f5a1a80608db1beac9b2cb3684 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# $NetBSD: Makefile,v 1.60 2018/04/16 14:34:35 wiz Exp $
#
DISTNAME= fotoxx-16.02.1
PKGREVISION= 6
CATEGORIES= graphics
MASTER_SITES= http://www.kornelix.com/downloads/tarballs/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.kornelix.com/fotoxx/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
DEPENDS+= gimp-ufraw-[0-9]*:../../graphics/gimp-ufraw
USE_LANGUAGES= c++
USE_TOOLS+= pkg-config
BUILD_TARGET= fotoxx
INSTALL_TARGET= install
.include "../../mk/bsd.prefs.mk"
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'
# 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 "../../devel/libexecinfo/buildlink3.mk"
.include "../../graphics/lcms2/buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../x11/gtk3/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"
|