2006-12-27 14:37:35 +01:00
|
|
|
# $NetBSD: Makefile,v 1.19 2006/12/27 13:37:36 joerg Exp $
|
2002-07-11 15:26:12 +02:00
|
|
|
|
|
|
|
DISTNAME= Maelstrom-1.4.3-L2.0.6-src.tar.gz
|
|
|
|
PKGNAME= maelstrom-x11-2.0.6
|
2006-06-26 10:56:37 +02:00
|
|
|
PKGREVISION= 2
|
2002-07-11 15:26:12 +02:00
|
|
|
CATEGORIES= games x11
|
|
|
|
MASTER_SITES+= ftp://ftp.devolution.com/pub/maelstrom/
|
|
|
|
MASTER_SITES+= ftp://ftp.devolution.com/pub/maelstrom/Maelstrom-binaries/
|
|
|
|
MASTER_SITES+= ftp://ftp.devolution.com/pub/maelstrom/Add-Ons/
|
|
|
|
DISTFILES= ${DISTNAME} ${STREK} ${SWARS} ${ESOUND}
|
|
|
|
|
|
|
|
MAINTAINER= root@garbled.net
|
|
|
|
HOMEPAGE= http://www.ambrosiasw.com/Products/Maelstrom.html
|
2003-06-07 16:47:16 +02:00
|
|
|
COMMENT= High resolution graphics version of Asteroids (X11 version)
|
2002-07-11 15:26:12 +02:00
|
|
|
|
|
|
|
ESOUND= Maelstrom-Sounds-L2.0.0.tar.gz
|
|
|
|
STREK= Star_Trek.tar.gz
|
|
|
|
SWARS= Star_Wars.tar.gz
|
|
|
|
|
|
|
|
CONFLICTS= maelstrom-[0-9]* maelstrom-sdl-[0-9]*
|
|
|
|
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}
|
|
|
|
|
2004-01-20 13:07:06 +01:00
|
|
|
WRKSRC= ${WRKDIR}/Maelstrom
|
2006-06-26 10:56:37 +02:00
|
|
|
USE_LANGUAGES= c c++
|
2002-07-11 15:26:12 +02:00
|
|
|
USE_X11BASE= YES
|
2006-12-27 14:37:35 +01:00
|
|
|
MAKE_ENV+= BINOWN=${BINOWN:Q} BINGRP=${BINGRP:Q} XPMDIR=${BUILDLINK_PREFIX.libXpm}
|
2006-06-26 10:56:37 +02:00
|
|
|
MAKE_ENV+= GAMEOWN=${GAMEOWN} GAMEGRP=${GAMEGRP}
|
|
|
|
MAKE_ENV+= GAMEMODE=${GAMEMODE} GAMEDATAMODE=${GAMEDATAMODE}
|
|
|
|
MAKE_ENV+= VARBASE=${VARBASE}
|
|
|
|
|
|
|
|
MAKE_DIRS_PERMS+= ${VARBASE}/games ${GAMEOWN} ${GAMEGRP} ${GAMEDIRMODE}
|
|
|
|
CONF_FILES_PERMS+= ${PREFIX}/share/maelstrom/Maelstrom-Scores \
|
|
|
|
${VARBASE}/games/Maelstrom-Scores ${GAMEOWN} ${GAMEGRP} ${GAMEDATAMODE}
|
2002-07-11 15:26:12 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
cd ${PREFIX}/share/maelstrom && \
|
2003-04-10 22:10:15 +02:00
|
|
|
${PAX} -O -pm -zrf ${DISTDIR}/${ESOUND} && \
|
|
|
|
${PAX} -O -pm -zrf ${DISTDIR}/${STREK} && \
|
|
|
|
${PAX} -O -pm -zrf ${DISTDIR}/${SWARS}
|
2006-06-26 10:56:37 +02:00
|
|
|
${CHOWN} ${GAMEOWN}:${GAMEGRP} ${PREFIX}/bin/Maelstrom
|
|
|
|
${CHMOD} ${GAMEMODE} ${PREFIX}/bin/Maelstrom
|
2002-07-11 15:26:12 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.* ${PREFIX}/share/maelstrom
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/netplayd/netplayd ${PREFIX}/bin/Maelstrom_netplayd
|
|
|
|
|
2006-12-27 14:37:35 +01:00
|
|
|
.include "../../x11/libXext/buildlink3.mk"
|
2006-12-15 21:32:52 +01:00
|
|
|
.include "../../x11/libXpm/buildlink3.mk"
|
2006-12-27 14:37:35 +01:00
|
|
|
.include "../../x11/xextproto/buildlink3.mk"
|
2006-03-09 22:04:39 +01:00
|
|
|
.include "../../mk/oss.buildlink3.mk"
|
2002-07-11 15:26:12 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|