2012-01-14 16:36:10 +01:00
|
|
|
# $NetBSD: Makefile,v 1.46 2012/01/14 15:36:10 dholland Exp $
|
1998-08-27 15:22:08 +02:00
|
|
|
#
|
|
|
|
|
2003-09-15 15:58:37 +02:00
|
|
|
DISTNAME= angband-3.0.3
|
|
|
|
PKGNAME= angband-x11-3.0.3
|
2012-01-14 16:36:10 +01:00
|
|
|
PKGREVISION= 3
|
2002-08-16 04:50:02 +02:00
|
|
|
CATEGORIES= games x11
|
2011-03-11 12:48:40 +01:00
|
|
|
MASTER_SITES= # ftp://clockwork.dementia.org/angband/Source/
|
2002-08-16 04:50:02 +02:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${SPOILERFILE}
|
1998-08-27 15:22:08 +02:00
|
|
|
|
2008-01-19 10:16:17 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2006-10-04 23:35:58 +02:00
|
|
|
HOMEPAGE= http://www.thangorodrim.net/
|
2002-08-16 04:50:02 +02:00
|
|
|
COMMENT= Tolkien based variant of Moria for X11 displays
|
1998-08-27 15:22:08 +02:00
|
|
|
|
2010-01-29 21:15:46 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= destdir
|
|
|
|
|
2002-08-16 04:50:02 +02:00
|
|
|
CONFLICTS= angband-tty-[0-9]*
|
1998-08-27 15:22:08 +02:00
|
|
|
|
2002-08-16 04:50:02 +02:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
2002-07-27 00:06:46 +02:00
|
|
|
|
2008-05-26 04:13:14 +02:00
|
|
|
USE_TOOLS+= pax
|
2012-01-14 16:36:10 +01:00
|
|
|
USE_GAMESGROUP= yes
|
2008-05-26 04:13:14 +02:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
INCOMPAT_CURSES= NetBSD-1.5*-* NetBSD-1.6[-_.]*-*
|
2004-01-24 00:42:01 +01:00
|
|
|
INCOMPAT_CURSES+= NetBSD-1.6[A-M]-*
|
1998-08-27 15:22:08 +02:00
|
|
|
|
2002-08-16 04:50:02 +02:00
|
|
|
SPOILERFILE= angband-spoilers.tar.gz
|
2000-09-11 02:22:23 +02:00
|
|
|
|
2005-11-10 07:30:53 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2012-01-14 16:36:10 +01:00
|
|
|
CONFIGURE_ARGS+= --with-setgid=${GAMES_GROUP}
|
2002-07-27 00:06:46 +02:00
|
|
|
|
2003-06-11 22:50:50 +02:00
|
|
|
.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
|
2004-02-01 02:43:28 +01:00
|
|
|
GCC_REQD+= 2.95.3
|
2002-04-20 15:08:41 +02:00
|
|
|
.endif
|
|
|
|
|
2007-10-05 00:54:58 +02:00
|
|
|
SUBST_CLASSES+= 070
|
|
|
|
SUBST_STAGE.070= pre-configure
|
|
|
|
SUBST_MESSAGE.070= Fixing file permissions.
|
|
|
|
SUBST_FILES.070= lib/save/Makefile.in lib/bone/Makefile.in
|
|
|
|
SUBST_SED.070= -e 's,070,770,g'
|
|
|
|
|
2010-01-29 21:15:46 +01:00
|
|
|
INSTALLATION_DIRS+= share/games/angband/lib/info
|
|
|
|
|
2002-07-27 00:06:46 +02:00
|
|
|
# add spoiler files and clean up a bit
|
|
|
|
post-install:
|
2010-01-29 21:15:46 +01:00
|
|
|
cd ${DESTDIR}${PREFIX}/share/games/angband/lib/info/ && \
|
2008-05-26 04:13:14 +02:00
|
|
|
pax -O -zrf ${DISTDIR}/${SPOILERFILE}
|
2012-01-14 16:36:10 +01:00
|
|
|
${CHGRP} -R ${GAMES_GROUP} ${DESTDIR}${PREFIX}/share/games/angband
|
2010-01-29 21:15:46 +01:00
|
|
|
${FIND} ${DESTDIR}${PREFIX}/share/games/angband -name delete.me -exec ${RM} {} \;
|
1998-08-27 15:22:08 +02:00
|
|
|
|
2007-02-02 01:55:15 +01:00
|
|
|
BUILDLINK_DEPMETHOD.libXt?= build
|
|
|
|
|
2004-03-30 11:16:40 +02:00
|
|
|
.include "../../devel/ncurses/buildlink3.mk"
|
2007-02-02 01:55:15 +01:00
|
|
|
.include "../../x11/libSM/buildlink3.mk"
|
|
|
|
.include "../../x11/libX11/buildlink3.mk"
|
|
|
|
.include "../../x11/libXt/buildlink3.mk"
|
1998-08-27 15:22:08 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|