2000-12-26 00:31:26 -05:00
|
|
|
|
# New ports collection makefile for: xtux
|
|
|
|
|
# Date created: 23 December 2000
|
|
|
|
|
# Whom: G<>ran Runfeldt <goranrunfeldt@home.se>
|
|
|
|
|
#
|
|
|
|
|
# $FreeBSD$
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
PORTNAME= xtux
|
2001-07-15 11:06:28 -04:00
|
|
|
|
PORTVERSION= 2001.06.01
|
2000-12-26 00:31:26 -05:00
|
|
|
|
CATEGORIES= games
|
2001-02-08 11:24:52 -05:00
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2001-05-22 12:47:11 -04:00
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
DISTNAME= ${PORTNAME}-src-${PORTVERSION:S/.//g}
|
2000-12-26 00:31:26 -05:00
|
|
|
|
|
|
|
|
|
MAINTAINER= goranrunfeldt@home.se
|
|
|
|
|
|
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
|
USE_XPM= yes
|
|
|
|
|
CFLAGS+= -DDATADIR=\\\"${PREFIX}/share/xtux\\\"
|
|
|
|
|
WRKSRC= ${WRKDIR}/xtux
|
|
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/xtux ${PREFIX}/bin
|
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tux_serv ${PREFIX}/bin
|
|
|
|
|
@strip ${PREFIX}/bin/xtux ${PREFIX}/bin/tux_serv
|
|
|
|
|
|
|
|
|
|
@${MKDIR} ${PREFIX}/share/xtux/images/entities
|
2001-03-26 08:20:49 -05:00
|
|
|
|
@${MKDIR} ${PREFIX}/share/xtux/images/events
|
2000-12-26 00:31:26 -05:00
|
|
|
|
@${MKDIR} ${PREFIX}/share/xtux/images/items
|
|
|
|
|
@${MKDIR} ${PREFIX}/share/xtux/images/weapons
|
|
|
|
|
@${MKDIR} ${PREFIX}/share/xtux/images/tiles
|
|
|
|
|
@${MKDIR} ${PREFIX}/share/xtux/maps
|
|
|
|
|
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/data/*.table ${PREFIX}/share/xtux
|
|
|
|
|
.for file in ascii.txt bios entities weapons
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/data/${file} ${PREFIX}/share/xtux
|
|
|
|
|
.endfor
|
2001-03-26 08:20:49 -05:00
|
|
|
|
.for dir in entities events items weapons tiles .
|
2000-12-26 00:31:26 -05:00
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/data/images/${dir}/*.xpm \
|
|
|
|
|
${PREFIX}/share/xtux/images/${dir}
|
|
|
|
|
.endfor
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/data/maps/*.map \
|
|
|
|
|
${PREFIX}/share/xtux/maps
|
|
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
|
@${MKDIR} ${PREFIX}/share/doc/xtux
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/xtux
|
2001-05-22 12:47:11 -04:00
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xtux
|
2000-12-26 00:31:26 -05:00
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|