aboutsummaryrefslogtreecommitdiff
path: root/games/tuxtype/Makefile
blob: 20d960551e15913d0d5c071f755d44ebaf418e77 (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
# Created by: Patrick Li <pat@databits.net>

PORTNAME=	tuxtype
PORTVERSION=	1.8.3
PORTREVISION=	1
CATEGORIES=	games education
MASTER_SITES=	DEBIAN_POOL
DISTNAME=	${PORTNAME}_${PORTVERSION}.orig

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Educational typing tutor starring Tux the Linux Penguin

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	gsed:textproc/gsed

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}

USES=		autoreconf gettext gmake gnome iconv localbase perl5 pkgconfig \
		sdl
USE_GNOME=	libxml2
USE_SDL=	image mixer net pango sdl
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--localstatedir=/var/games
CONFIGURE_ENV=	ac_cv_lib_m_csin=yes

CPPFLAGS+=	-I${ICONV_INCLUDE_PATH}
LDFLAGS+=	${ICONV_LIB_PATH}

DESKTOP_ENTRIES="TuxType" "" "${DATADIR}/images/icons/icon.png" \
		"tuxtype" "" ""

OPTIONS_DEFINE=		DOCS SVG
OPTIONS_DEFAULT=	SVG
OPTIONS_SUB=		yes

SVG_USE=		gnome=librsvg2
SVG_CONFIGURE_WITH=	rsvg

post-patch:
	@${FIND} ${WRKSRC}/data -name "sed-linux.sh" | ${XARGS} \
		${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|; s|^sed |gsed |'
	@${REINPLACE_CMD} -e 's|\.\.\/ABOUT-NLS ||; s|COPYING ||; s|INSTALL ||' \
		${WRKSRC}/doc/Makefile.am
	@${REINPLACE_CMD} -e 's|-Wall -g |-Wall |; s|-DDEBUG ||' \
		${WRKSRC}/src/Makefile.am

post-configure:
	@${REINPLACE_CMD} -e 's|-R${LOCALBASE}/lib||' ${WRKSRC}/src/Makefile

.include <bsd.port.mk>