aboutsummaryrefslogtreecommitdiff
path: root/games/pongix/Makefile
blob: a93581b3510342840d63cc69c171d77d6b40a89c (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
# Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
# $FreeBSD$

PORTNAME=	pongix
PORTVERSION=	0.4
PORTREVISION=	13
CATEGORIES=	games
MASTER_SITES=	http://www.losersjuegos.com.ar/_media/juegos/pongix/descargas/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Free pong-like game

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

USES=		gmake
USE_SDL=	sdl image net
GNU_CONFIGURE=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
LIBS+=		-lm
PORTDOCS=	AUTHORS ChangeLog README

do-install:
	${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${DOCSDIR}
	cd ${WRKSRC}/src && \
		${INSTALL_PROGRAM} pongix ${STAGEDIR}${PREFIX}/bin
	cd ${WRKSRC}/data && ${FIND} * -type d \
		-exec ${MKDIR} "${STAGEDIR}${DATADIR}/{}" \; && \
		${FIND} -E * -type f -iregex ".*\.(jpg|bmp)" \
		-exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DATADIR}/{}" \;
	cd ${WRKSRC} && ${INSTALL_DATA} \
		AUTHORS ChangeLog README ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>