2000-12-26 05:31:26 +00:00
|
|
|
|
# New ports collection makefile for: xtux
|
|
|
|
|
# Date created: 23 December 2000
|
|
|
|
|
# Whom: G<>ran Runfeldt <goranrunfeldt@home.se>
|
|
|
|
|
#
|
|
|
|
|
# $FreeBSD$
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
PORTNAME= xtux
|
2003-05-05 06:05:03 +00:00
|
|
|
|
PORTVERSION= 2003.03.06
|
2004-02-04 05:21:48 +00:00
|
|
|
|
PORTREVISION= 2
|
2000-12-26 05:31:26 +00:00
|
|
|
|
CATEGORIES= games
|
2001-02-08 16:24:52 +00:00
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2001-05-22 16:47:11 +00:00
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
DISTNAME= ${PORTNAME}-src-${PORTVERSION:S/.//g}
|
2000-12-26 05:31:26 +00:00
|
|
|
|
|
2003-05-05 05:51:49 +00:00
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 12:06:51 +00:00
|
|
|
|
COMMENT= Humorous Arcade game for X
|
2000-12-26 05:31:26 +00:00
|
|
|
|
|
2003-05-15 19:47:55 +00:00
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
|
2000-12-26 05:31:26 +00:00
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
|
USE_XPM= yes
|
2003-05-15 19:47:55 +00:00
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
|
USE_GMAKE= yes
|
2004-04-02 01:56:13 +00:00
|
|
|
|
MAKE_ENV= CPP="${CC} -E" CC="${CC}"
|
2003-05-15 19:47:55 +00:00
|
|
|
|
|
|
|
|
|
CFLAGS+= -DDATADIR=\\\"${DATADIR}\\\"
|
|
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
|
@${FIND} ${WRKSRC}/src -name "Makefile" | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
|
's|^CC|#CC|g ; \
|
|
|
|
|
s|^CFLAGS|#CFLAGS|g ; \
|
|
|
|
|
s|^CPP|#CPP|g ; \
|
|
|
|
|
s|^MAKE|#MAKE|g ; \
|
|
|
|
|
s|/usr/X11R6|$${X11BASE}|g'
|
2000-12-26 05:31:26 +00:00
|
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/xtux ${PREFIX}/bin
|
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tux_serv ${PREFIX}/bin
|
|
|
|
|
|
2003-05-15 19:47:55 +00:00
|
|
|
|
@${MKDIR} ${DATADIR}/demos
|
|
|
|
|
@${MKDIR} ${DATADIR}/images/entities
|
|
|
|
|
@${MKDIR} ${DATADIR}/images/events
|
|
|
|
|
@${MKDIR} ${DATADIR}/images/items
|
|
|
|
|
@${MKDIR} ${DATADIR}/images/weapons
|
|
|
|
|
@${MKDIR} ${DATADIR}/images/tiles
|
|
|
|
|
@${MKDIR} ${DATADIR}/maps
|
2000-12-26 05:31:26 +00:00
|
|
|
|
|
2003-05-15 19:47:55 +00:00
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/data/*.table ${DATADIR}
|
2000-12-26 05:31:26 +00:00
|
|
|
|
.for file in ascii.txt bios entities weapons
|
2003-05-15 19:47:55 +00:00
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/data/${file} ${DATADIR}
|
2000-12-26 05:31:26 +00:00
|
|
|
|
.endfor
|
2001-03-26 13:20:49 +00:00
|
|
|
|
.for dir in entities events items weapons tiles .
|
2000-12-26 05:31:26 +00:00
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/data/images/${dir}/*.xpm \
|
2003-05-15 19:47:55 +00:00
|
|
|
|
${DATADIR}/images/${dir}
|
2000-12-26 05:31:26 +00:00
|
|
|
|
.endfor
|
2003-05-15 19:47:55 +00:00
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/data/demos/*.xtdem ${DATADIR}/demos
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/data/maps/*.map ${DATADIR}/maps
|
2000-12-26 05:31:26 +00:00
|
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
2003-05-15 19:47:55 +00:00
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
2000-12-26 05:31:26 +00:00
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|