d26cf36e57
or USE_X11BASE set, but don't include mk/x11.buildlink3.mk directly or via buildlink3.mks - introduce BUILDLINK_PREFIX.libXpm as alias for BUILDLINK_PREFIX.xpm in the !modular case - fix some cases where the check for libX11 couldn't work at all by using C++ for compilation without including the proper headers Verified using a full X11_TYPE=xorg bulk build without additional breakage. Discussed with salo@, wiz@ and send to packages@ for feedback.
50 lines
1.8 KiB
Makefile
50 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.19 2006/12/27 13:37:36 joerg Exp $
|
|
|
|
DISTNAME= Maelstrom-1.4.3-L2.0.6-src.tar.gz
|
|
PKGNAME= maelstrom-x11-2.0.6
|
|
PKGREVISION= 2
|
|
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
|
|
COMMENT= High resolution graphics version of Asteroids (X11 version)
|
|
|
|
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}
|
|
|
|
WRKSRC= ${WRKDIR}/Maelstrom
|
|
USE_LANGUAGES= c c++
|
|
USE_X11BASE= YES
|
|
MAKE_ENV+= BINOWN=${BINOWN:Q} BINGRP=${BINGRP:Q} XPMDIR=${BUILDLINK_PREFIX.libXpm}
|
|
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}
|
|
|
|
post-install:
|
|
cd ${PREFIX}/share/maelstrom && \
|
|
${PAX} -O -pm -zrf ${DISTDIR}/${ESOUND} && \
|
|
${PAX} -O -pm -zrf ${DISTDIR}/${STREK} && \
|
|
${PAX} -O -pm -zrf ${DISTDIR}/${SWARS}
|
|
${CHOWN} ${GAMEOWN}:${GAMEGRP} ${PREFIX}/bin/Maelstrom
|
|
${CHMOD} ${GAMEMODE} ${PREFIX}/bin/Maelstrom
|
|
${INSTALL_DATA} ${WRKSRC}/README.* ${PREFIX}/share/maelstrom
|
|
${INSTALL_PROGRAM} ${WRKSRC}/netplayd/netplayd ${PREFIX}/bin/Maelstrom_netplayd
|
|
|
|
.include "../../x11/libXext/buildlink3.mk"
|
|
.include "../../x11/libXpm/buildlink3.mk"
|
|
.include "../../x11/xextproto/buildlink3.mk"
|
|
.include "../../mk/oss.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|