1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/games/xdeblock/Makefile
William Grzybowski 7e996d3ae7 games/xdeblock: fix build with clang
- Fix build with clang
- Allow staging [1]

PR:		ports/182797
Submitted by:	KATO Tsuguru <tkato432 yahoo.com> [1]
2013-10-26 12:46:37 +00:00

32 lines
794 B
Makefile

# Created by: Yukihiro Nakai <Nakai@Mlab.t.u-tokyo.ac.jp>
# $FreeBSD$
PORTNAME= xdeblock
PORTVERSION= 1.0
PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= http://ftp.vector.co.jp/pack/unix/game/action/block/
DISTFILES= ${PORTNAME}.tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= Block action game
WRKSRC= ${WRKDIR}/xdeblo_v1.0
USES= imake
USE_XORG= xpm
NO_INSTALL_MANPAGES= yes
CFLAGS+= -Wno-return-type
post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/main.c
do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} xdeblo ${STAGEDIR}${PREFIX}/bin)
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/xdeblock/mapf
${CHMOD} 777 ${STAGEDIR}${PREFIX}/lib/X11/xdeblock/mapf
(cd ${WRKSRC}/mapf && ${INSTALL_DATA} *.txt \
${STAGEDIR}${PREFIX}/lib/X11/xdeblock/mapf)
.include <bsd.port.mk>