aboutsummaryrefslogtreecommitdiffstats
path: root/games/xdeblock/Makefile
blob: d10ed27c5e9e133bc60672fc0996a8ff3af6dad4 (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
# New ports collection makefile for:    xdeblock
# Date created:     28 December 1996
# Whom:         Yukihiro Nakai <Nakai@Mlab.t.u-tokyo.ac.jp>
#
# $FreeBSD$
#

PORTNAME=   xdeblock
PORTVERSION=    1.0
CATEGORIES= games
MASTER_SITES=   ftp://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

USE_IMAKE=  yes
USE_XPM=    yes
USE_REINPLACE=  yes
NO_INSTALL_MANPAGES=    yes

post-patch:
    @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/main.c

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/xdeblo ${PREFIX}/bin
    @${MKDIR} ${PREFIX}/lib/X11/xdeblock/mapf
    ${CHMOD} 777 ${PREFIX}/lib/X11/xdeblock/mapf
    ${INSTALL_DATA} ${WRKSRC}/mapf/*.txt ${PREFIX}/lib/X11/xdeblock/mapf

.include <bsd.port.mk>