Thu Dec 21 12:24:37 2023 UTC (158d)
geeqie: fix locale files installation when PKGLOCALEDIR is not share


(nros)
diff -r1.119 -r1.120 pkgsrc/graphics/geeqie/Makefile

cvs diff -r1.119 -r1.120 pkgsrc/graphics/geeqie/Makefile (expand / switch to unified diff)

--- pkgsrc/graphics/geeqie/Makefile 2023/11/14 14:02:01 1.119
+++ pkgsrc/graphics/geeqie/Makefile 2023/12/21 12:24:36 1.120
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.119 2023/11/14 14:02:01 wiz Exp $ 1# $NetBSD: Makefile,v 1.120 2023/12/21 12:24:36 nros Exp $
2 2
3DISTNAME= geeqie-2.1 3DISTNAME= geeqie-2.1
4PKGREVISION= 5 4PKGREVISION= 5
5CATEGORIES= graphics 5CATEGORIES= graphics
6MASTER_SITES= ${MASTER_SITE_GITHUB:=BestImageViewer/} 6MASTER_SITES= ${MASTER_SITE_GITHUB:=BestImageViewer/}
7EXTRACT_SUFX= .tar.xz 7EXTRACT_SUFX= .tar.xz
8GITHUB_RELEASE= v${PKGVERSION_NOREV} 8GITHUB_RELEASE= v${PKGVERSION_NOREV}
9 9
10MAINTAINER= gdt@NetBSD.org 10MAINTAINER= gdt@NetBSD.org
11HOMEPAGE= http://www.geeqie.org/ 11HOMEPAGE= http://www.geeqie.org/
12COMMENT= Image viewer 12COMMENT= Image viewer
13LICENSE= gnu-gpl-v2 13LICENSE= gnu-gpl-v2
14 14
@@ -22,26 +22,29 @@ MESON_ARGS+= -Ddoxygen=disabled @@ -22,26 +22,29 @@ MESON_ARGS+= -Ddoxygen=disabled
22# Do not build html documentation. 22# Do not build html documentation.
23# \todo Consider depending on yelp instead 23# \todo Consider depending on yelp instead
24MESON_ARGS+= -Dyelp-build=disabled 24MESON_ARGS+= -Dyelp-build=disabled
25 25
26USE_PKGLOCALEDIR= yes 26USE_PKGLOCALEDIR= yes
27USE_LANGUAGES= c c++ 27USE_LANGUAGES= c c++
28USE_TOOLS= bash:run msgfmt pkg-config 28USE_TOOLS= bash:run msgfmt pkg-config
29 29
30REPLACE_BASH+= plugins/*/* 30REPLACE_BASH+= plugins/*/*
31REPLACE_BASH+= doc/*.sh 31REPLACE_BASH+= doc/*.sh
32REPLACE_BASH+= g*.sh 32REPLACE_BASH+= g*.sh
33REPLACE_BASH+= version.sh 33REPLACE_BASH+= version.sh
34 34
 35MESON_ARGS+= -Dgq_localedir='${PREFIX}/${PKGLOCALEDIR}/locale'
 36MESON_ARGS+= --localedir='${PKGLOCALEDIR}/locale'
 37
35INSTALLATION_DIRS= ${PKGMANDIR}/man1 38INSTALLATION_DIRS= ${PKGMANDIR}/man1
36 39
37.include "../../mk/bsd.fast.prefs.mk" 40.include "../../mk/bsd.fast.prefs.mk"
38 41
39post-install: 42post-install:
40.if ${PKGMANDIR} != "share/man" 43.if ${PKGMANDIR} != "share/man"
41 ${MV} ${DESTDIR}${PREFIX}/share/man/man1/*.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 44 ${MV} ${DESTDIR}${PREFIX}/share/man/man1/*.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
42.endif 45.endif
43 46
44.include "options.mk" 47.include "options.mk"
45 48
46.include "../../devel/meson/build.mk" 49.include "../../devel/meson/build.mk"
47.include "../../graphics/exiv2/buildlink3.mk" 50.include "../../graphics/exiv2/buildlink3.mk"