aboutsummaryrefslogtreecommitdiff
path: root/games/tuxpaint/Makefile
blob: deb6634d495f91d768a2e7f0adac2c892aac843c (plain) (blame)
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
PORTNAME=	tuxpaint
PORTVERSION=	0.9.32
CATEGORIES=	games
MASTER_SITES=	SF
#DISTNAME=	${PORTNAME}-${PORTVERSION}-sdl2

MAINTAINER=	wen@FreeBSD.org
COMMENT=	Drawing program designed for young children
WWW=		https://www.tuxpaint.org/

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/docs/COPYING.txt

LIB_DEPENDS=	libfribidi.so:converters/fribidi \
		libpaper.so:print/libpaper \
		libimagequant.so:graphics/libimagequant \
		libpng16.so:graphics/png \
		libharfbuzz.so:print/harfbuzz \
		libSDL2_Pango.so:x11-toolkits/sdl2_pango

RUN_DEPENDS=	anytopnm:graphics/netpbm \
		bash:shells/bash

USES=		gettext gmake gnome gperf magick:7,build pkgconfig \
		python sdl shebangfix
SHEBANG_FILES=	src/tuxpaint-import.sh \
		fonts/locale/zh_tw_docs/maketuxfont.py

USE_GNOME=	librsvg2 cairo
USE_SDL=	gfx2 image2 mixer2 sdl2 ttf2
MAKE_ARGS=	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib" \
		PREFIX="${PREFIX}" \
		MAN_PREFIX="${STAGEDIR}${PREFIX}/share/man" \
		DEVMAN_PREFIX="${STAGEDIR}${PREFIX}/share/man" \
		X11_ICON_PREFIX="${STAGEDIR}${PREFIX}/share/pixmaps" \
		GNOME_PREFIX="${PREFIX}" \
		ARCH_INSTALL="" \
		OPTFLAGS="${CFLAGS} -DHAVE_STRCASESTR" \
		SHARED_FLAGS="-shared -fPIC" \
		GPERF="${GPERF}"

MAKE_JOBS_UNSAFE=	yes

INSTALL_TARGET=	install-gettext install-im install-magic-plugins \
		install-magic-plugin-dev install-default-config \
		install-example-stamps install-example-starters \
		install-icon install-bin install-importscript \
		install-data install-doc install-man

PORTDOCS=	*
PORTDATA=	*

OPTIONS_DEFINE=	DOCS

.include <bsd.port.options.mk>

.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
CFLAGS+=	-Wno-error=incompatible-function-pointer-types
.endif

post-extract:
	@${RM} -r ${WRKSRC}/fonts/locale/vi_docs

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/tuxpaint
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/tuxpaint/plugins/*.so

.include <bsd.port.mk>