summaryrefslogtreecommitdiff
path: root/databases/gramps5/Makefile
blob: 6f8fa3f6c2f09ec2b1dc3a78f517d86b5a08dfe4 (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
# $NetBSD: Makefile,v 1.9 2022/06/30 11:18:08 nia Exp $

DISTNAME=		gramps-5.1.5
PKGREVISION=		1
CATEGORIES=		databases
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=gramps/}

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		https://gramps-project.org/
COMMENT=		Genealogical Research and Analysis Management Programming System V5
LICENSE=		gnu-gpl-v2

USE_TOOLS+=		msgfmt pkg-config intltool msgconv

PYTHON_VERSIONS_INCOMPATIBLE=	27

REPLACE_PYTHON+=	gramps/gen/utils/place.py
REPLACE_PYTHON+=	gramps/gen/datehandler/_date_fr.py
REPLACE_PYTHON+=	docs/update_doc.py
REPLACE_PYTHON+=	docs/conf.py
REPLACE_PYTHON+=	setup.py

SUBST_CLASSES+=		man
SUBST_FILES.man+=	setup.py
SUBST_STAGE.man=	pre-configure
SUBST_MESSAGE.man=	Fixing man page installation path
SUBST_SED.man+=		-e "s,share/man,${PKGMANDIR},"

# pkgsrc registers mime files using mimedb.mk (see below)
CONFIGURE_ARGS+=	--enable-packager-mode

# needs svg pixbuf loader at runtime
DEPENDS+=	librsvg-[0-9]*:../../graphics/librsvg
DEPENDS+=	${PYPKGPREFIX}-gobject3-[0-9]*:../../devel/py-gobject3

# setup.py target includes ${DESTDIR}, which is wrong
post-install:
	${ECHO} -n ${PREFIX}/share > ${DESTDIR}${PREFIX}/${PYSITELIB}/gramps/gen/utils/resource-path

.include "options.mk"

.include "../../databases/py-bsddb3/buildlink3.mk"
.include "../../graphics/gnome-icon-theme/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../lang/python/egg.mk"
.include "../../databases/shared-mime-info/mimedb.mk"
.include "../../mk/bsd.pkg.mk"