summaryrefslogtreecommitdiffstats
path: root/games/lbreakout2/Makefile
blob: 877cae947efead30c4de7b8b6141a2fd0c5bc459 (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
# Created by: verm@drunkmonk.net
# $FreeBSD$

PORTNAME=	lbreakout2
PORTVERSION=	2.6.5
CATEGORIES=	games
MASTER_SITES=	SF/lgames/${PORTNAME}/${PORTVERSION:R}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Breakout-style arcade game

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

BUILD_DEPENDS=	gif2png:graphics/gif2png
LIB_DEPENDS=	libpng.so:graphics/png

BROKEN_powerpc64=	fails to build: gif2png: error in reading DataBlock: Segmentation fault (core dumped)

USES=		gmake
USE_SDL=	mixer net sdl
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-sdl-net \
		--localstatedir=/var/games \
		--with-docdir=${PREFIX}/share/doc

CPPFLAGS+=	$$(libpng-config --I_opts)
LDFLAGS+=	$$(libpng-config --L_opts)

OPTIONS_DEFINE=		DOCS NLS
OPTIONS_SUB=		yes

NLS_USES=		gettext
NLS_CONFIGURE_ENABLE=	nls

post-patch:
	@${REINPLACE_CMD} -e \
		'/if test/s|==|=|' ${WRKSRC}/configure
	@${REINPLACE_CMD} -e \
		'/^icondir/s|icons|pixmaps| ; \
		 /^icon_DATA/s|48.gif|2.png| ; \
		 /Icon=/s|$$(datadir).*.gif|lbreakout2|' ${WRKSRC}/Makefile.in
	@${REINPLACE_CMD} -e \
		'/LDADD =/s|$$| @INTLLIBS@| ; \
		 s|: install-data-local|:|' ${WRKSRC}/client/Makefile.in
	@${REINPLACE_CMD} -e \
		'/LDADD =/s|$$| @INTLLIBS@|' ${WRKSRC}/server/Makefile.in

pre-build:
	(cd ${WRKSRC} && ${CAT} lbreakout48.gif | gif2png -O -f \
		> lbreakout2.png)

post-install:
	(cd ${WRKSRC}/client && ${INSTALL_DATA} empty.hscr \
		${STAGEDIR}${DATADIR})

.include <bsd.port.mk>
OpenPOWER on IntegriCloud