freebsd-ports/games/xasteroids/Makefile
Mathieu Arnold 065c026fe5 Fix ports that confused the meaning of WRKDIR and WRKSRC.
PR:		204056
Submitted by:	mat
Reviewed by:	bapt
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D2735
2015-11-05 12:36:25 +00:00

40 lines
886 B
Makefile

# 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
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>