--- Makefile.orig 2015-09-28 15:56:58.000000000 +0200 +++ Makefile 2015-10-11 02:11:45.000000000 +0200 @@ -1,7 +1,7 @@ # $FreeBSD: head/games/xboard-devel/Makefile 397976 2015-09-26 13:59:59Z bapt $ PORTNAME= xboard-devel -PORTVERSION= 4.7.3.20140909.8 +PORTVERSION= 4.8.0.20150806.3 PORTREVISION= PORTEPOCH= MASTER_SITES= http://freeheimdall.spdns.org/files/ @@ -14,6 +14,8 @@ LICENSE= GPLv3 +LIB_DEPENDS?= libpangocairo-1.0.so:${PORTSDIR}/x11-toolkits/pango + CONFLICTS= xboard-[0-9]* MASTERDIR= ${.CURDIR}/../xboard @@ -21,10 +23,10 @@ PATCHDIR= ${.CURDIR}/files PLIST= ${.CURDIR}/pkg-plist -COMMIT_HASH= e677df0 +COMMIT_HASH= 1f9d7ca DATADIR= ${PREFIX}/share/games/xboard DOCSDIR= ${PREFIX}/share/doc/xboard -XBOARDCONF= ${WRKSRC}/xboard.conf.in +XBOARDCONF= ${WRKSRC}/xboard.conf USES= autoreconf desktop-file-utils gettext-tools gmake shared-mime-info shebangfix SHEBANG_FILES= texi2man --- distinfo.orig 2014-10-06 01:55:19.000000000 +0200 +++ distinfo 2015-10-10 22:48:47.000000000 +0200 @@ -1,2 +1,2 @@ -SHA256 (xboard-e677df0.tar.gz) = 54432a3a53076b0ac6ba6689f8e90e440108ae479846ae46d60e5b857afe59be -SIZE (xboard-e677df0.tar.gz) = 3039491 +SHA256 (xboard-1f9d7ca.tar.gz) = 87c48b2a03b0293be47c353ad8e1ff2cbc90df92ae89ace85d5947a9f4bf2a54 +SIZE (xboard-1f9d7ca.tar.gz) = 3704966 --- pkg-plist.orig 2015-09-28 15:56:58.000000000 +0200 +++ pkg-plist 2015-10-11 03:45:29.000000000 +0200 @@ -1,4 +1,3 @@ -@postunexec /bin/rm %D/share/icons/hicolor/icon-theme.cache 2>/dev/null || /usr/bin/true @owner root @group wheel bin/xboard @@ -200,36 +199,37 @@ %%NLS%%share/locale/da/LC_MESSAGES/xboard.mo %%NLS%%share/locale/de/LC_MESSAGES/xboard.mo %%NLS%%share/locale/es/LC_MESSAGES/xboard.mo +%%NLS%%share/locale/fr/LC_MESSAGES/xboard.mo %%NLS%%share/locale/it/LC_MESSAGES/xboard.mo %%NLS%%share/locale/nl/LC_MESSAGES/xboard.mo +%%NLS%%share/locale/pl/LC_MESSAGES/xboard.mo %%NLS%%share/locale/ru/LC_MESSAGES/xboard.mo +%%NLS%%share/locale/sr/LC_MESSAGES/xboard.mo %%NLS%%share/locale/tr/LC_MESSAGES/xboard.mo %%NLS%%share/locale/uk/LC_MESSAGES/xboard.mo %%NLS%%share/locale/vi/LC_MESSAGES/xboard.mo %%NLS%%share/locale/zh_CN/LC_MESSAGES/xboard.mo %%NLS%%share/locale/zh_HK/LC_MESSAGES/xboard.mo %%NLS%%share/locale/zh_TW/LC_MESSAGES/xboard.mo -@dirrmtry share/locale/zh_HK/LC_MESSAGES -@dirrmtry share/locale/zh_HK -@dirrmtry %%DATADIR%%/pixmaps/textures -@dirrmtry %%DATADIR%%/pixmaps -@dirrmtry %%DATADIR%%/sounds -@dirrmtry %%DATADIR%%/themes/conf -@dirrmtry %%DATADIR%%/themes/default -@dirrmtry %%DATADIR%%/themes/shogi -@dirrmtry %%DATADIR%%/themes/textures -@dirrmtry %%DATADIR%%/themes/xiangqi -@dirrmtry %%DATADIR%%/themes -@dirrmtry %%DATADIR%% -@dirrmtry share/games -@dirrmtry share/icons/hicolor/48x48/apps -@dirrmtry share/icons/hicolor/48x48 -@dirrmtry share/icons/hicolor/scalable/apps -@dirrmtry share/icons/hicolor/scalable -@dirrmtry share/icons/hicolor -@dirrmtry share/icons -@dirrmtry share/mime/packages -@dirrmtry share/mime +@dir share/locale/zh_HK/LC_MESSAGES +@dir share/locale/zh_HK +@dir %%DATADIR%%/pixmaps/textures +@dir %%DATADIR%%/pixmaps +@dir %%DATADIR%%/sounds +@dir %%DATADIR%%/themes/conf +@dir %%DATADIR%%/themes/default +@dir %%DATADIR%%/themes/shogi +@dir %%DATADIR%%/themes/textures +@dir %%DATADIR%%/themes/xiangqi +@dir %%DATADIR%%/themes +@dir %%DATADIR%% +@dir share/games +@dir share/icons/hicolor/48x48/apps +@dir share/icons/hicolor/48x48 +@dir share/icons/hicolor/scalable/apps +@dir share/icons/hicolor/scalable +@dir share/icons/hicolor +@dir share/icons +@dir share/mime/packages +@dir share/mime @sample etc/xboard.conf.sample -@postexec /usr/local/bin/gtk-update-icon-cache -q -f %D/share/icons/hicolor 2>/dev/null || /usr/bin/true -@postunexec /usr/local/bin/gtk-update-icon-cache -q -f %D/share/icons/hicolor 2>/dev/null || /usr/bin/true --- files/patch-Makefile.am.orig 2014-10-06 01:55:19.000000000 +0200 +++ files/patch-Makefile.am 2015-10-11 02:11:14.000000000 +0200 @@ -1,30 +1,38 @@ ---- Makefile.am.orig 2014-07-02 14:34:53.000000000 +0200 -+++ Makefile.am 2014-08-21 22:40:05.000000000 +0200 +--- Makefile.am.orig 2015-08-06 23:49:02.000000000 +0200 ++++ Makefile.am 2015-10-11 02:11:07.000000000 +0200 @@ -57,7 +57,7 @@ ### SUBDIRS = po -xboard_LDADD = -ldl -lm @FRONTEND_LIBS@ @X_LIBS@ @LIBINTL@ @CAIRO_LIBS@ -+xboard_LDADD = -lm @FRONTEND_LIBS@ @X_LIBS@ @LIBINTL@ @CAIRO_LIBS@ ++xboard_LDADD = -lm @FRONTEND_LIBS@ @X_LIBS@ @LIBINTL@ @PANGOCAIRO_LIBS@ EXTRA_DIST = pixmaps themes png sounds winboard \ xboard.texi gpl.texinfo texi2man texinfo.tex xboard.man xboard.desktop xboard-config.desktop \ +@@ -68,7 +68,7 @@ + DISTCLEANFILES = stamp-h + + GITVERSION=$(shell sh -c 'git describe --dirty --always 2>/dev/null') +-AM_CPPFLAGS=-DINFODIR='"$(infodir)"' @X_CFLAGS@ @CAIRO_CFLAGS@ @FRONTEND_CFLAGS@ -DSYSCONFDIR='"$(sysconfdir)"' \ ++AM_CPPFLAGS=-DINFODIR='"$(infodir)"' @X_CFLAGS@ @PANGOCAIRO_CFLAGS@ @FRONTEND_CFLAGS@ -DSYSCONFDIR='"$(sysconfdir)"' \ + -DLOCALEDIR='"$(localedir)"' -DSVGDIR='"$(svgdir)"' -D__GIT_VERSION='"$(GITVERSION)"' \ + -DCONFIGURE_OPTIONS='"@CONFIGURE_OPTIONS@"' -DDATADIR='"$(datadir)/games/xboard"' $(headers) + @@ -179,7 +179,8 @@ ### directory and files for themes (and other) configuration files themesdir = $(datadir)/games/xboard/themes/conf --dist_themes_DATA = conf/shogi conf/xq conf/chu conf/ics conf/mini conf/mini.fen conf/sho conf/sho.fen +-dist_themes_DATA = conf/shogi conf/xq conf/ics conf/mini conf/mini.fen conf/sho conf/sho.fen +dist_themes_DATA = conf/shogi conf/xq conf/chu conf/ics conf/mini conf/mini.fen conf/sho conf/sho.fen \ -+ conf/judkins conf/judkins.fen conf/xiangqi ++ conf/judkins conf/judkins.fen conf/xiangqi ### directory and files for pixmaps -@@ -196,8 +197,12 @@ +@@ -196,7 +197,12 @@ soundsdir = $(gamedatadir)/sounds dist_sounds_DATA = \ sounds/cymbal.wav sounds/pop2.wav sounds/slap.wav sounds/ding1.wav sounds/laser.wav \ - sounds/woodthunk.wav sounds/gong.wav sounds/penalty.wav sounds/honkhonk.wav sounds/phone.wav sounds/roar.wav -- + sounds/woodthunk.wav sounds/gong.wav sounds/penalty.wav sounds/honkhonk.wav sounds/phone.wav sounds/roar.wav \ + sounds/README sounds/alarm.wav sounds/challenge.wav sounds/channel.wav sounds/channel1.wav \ + sounds/ching.wav sounds/click.wav sounds/draw.wav sounds/drip.wav sounds/kibitz.wav \ @@ -32,5 +40,5 @@ + sounds/shout.wav sounds/squeak.wav sounds/sshout.wav sounds/swish.wav sounds/tell.wav \ + sounds/thud.wav sounds/unfinished.wav sounds/whipcrak.wav sounds/win.wav - ### set correct dir in xboard.conf + ### the man page depends on several files, so we add a special rule --- /dev/null 2015-10-11 04:38:11.000000000 +0200 +++ files/patch-configure.ac 2015-10-11 02:08:20.000000000 +0200 @@ -0,0 +1,17 @@ +--- configure.ac.orig 2015-08-06 23:49:02.000000000 +0200 ++++ configure.ac 2015-10-11 02:07:35.000000000 +0200 +@@ -123,10 +123,10 @@ + AS_IF( [test "x$PKGCONFIG" = xpkgconfig_not_found], + AC_MSG_ERROR([cannot find pkg-config! Please install it.])) + +-dnl | check for cairo and librsvg +-PKG_CHECK_MODULES([CAIRO], [ cairo >= 1.2.0 librsvg-2.0 >= 2.14.0 ]) +-AC_SUBST(CAIRO_CFLAGS) +-AC_SUBST(CAIRO_LIBS) ++dnl | check for pangocairo and librsvg ++PKG_CHECK_MODULES([PANGOCAIRO], [ pangocairo >= 1.0.0 librsvg-2.0 >= 2.14.0 ]) ++AC_SUBST(PANGOCAIRO_CFLAGS) ++AC_SUBST(PANGOCAIRO_LIBS) + + dnl | check which front end to use + dnl | first check for gtk --- files/patch-xboard.conf.in.orig 2014-10-06 01:55:19.000000000 +0200 +++ files/patch-xboard.conf.in 2015-10-11 04:38:11.000000000 +0200 @@ -1,15 +0,0 @@ ---- xboard.conf.in.orig 2014-07-02 14:34:53.000000000 +0200 -+++ xboard.conf.in 2014-08-21 00:56:04.000000000 +0200 -@@ -70,11 +70,7 @@ - ; Engines & adjudicatons in engine-engine games - ; - -firstChessProgram fairymax ---firstChessProgramNames {fairymax --"Fruit 2.1" -fcp fruit -fUCI --"Crafty" -fcp crafty --"GNU Chess" -fcp gnuchess --} -+-firstChessProgramNames {} - -niceEngines 0 - -polyglotDir "" - -adapterCommand 'polyglot -noini -ec "%fcp" -ed "%fd" -uci NalimovCache=%defaultCacheSizeEGTB -pg ShowTbHits=true' --- /dev/null 2015-10-11 04:40:30.000000000 +0200 +++ files/patch-xboard.conf 2014-12-18 01:59:44.000000000 +0100 @@ -0,0 +1,15 @@ +--- xboard.conf.orig 2014-11-04 09:45:56.000000000 +0100 ++++ xboard.conf 2014-11-04 09:46:05.000000000 +0100 +@@ -74,11 +74,7 @@ + ; Engines & adjudicatons in engine-engine games + ; + -firstChessProgram fairymax +--firstChessProgramNames {fairymax +-"Fruit 2.1" -fcp fruit -fUCI +-"Crafty" -fcp crafty +-"GNU Chess" -fcp gnuchess +-} ++-firstChessProgramNames {} + -niceEngines 0 + -polyglotDir "" + -adapterCommand 'polyglot -noini -ec "%fcp" -ed "%fd" -uci NalimovCache=%defaultCacheSizeEGTB -pg ShowTbHits=true'