pkgsrc/games/rocksndiamonds-levels/Makefile
reed 1a5958014b Extract to WRKSRC first so permissions can be fixed.
Then use cpio to install.
I chose to do it this way although it can take over 10 minutes to install,
because users can modify levels and maliciously fill up disk space.
(Maybe there is some tar, pax, or cpio option to extract and not use
permissions in the file?)
Bump PKGREVISION.
Add LANGUAGES=     # none
And added a comment to this file about the score files:
what cleans them up?
2005-10-18 20:22:17 +00:00

86 lines
3.8 KiB
Makefile

# $NetBSD: Makefile,v 1.10 2005/10/18 20:22:17 reed Exp $
DISTNAME= rocksndiamonds-levels-1.0
PKGREVISION= 1
CATEGORIES= games x11
MASTER_SITES= http://www.artsoft.org/RELEASES/unix/rocksndiamonds/levels/
DISTFILES= rockslevels-dx-1.0.tar.gz \
rockslevels-emc-1.0.tar.gz \
rockslevels-sp-1.0.tar.gz
WRKSRC= ${WRKDIR}/levels
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://www.artsoft.org/rocksndiamonds/levels.html
COMMENT= DX, Emerald Mine, and Sokoban levels for Rocks'N'Diamonds
DEPENDS+= rocksndiamonds{,-sdl}>=1.4.0:../../games/rocksndiamonds
NO_CONFIGURE= yes
NO_BUILD= yes
LANGUAGES= # none
PLIST_SRC= ${WRKDIR}/PLIST PLIST
# if you change SCORE_PATH, don't forget to change patch-aa, too
SCORE_PATH= ${VARBASE}/games/rocksndiamonds
CPIO?= cpio
post-extract:
${CHMOD} -R o-w ${WRKSRC}
# XXX: how are these directories cleaned up?
do-install:
.for directory in dx_abd dx_achim_haertel \
dx_bd4 dx_blunderdash dx_boulderdash5 dx_dc2classic dx_firefox1 \
dx_forgottenmine1 dx_manfred_tausch dx_martin_brentnall \
dx_no_one_1-3 dx_no_one_4-6 dx_peter_broadribb dx_tutorial \
emc_acemine_1 emc_acemine_2 emc_adventures_of_mr_b_1 \
emc_adventures_of_mr_b_2 emc_amidash emc_babyghostmine emc_bd_c64 \
emc_beermine emc_bobbydash emc_bondmine_01 emc_bondmine_02 \
emc_bondmine_03 emc_bondmine_04 emc_bondmine_05 emc_bondmine_06 \
emc_bondmine_07_5 emc_bondmine_08 emc_bondmine_09 emc_bondmine_11 \
emc_bondmine_12 emc_bondmine_13 emc_bugmine_2 emc_bugmine_4 \
emc_cosmos_mine emc_crystal_caverns_1 emc_crystal_caverns_2 \
emc_crystal_caverns_3 emc_crystal_caverns_4 emc_danmark_mine_1 \
emc_danmark_mine_2 emc_denmine_01 emc_denmine_02 emc_denmine_03 \
emc_denmine_04 emc_denmine_05 emc_denmine_06 emc_denmine_07 \
emc_denmine_08 emc_denmine_09 emc_denmine_10 emc_denmine_11 \
emc_denmine_12 emc_downunder_mine_01 emc_downunder_mine_03 \
emc_downunder_mine_04 emc_downunder_mine_05 emc_downunder_mine_06 \
emc_downunder_mine_07 emc_downunder_mine_08 emc_downunder_mine_09 \
emc_downunder_mine_10 emc_downunder_mine_11 emc_downunder_mine_13 \
emc_downunder_mine_14 emc_downunder_mine_19 emc_downunder_mine_21 \
emc_easy_ruppelmine emc_eatmine_1 emc_eatmine_2 emc_eatmine_3 \
emc_emerald_cruncher_2 emc_emerald_dash emc_emerald_eater_1 \
emc_emerald_eater_2 emc_emerald_freak_1 emc_emerald_freak_2 \
emc_emerald_head emc_emerald_mine_01 emc_emerald_mine_02 \
emc_emerald_mine_03 emc_emerald_mine_03_pro emc_emerald_mine_04 \
emc_emerald_mine_04_pro_x emc_emerald_mine_05 emc_emerald_mine_06 \
emc_emerald_mine_07 emc_emerald_mine_08 emc_emerald_mine_09 \
emc_emerald_mine_10 emc_emerald_mine_11 emc_emerald_mine_12 \
emc_emerald_mine_13 emc_emerald_mine_14 emc_emerald_mine_15 \
emc_emerald_mine_16 emc_emerald_mine_17 emc_emerald_mine_18 \
emc_emerald_mine_final emc_emerald_runner_mine emc_exception_one \
emc_expert_mine_1 emc_expert_mine_2 emc_expert_mine_3 emc_fun_mine \
emc_gold_nuggets_1 emc_gold_nuggets_2 emc_haunted_mine_3 \
emc_into_cold_caves emc_into_frusty_mines emc_into_future_fields \
emc_into_history_holes emc_laser_bd_2 emc_no_one_10 emc_profi_bd_1 \
emc_profi_bd_2 emc_recycled_1 emc_recycled_2 emc_ruppelmine_1 \
emc_ruppelmine_2 emc_ruppelmine_3 emc_tutorial_2 emc_venom_mine \
supaplex_01 supaplex_02 supaplex_03 supaplex_04 supaplex_05 \
supaplex_06 supaplex_07 supaplex_08 supaplex_95 supaplex_96 \
supaplex_97 supaplex_98 supaplex_99
${INSTALL_DATA_DIR} ${SCORE_PATH}/scores/${directory} \
&& ${CHMOD} 775 ${SCORE_PATH}/scores/${directory}
.endfor
cd ${WRKSRC} && ${FIND} DX_Boulderdash Emerald_Mine_Club Supaplex | \
${CPIO} -p ${PREFIX}/share/rocksndiamonds/levels
${RM} -f ${WRKDIR}/PLIST
.for levdir in DX_Boulderdash Emerald_Mine_Club Supaplex
cd ${PREFIX} && \
${FIND} share/rocksndiamonds/levels/${levdir} -type f -print >>${WRKDIR}/PLIST
.endfor
${CHOWN} -R games:games ${SCORE_PATH}
.include "../../mk/bsd.pkg.mk"