2018-07-04 15:40:07 +02:00
|
|
|
# $NetBSD: Makefile,v 1.30 2018/07/04 13:40:20 jperkin Exp $
|
2004-04-16 17:03:20 +02:00
|
|
|
#
|
|
|
|
|
2005-08-10 03:33:48 +02:00
|
|
|
DISTNAME= quake2-0.3
|
2004-04-17 21:19:50 +02:00
|
|
|
PKGNAME= ${DISTNAME:S/quake2/quake2forge/}
|
2015-04-25 16:22:51 +02:00
|
|
|
PKGREVISION= 5
|
2004-04-17 21:19:50 +02:00
|
|
|
CATEGORIES= games
|
2005-08-10 03:33:48 +02:00
|
|
|
MASTER_SITES= http://www.quakeforge.net/files/quake2forge/
|
2004-04-16 17:03:20 +02:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2004-04-17 21:19:50 +02:00
|
|
|
HOMEPAGE= http://www.quakeforge.net/
|
2004-08-25 01:11:17 +02:00
|
|
|
COMMENT= Enhanced Quake II engine
|
2011-06-27 12:03:38 +02:00
|
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= gmake
|
2004-04-17 21:16:32 +02:00
|
|
|
USE_LIBTOOL= yes
|
2004-04-16 17:03:20 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2004-08-28 08:05:31 +02:00
|
|
|
BUILDLINK_TRANSFORM+= rm:-Werror
|
2004-04-17 21:19:50 +02:00
|
|
|
CONFIGURE_ARGS+= --program-transform-name='s/^quake2$$/quake2forge/'
|
2004-04-16 17:03:20 +02:00
|
|
|
|
|
|
|
post-install:
|
2011-06-27 12:03:38 +02:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/quake2forge
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/README* ${DESTDIR}${PREFIX}/share/doc/quake2forge
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${DESTDIR}${PREFIX}/share/doc/quake2forge
|
2004-04-17 21:16:32 +02:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
SUBST_CLASSES+= snd data
|
2018-07-04 15:40:07 +02:00
|
|
|
SUBST_STAGE.snd= pre-configure
|
2006-04-09 20:07:46 +02:00
|
|
|
SUBST_FILES.snd= src/snd_dma.c data/baseq2/config.cfg
|
2004-04-17 21:16:32 +02:00
|
|
|
SUBST_SED.snd= -e "s,/dev/dsp,${DEVOSSAUDIO},g"
|
2006-04-09 20:07:46 +02:00
|
|
|
SUBST_MESSAGE.snd= Fixing hardcoded audio device.
|
2018-07-04 15:40:07 +02:00
|
|
|
SUBST_STAGE.data= pre-configure
|
2004-04-17 21:16:32 +02:00
|
|
|
SUBST_FILES.data= configure
|
2012-04-28 15:15:33 +02:00
|
|
|
SUBST_SED.data= -e s,PACKAGE=\'quake2\',PACKAGE=\'${PKGBASE}\',g
|
2006-04-09 20:07:46 +02:00
|
|
|
SUBST_MESSAGE.data= Fixing installation directories.
|
2004-04-17 12:36:05 +02:00
|
|
|
|
2005-08-10 03:33:48 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
# Don't try to build the Sun Solaris sound module, it's broken.
|
|
|
|
.if !empty(OPSYS:MNetBSD) || !empty(OPSYS:MOpenBSD)
|
|
|
|
CONFIGURE_ENV+= ac_cv_header_sys_audioio_h=no
|
|
|
|
.endif
|
|
|
|
|
2004-04-16 17:03:20 +02:00
|
|
|
.include "../../devel/SDL/buildlink3.mk"
|
2007-02-19 20:16:09 +01:00
|
|
|
.include "../../x11/libXext/buildlink3.mk"
|
|
|
|
.include "../../x11/libXxf86dga/buildlink3.mk"
|
|
|
|
.include "../../x11/libXxf86vm/buildlink3.mk"
|
2006-03-09 22:04:39 +01:00
|
|
|
.include "../../mk/oss.buildlink3.mk"
|
2004-04-16 17:03:20 +02:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|