* fix to the exec script to always find the levels

* USE_TOOLS for automake/conf instead of DEPENDS; (thanks to thomasklausner)
** accidently reverted by last commit
This commit is contained in:
Hernani Marques Madeira 2006-01-14 23:40:10 +00:00 committed by Thomas Klausner
parent 179191a144
commit fb0466ce6c
2 changed files with 5 additions and 5 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2006/01/14 22:45:16 h2m Exp $
# $NetBSD: Makefile,v 1.4 2006/01/14 23:40:10 h2m Exp $
#
PKGNAME= smc-0.97
@ -14,14 +14,12 @@ MAINTAINER= hernani@vecirex.net
HOMEPAGE= http://smclone.sf.net/
COMMENT= Super Mario (World) Clone using pretty 2D graphics
DEPENDS+= autoconf>=2.50:../../devel/autoconf
DEPENDS+= automake>=1.7:../../devel/automake
DEPENDS+= SDL-nas-[0-9]*:../../audio/SDL-nas
GCC_REQD= 3.2
WRKSRC= ${WRKDIR}/0.97
GNU_CONFIGURE= YES
USE_TOOLS+= gmake
USE_TOOLS+= gmake automake gmake
SMCSHARE=${PREFIX}/share/smc

View file

@ -6,7 +6,7 @@ CONFDIR=.smc
(
cd ~
if [ ! -d ${CONFDIR} ]; then
echo No SMC user directory available -- creating one
echo No SMC user directory available -- creating that
mkdir $CONFDIR
cd $CONFDIR
cp -rf ${SHAREDIR}/levels .
@ -20,7 +20,9 @@ cd ~
ln -s ${SHAREDIR}/sounds sounds
ln -s ${SHAREDIR}/world world
ln -s ~/${CONFDIR} data
cd ..
fi
export SDL_AUDIO_PLUGIN="nas"
cd ${CONFDIR}
${LIBDIR}/smc $*
)