summaryrefslogtreecommitdiffstats
path: root/games/xworm/Makefile
blob: df170746e770e2dfba7aabbcb11f1dc7421fdb6d (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
# Created by: Andrey Zakhvatov
# $FreeBSD$

PORTNAME=	xworm
PORTVERSION=	1.02
PORTREVISION=	2
CATEGORIES=	games
MASTER_SITES=	http://www.ekran.no/archive/x/
DISTNAME=	${PORTNAME}102

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Classic game with apples and hungry worm

USE_XORG=	x11 xt
WRKSRC=		${WRKDIR}/XWorm
ALL_TARGET=	linux
MAKE_ARGS=	CC="${CC}" INCDIR="-I${LOCALBASE}/include" \
		LINUXFLAGS='${CFLAGS} -DXWORMDIR=\"${DATADIR}\"' \
		LINUXLINK="-L${LOCALBASE}/lib -lXt -lX11 -lm"

DATA=		font grid raw
PLIST_FILES=	bin/xworm ${DATA:S/^/%%DATADIR%%\/xworm./}
PLIST_DIRS=	%%DATADIR%%

NO_STAGE=	yes
do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/xworm ${PREFIX}/bin
	@${MKDIR} ${PREFIX}/share/xworm
.for file in ${DATA}
	${INSTALL_DATA} ${WRKSRC}/xworm.${file} ${PREFIX}/share/xworm
.endfor

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