summaryrefslogtreecommitdiff
path: root/games/xboard/Makefile
diff options
context:
space:
mode:
authorwiz <wiz>2012-12-12 12:25:14 +0000
committerwiz <wiz>2012-12-12 12:25:14 +0000
commit4a1d627ced83679b4c349a92de04e7f966634ad9 (patch)
tree26f99fb1c27b20f4bd7766e5ceb789b66cf1ee80 /games/xboard/Makefile
parent01e28143b7a1f008d17c8e90a4184e2638415be4 (diff)
downloadpkgsrc-4a1d627ced83679b4c349a92de04e7f966634ad9.tar.gz
Update to 4.6.2, based on patch provided by Yair K. in PR 46762.
Additional cleanups (config file, perl path, desktopdb). Changes: The changelog is very long, but it can summarized by saying the pkgsrc supplied version is so old it isn't on the gnu sites anymore. Some of the changes include: chess variant support, PGN variations, fifty-move counter, move history, engine selection and output windows, user-based settings, translations, position search, figurine chess fonts and so on.
Diffstat (limited to 'games/xboard/Makefile')
-rw-r--r--games/xboard/Makefile57
1 files changed, 50 insertions, 7 deletions
diff --git a/games/xboard/Makefile b/games/xboard/Makefile
index 14098c7193d..4e8f1230561 100644
--- a/games/xboard/Makefile
+++ b/games/xboard/Makefile
@@ -1,21 +1,23 @@
-# $NetBSD: Makefile,v 1.39 2012/10/06 11:54:59 asau Exp $
+# $NetBSD: Makefile,v 1.40 2012/12/12 12:25:14 wiz Exp $
-DISTNAME= xboard-4.2.7
-PKGREVISION= 2
+DISTNAME= xboard-4.6.2
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_GNU:=xboard/}
MAINTAINER= simonb@NetBSD.org
-HOMEPAGE= http://www.tim-mann.org/xboard.html
+HOMEPAGE= http://www.gnu.org/software/xboard/
COMMENT= Graphical frontend for chess engines and servers
CONFIGURE_ARGS+= --enable-xpm
CONFIGURE_ARGS+= --enable-zippy # interface to ICS
-CONFIGURE_ENV+= PERLPATH=${PERL5:Q}
+CONFIGURE_ARGS+= PERLPATH=${PERL5}
GNU_CONFIGURE= yes
USE_TOOLS+= perl:run makeinfo
INFO_FILES= yes
-BUILD_TARGET= default
+REPLACE_PERL= texi2man
+
+INSTALLATION_DIRS+= share/examples/xboard
+CONF_FILES+= ${PREFIX}/share/examples/xboard/xboard.conf ${PKG_SYSCONFDIR}/xboard.conf
.include "../../mk/bsd.prefs.mk"
@@ -24,7 +26,48 @@ BUILD_DEFS+= XAW_TYPE
CONFIGURE_ARGS+= --with-Xaw3d
.endif
+SUBST_CLASSES+= engine
+SUBST_MESSAGE.engine= Setting default chess engine.
+SUBST_STAGE.engine= pre-configure
+SUBST_FILES.engine= xboard.conf.in
+SUBST_SED.engine= -e '/ChessProgram / s,fairymax,gnuchess,'
+DEPENDS+= gnuchess-[0-9]*:../../games/gnuchess
+
+.if ${OPSYS} == "NetBSD" || ${OPSYS} == "Solaris"
+WAVPLAYER= /usr/bin/audioplay
+.elif ${OPSYS} == "OpenBSD"
+WAVPLAYER= /usr/bin/aucat -i
+.elif ${OPSYS} == "Darwin"
+WAVPLAYER= ${LOCALBASE}/bin/qtplay
+DEPENDS+= qtplay-[0-9]*:../../audio/qtplay
+.elif ${OPSYS} == "Linux"
+WAVPLAYER= ${LOCALBASE}/bin/aplay -q
+DEPENDS+= alsa-utils-[0-9]*:../../audio/alsa-utils
+.else
+CHECK_BUILTIN.oss:= yes
+. include "../../mk/oss.builtin.mk"
+CHECK_BUILTIN.oss:= no
+. if defined(IS_BUILTIN.oss) && !empty(IS_BUILTIN.oss:M[yY][eE][sS])
+WAVPLAYER= ${LOCALBASE}/bin/sndfile-play
+DEPENDS+= libsndfile-[0-9]*:../../audio/libsndfile
+#. else # most crossplatform, but a bit too many dependencies
+#WAVPLAYER= ${LOCALBASE}/bin/playsound
+#DEPENDS+= SDL_sound-[0-9]*:../../audio/SDL_sound
+. endif
+.endif
+
+SUBST_CLASSES+= wavplayer
+SUBST_MESSAGE.wavplayer= Setting wav player location.
+SUBST_STAGE.wavplayer= post-build
+SUBST_FILES.wavplayer= xboard.conf
+SUBST_SED.wavplayer= -e 's,aplay -q,${WAVPLAYER},g'
+
+post-install:
+ $(INSTALL_SCRIPT) ${WRKSRC}/cmail ${DESTDIR}${PREFIX}/bin
+ $(INSTALL_DATA) ${WRKSRC}/xboard.conf ${DESTDIR}${PREFIX}/share/examples/xboard
+
+.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../mk/xaw.buildlink3.mk"
-
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"