File:
[cvs.NetBSD.org] /
pkgsrc /
games /
xdoom /
Makefile
Revision
1.43:
download - view:
text,
annotated -
select for diffs
Tue Mar 4 06:59:06 2008 UTC (16 years, 9 months ago) by
jlam
Branches:
MAIN
CVS tags:
pkgsrc-2009Q1-base,
pkgsrc-2009Q1,
pkgsrc-2008Q4-base,
pkgsrc-2008Q4,
pkgsrc-2008Q3-base,
pkgsrc-2008Q3,
pkgsrc-2008Q2-base,
pkgsrc-2008Q2,
pkgsrc-2008Q1-base,
pkgsrc-2008Q1,
cwrapper,
cube-native-xorg-base,
cube-native-xorg,
HEAD
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
# $NetBSD: Makefile,v 1.43 2008/03/04 06:59:06 jlam Exp $
DISTNAME= linuxdoom-1.10
PKGNAME= xdoom-1.10
PKGREVISION= 3
CATEGORIES= games x11
MASTER_SITES= ftp://ftp.idsoftware.com/idstuff/source/
MASTER_SITES+= ftp://ftp.idsoftware.com/idstuff/doom/
DISTFILES= doomsrc.zip doom-1.8.wad.gz
MAINTAINER= pkgsrc-users@NetBSD.org
# HOMEPAGE= http://www.idsoftware.com/archives/doomarc.html
# AWOL
COMMENT= 3D shoot-em-up for 8-bit X11 displays
LICENSE= xdoom-license
PKG_DESTDIR_SUPPORT= user-destdir
EXTRACT_ONLY= doomsrc.zip
EXTRACT_OPTX_ZIP= -qo
WRKSRC= ${WRKDIR}
USE_X11BASE= yes
USE_TOOLS+= gmake gunzip tar unzip
MAKE_ENV+= X11BASE=${X11BASE:Q} INSTALL_PREFIX=${PREFIX:Q}
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Linux"
CFLAGS+= -DLINUX
.endif
.include "../../mk/endian.mk"
.if ${MACHINE_ENDIAN} == "big"
CFLAGS+= -D__BIG_ENDIAN__=1
.endif
INSTALLATION_DIRS= bin
post-extract:
(cd ${WRKDIR}; ${TAR} xzf linuxdoom-1.10.src.tgz)
(cd ${WRKDIR}; ${TAR} xzf sndserv.tgz)
do-build:
cd ${WRKSRC}/${DISTNAME} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS}
cd ${WRKSRC}/sndserv && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${DISTNAME}/linux/linuxxdoom \
${DESTDIR}${PREFIX}/bin/xdoom
${INSTALL_PROGRAM} ${WRKSRC}/sndserv/linux/sndserver \
${DESTDIR}${PREFIX}/bin/sndserver
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doom
${GUNZIP_CMD} -c ${DISTDIR}/doom-1.8.wad.gz \
> ${DESTDIR}${PREFIX}/share/doom/doom1.wad
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/xextproto/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>