pkgsrc/games/crossfire-cli/Makefile
snj 9eda2f0068 Convert to buildlink3, drop superfluous DEPENDS, remove superfluous
SCRIPTS_ENV, don't bother explicitly including ${LOCALBASE}/include/,
pull in ossaudio.buildlink3.mk, link with ${LIBOSSAUDIO} and use
${DEVOSSAUDIO}.  Bump PKGREVISION.

XXX What is with those install and deinstall scripts?
2004-04-11 19:04:44 +00:00

51 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.18 2004/04/11 19:04:44 snj Exp $
#
DISTNAME= crossfire-client-1.0.0
PKGREVISION= 4
CATEGORIES= games x11
MASTER_SITES= ftp://ftp.ifi.uio.no/pub/crossfire/
DISTFILES= ${CF_SRC} ${CF_SND} ${CF_RAW}
MAINTAINER= root@garbled.net
HOMEPAGE= http://crossfire.real-time.com/
COMMENT= Client for X11 game similar to gauntlet and nethack
EXTRACT_ONLY= ${CF_SRC}
CF_SRC= crossfire-client-1.0.0.tar.gz
CF_SND= client-0.95.2-au-sounds.tgz
CF_RAW= client-0.95.2-raw-sounds.tgz
USE_BUILDLINK3= yes
USE_PERL5= yes
USE_X11= yes
USE_GNU_TOOLS+= make
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-sound-dir=${LOCALBASE}/share/cfclient/sounds
REPLACE_PERL= utils/deftoheader.pl items.pl
SUBST_CLASSES+= dsp
SUBST_STAGE.dsp= post-patch
SUBST_MESSAGE.dsp= Adjusting path to sound device.
SUBST_FILES.dsp= cfsndserv.c
SUBST_SED.dsp= -e "s|/dev/dsp|${DEVOSSAUDIO}|"
pre-build:
cd ${WRKSRC} && ${MAKE} soundsdef.h
post-install:
@${INSTALL_DATA_DIR} ${LOCALBASE}/share/cfclient
cd ${LOCALBASE}/share/cfclient && \
${GZCAT} ${DISTDIR}/${CF_SND} | ${GTAR} xmf -
cd ${LOCALBASE}/share/cfclient && \
${GZCAT} ${DISTDIR}/${CF_RAW} | ${GTAR} xmf -
${INSTALL_DATA} ${WRKSRC}/def_keys ${LOCALBASE}/share/cfclient
@${CHOWN} -R ${ROOT_USER}:games ${LOCALBASE}/share/cfclient
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/xpm/buildlink3.mk"
.include "../../x11/gtk/buildlink3.mk"
.include "../../mk/ossaudio.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"