blob: e1e39fd2f849b1750f3494bc2a9a88f3e0a6996f (
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
|
# Created by: swallace
# $FreeBSD$
PORTNAME= xasteroids
PORTVERSION= 5.0
PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= XCONTRIB/../R5contrib
DISTNAME= ${PORTNAME}
EXTRACT_SUFX= .sh.Z
MAINTAINER= ports@FreeBSD.org
COMMENT= X11 based asteroids style arcade game
EXTRACT_CMD= ( cd ${WRKSRC}; zcat | ${SH} -s )
EXTRACT_BEFORE_ARGS= <
EXTRACT_AFTER_ARGS= # empty
NO_WRKSUBDIR= yes
USES= xorg
USE_XORG= x11 xext
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lXext -lX11 -lm
PLIST_FILES= bin/xasteroids \
man/man6/xasteroids.6.gz
post-extract:
@${LN} -sf xast.man ${WRKSRC}/xasteroids.6
do-build:
(cd ${WRKSRC} && ${CC} ${CPPFLAGS} ${CFLAGS} -o xasteroids xast.c \
${LDFLAGS})
do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} xasteroids ${STAGEDIR}${PREFIX}/bin)
(cd ${WRKSRC} && ${INSTALL_MAN} xasteroids.6 ${STAGEDIR}${MAN6PREFIX}/man/man6)
.include <bsd.port.mk>
|