f644c9e93c
- Modernize plist - Regenerate patches
35 lines
1.0 KiB
Makefile
35 lines
1.0 KiB
Makefile
# Created by: Yukihiro Nakai <Nakai@Mlab.t.u-tokyo.ac.jp>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= xsokoban
|
|
PORTVERSION= 3.3c
|
|
PORTREVISION= 2
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://www.cs.cornell.edu/andru/release/ \
|
|
ftp://ftp.pmg.lcs.mit.edu/pub/xsokoban/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Puzzle of pushing objects to the goals
|
|
|
|
USES= imake
|
|
USE_XORG= xpm
|
|
WRKSRC= ${WRKDIR}/xsokoban
|
|
ALL_TARGET= xsokoban
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/config.h
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/xsokoban/screens
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/xsokoban/bitmaps/defaults
|
|
${INSTALL_DATA} ${WRKSRC}/screens/* ${STAGEDIR}${PREFIX}/lib/X11/xsokoban/screens
|
|
${INSTALL_DATA} ${WRKSRC}/bitmaps/defaults/* \
|
|
${STAGEDIR}${PREFIX}/lib/X11/xsokoban/bitmaps/defaults
|
|
|
|
@${MKDIR} ${STAGEDIR}/var/games/xsokoban/scores
|
|
@${MKDIR} ${STAGEDIR}/var/games/xsokoban/saves
|
|
# may be created by xsokoban -c
|
|
@${PRINTF} "xs02\0\0" > ${STAGEDIR}/var/games/xsokoban/scores/scores.sample
|
|
|
|
.include <bsd.port.mk>
|