summaryrefslogtreecommitdiff
path: root/graphics/tuxpaint/Makefile
blob: 15916db7da521f7dc8923853a75a505ddefc33e2 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# $NetBSD: Makefile,v 1.87 2017/02/06 13:55:30 wiz Exp $

DISTNAME=	tuxpaint-0.9.22
PKGREVISION=	3
CATEGORIES=	graphics
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=tuxpaint/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.tuxpaint.org/
COMMENT=	Drawing program for small children
# program itself is gnu-gpl-v2, other licenses are packaged fonts
LICENSE=	gnu-gpl-v2 AND gnu-lgpl-v2.1 AND public-domain AND modified-bsd

BUILD_DEPENDS+=	gperf-[0-9]*:../../devel/gperf

USE_TOOLS+=		bash:run gmake gsed msgfmt pkg-config
USE_PKGLOCALEDIR=	YES
MANCOMPRESSED=		YES

CONFLICTS+=		tuxpaint-stamps<2003.12.23

BROKEN_GETTEXT_DETECTION=	yes
REPLACE_BASH=		src/tuxpaint-import.sh

PKG_SYSCONFSUBDIR=	tuxpaint
MAKE_FLAGS+=		CONFDIR=${PKG_SYSCONFDIR:Q}
MAKE_FLAGS+=		CP=${CP:Q}
MAKE_FLAGS+=		CFLAGS=${CFLAGS:Q}
MAKE_FLAGS+=		CPPFLAGS=${CPPFLAGS:Q}
MAKE_FLAGS+=		LDFLAGS=${LDFLAGS:Q}
MAKE_FLAGS+=		CHMOD=${CHMOD:Q}
MAKE_FLAGS+=		PREFIX=${PREFIX}
MAKE_FLAGS+=		LOCALE_PREFIX=$(DESTDIR)$(PREFIX)/$(PKGLOCALEDIR)/locale
MAKE_FLAGS+=		MAN_PREFIX=$(DESTDIR)$(PREFIX)/${PKGMANDIR}/
MAKE_FLAGS+=		GPERF=${PREFIX}/bin/gperf
EGDIR=			${PREFIX}/share/examples/tuxpaint
CONF_FILES=		${EGDIR}/tuxpaint.conf ${PKG_SYSCONFDIR}/tuxpaint.conf

INSTALL_MAKE_FLAGS+=	PKG_ROOT=${DESTDIR}
INSTALL_MAKE_FLAGS+=	CONFDIR=${DESTDIR}${PREFIX}/share/examples/tuxpaint

CPPFLAGS.NetBSD+=	-DHAVE_STRCASESTR

# this uses iconv and png functions directly, so link against them
# explicitly.
MAKE_FLAGS+=		LIBS=${LIBS:M*:Q}
LIBS+=			-liconv
LIBS+=			-lpng
LIBS.SunOS+=		-lsocket -lnsl
LDFLAGS.SunOS+=		-lsocket

pre-build:
	${MKDIR} ${WRKSRC}/trans

post-install:
	${RM} -f ${DESTDIR}${PREFIX}/share/tuxpaint/fonts/locale/zh_tw_docs/maketuxfont.py
	${RM} -f ${DESTDIR}${PREFIX}/share/tuxpaint/fonts/locale/zh_tw_docs/tuxpaintsubset.pe

BUILDLINK_API_DEPENDS.SDL_mixer+=	SDL_mixer>=1.2.6
.include "../../audio/SDL_mixer/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../converters/fribidi/buildlink3.mk"
.include "../../devel/SDL/buildlink3.mk"
.include "../../devel/SDL_Pango/buildlink3.mk"
BUILDLINK_API_DEPENDS.SDL_ttf+=	SDL_ttf>=2.0.7
.include "../../devel/SDL_ttf/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
BUILDLINK_API_DEPENDS.SDL_image+=	SDL_image>=1.2.4
.include "../../graphics/SDL_image/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/librsvg/buildlink3.mk"
.include "../../graphics/cairo/buildlink3.mk"
.include "../../print/libpaper/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"