mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
6049e123ea
PR: 22745 Submitted by: Ports Fury
46 lines
1.4 KiB
Makefile
46 lines
1.4 KiB
Makefile
# New ports collection makefile for: xnibbles
|
|
# Date created: 2 March 1998
|
|
# Whom: Andrey Zakhvatov
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= xnibbles
|
|
PORTVERSION= 1.0.b3
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://www.tjhsst.edu/xnibbles/
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.b/BETA/}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
USE_X_PREFIX= yes
|
|
USE_XPM= yes
|
|
USE_GMAKE= yes
|
|
MAKE_ENV= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
|
|
ALL_TARGET= linux
|
|
|
|
MAN6= xnibbles.6
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/xnibbles ${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/xnibbles.6 ${MANPREFIX}/man/man6
|
|
@${MKDIR} ${PREFIX}/share/xnibbles/sounds
|
|
${INSTALL_DATA} ${WRKSRC}/sounds/*.ub ${PREFIX}/share/xnibbles/sounds
|
|
@${MKDIR} ${PREFIX}/share/xnibbles/levels
|
|
.if exists(${PREFIX}/share/xnibbles/levels/LEVELS)
|
|
@${RM} ${PREFIX}/share/xnibbles/levels/LEVELS
|
|
.endif
|
|
@${TOUCH} ${PREFIX}/share/xnibbles/levels/LEVELS
|
|
.for file in 001 002 003 004 005 006 007 008 009 010 011 012
|
|
@${ECHO} ${PREFIX}/share/xnibbles/levels/level${file}.xnl >> ${PREFIX}/share/xnibbles/levels/LEVELS
|
|
${INSTALL_DATA} ${WRKSRC}/levels/*.xnl ${PREFIX}/share/xnibbles/levels
|
|
.endfor
|
|
@${MKDIR} ${PREFIX}/share/doc/xnibbles
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xnibbles
|
|
${INSTALL_DATA} ${WRKSRC}/TODO ${PREFIX}/share/doc/xnibbles
|
|
${INSTALL_DATA} ${WRKSRC}/levels/README ${PREFIX}/share/doc/xnibbles/README.levels
|
|
|
|
.include <bsd.port.mk>
|