diff options
author | Ismael Luceno | 2021-01-19 19:04:56 +0100 |
---|---|---|
committer | Ismael Luceno | 2021-01-19 19:04:56 +0100 |
commit | 673c76bff32e20295b0638b328cf24ea3236f275 (patch) | |
tree | 44127cdb7e07550f6ed77f5a2fed3afcfd329d08 | |
parent | 528cd3021c8479e943f2b46a73b3d57696dd8ac3 (diff) |
gnubg: new spell, GNU Backgammon
-rw-r--r-- | ChangeLog | 3 | ||||
-rwxr-xr-x | games-board/gnubg/DEPENDS | 37 | ||||
-rwxr-xr-x | games-board/gnubg/DETAILS | 22 | ||||
-rw-r--r-- | games-board/gnubg/HISTORY | 2 | ||||
-rwxr-xr-x | games-board/gnubg/PRE_BUILD | 3 |
5 files changed, 67 insertions, 0 deletions
@@ -1,3 +1,6 @@ +2021-01-19 Ismael Luceno <ismael@sourcemage.org> + * games-board/gnubg: new spell, GNU Backgammon + 2020-01-26 Florian Franzmann <siflfran@hawo.stw.uni-erlangen.de> * FUNCTIONS: filter -fno-plt in disable_pic diff --git a/games-board/gnubg/DEPENDS b/games-board/gnubg/DEPENDS new file mode 100755 index 00000000..536e0798 --- /dev/null +++ b/games-board/gnubg/DEPENDS @@ -0,0 +1,37 @@ +depends glib2 && +optional_depends curl --with-libcurl --without-libcurl "for curl support" && +optional_depends gmp "" "" "" && +optional_depends gtk+3 --with-gtk3 --without-gtk3 "for the (experimental) GTK+ 3 GUI" && +if is_depends_enabled "$SPELL" gtk+3; then + gui=gtk3 +else + optional_depends gtk+2 --with-gtk --without-gtk "for the GTK+ GUI" && + if is_depends_enabled "$SPELL" gtk+2; then + gui=gtk2 + else + gui=none + fi +fi +if [ none != "$gui" ]; then + optional_depends cairo "" "" "for vector graphics support" && + optional_depends pango "" "" "for text rendering support" && + optional_depends freetype2 "" "" "" && + optional_depends libcanberra "" "" "for audio support" && + if is_depends_enabled "$SPELL" libcanberra; then + case "$gui" in + (gtk3) + sub_depends libcanberra GTK3 ;; + (gtk2) + sub_depends libcanberra GTK ;; + esac + fi && + optional_depends gtkglext --with-board3d --without-board3d "for 3D board" && + if is_depends_enabled "$SPELL" gtkglext; then + optional_depends glu "" "" "for GLU support" + fi && + optional_depends libpng "" "" "for PNG support" +fi && +optional_depends ncurses "" "" "for text-terminal UI" && +optional_depends python3 --with-python=python3 --without-python "for Python scripting support" && +optional_depends readline "" "" "for line editing on the terminal" && +optional_depends sqlite "" "" "for sqlite support" diff --git a/games-board/gnubg/DETAILS b/games-board/gnubg/DETAILS new file mode 100755 index 00000000..a5b3bc0f --- /dev/null +++ b/games-board/gnubg/DETAILS @@ -0,0 +1,22 @@ + SPELL=gnubg + VERSION=1.06.002 + SOURCE="$SPELL-release-$VERSION-sources.tar.gz" + SOURCE_URL[0]=https://ftp.gnu.org/gnu/$SPELL/$SOURCE + SOURCE_HASH=sha512:77594209032a0d81deb802da249d7f40812127dd1e080413eda75015f324fec9592b1b51772403f501b21e39d3dd371931d82b43c24f614a7d16c5234d271948 +SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION" + WEB_SITE="https://www.gnu.org/software/gnubg/" + LICENSE[0]="GPL-3.0-or-later" + ENTERED=20210119 + KEYWORDS="" + SHORT="GNU Backgammon" +cat << EOF +GNU Backgammon (GNUbg) plays and analyzes backgammon games and matches. It is +able to play and analyze both money games and tournament matches, evaluate +and roll out positions, and more. Driven by a command-line interface, +it displays an ASCII rendering of a board on text-only terminals, but also +allows the user to play games and manipulate positions with a graphical GTK+ +interface. GNU Backgammon is extensible on platforms which support Python. + +GNU Backgammon is a world class opponent and rates at over 2000 on FIBS, +the First Internet Backgammon Server. +EOF diff --git a/games-board/gnubg/HISTORY b/games-board/gnubg/HISTORY new file mode 100644 index 00000000..8b6541ba --- /dev/null +++ b/games-board/gnubg/HISTORY @@ -0,0 +1,2 @@ +2021-01-19 Ismael Luceno <ismael@sourcemage.org> + * DEPENDS, DETAILS, PRE_BUILD: spell created diff --git a/games-board/gnubg/PRE_BUILD b/games-board/gnubg/PRE_BUILD new file mode 100755 index 00000000..3c8cac27 --- /dev/null +++ b/games-board/gnubg/PRE_BUILD @@ -0,0 +1,3 @@ +default_pre_build && +cd "$SOURCE_DIRECTORY" && +sedit 's!maybe_os in$!& linux-musl*|\\!' config.sub |