summaryrefslogtreecommitdiff
path: root/games/gcompris/Makefile
blob: adac5972ee17317714e0a4abe76b67979c679c9e (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
55
56
57
# $NetBSD: Makefile,v 1.109 2022/11/23 16:20:03 adam Exp $

DISTNAME=	gcompris-17.05
PKGREVISION=	14
CATEGORIES=	games
MASTER_SITES=	https://gcompris.net/download/gtk/src/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	reed@reedmedia.net
HOMEPAGE=	https://gcompris.net/
COMMENT=	Educational games for children
LICENSE=	gnu-gpl-v3

TOOL_DEPENDS+=	p5-XML-LibXML>=1.58:../../textproc/p5-XML-LibXML

GNU_CONFIGURE=	yes
USE_LIBTOOL=	yes

USE_TOOLS+=	pkg-config perl bash:run
USE_TOOLS+=	intltool msgfmt msgmerge xgettext
USE_TOOLS+=	texi2html
USE_TOOLS+=	gmake

CONFIGURE_ARGS+=	--enable-sdlmixer

REPLACE_PYTHON+=	boards/voices/check_voices.py

REPLACE_BASH+=		boards/voices/generate_voices_rcc.sh
REPLACE_BASH+=		boards/voices/updateVoices.sh

# Junk to clean up in post-install.
TO_REMOVE+=		share/gcompris/boards/anim/Makefile
TO_REMOVE+=		share/gcompris/boards/anim/Makefile.am
TO_REMOVE+=		share/gcompris/boards/anim/Makefile.in
TO_REMOVE+=		share/gcompris/boards/explore_world_animals/Makefile.am
TO_REMOVE+=		share/gcompris/boards/geo_country/usa/Makefile.am
TO_REMOVE+=		share/gcompris/boards/gnumch/Makefile.am

# Basically not going to get ported to Python 3 ever
# Current development is focused on the Qt version
PYTHON_VERSIONS_ACCEPTED=	27

post-install:
.for file in ${TO_REMOVE}
	${RM} -f ${DESTDIR}${PREFIX}/${file}
.endfor

.include "../../audio/SDL_mixer/buildlink3.mk"
.include "../../databases/sqlite3/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../graphics/librsvg/buildlink3.mk"
.include "../../graphics/py-cairo/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../x11/py-gtk2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"