summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-02-02 04:11:01 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-02-05 07:02:20 +0700
commit9a496e7be947c9830950ef591cb15ce2ece6af85 (patch)
tree9dd87d4f9cb09206346588ee8c5afe4eefd54a76
parentf0ef763dd77784bf237a04f747a453bf36cc872f (diff)
downloadslackbuilds-9a496e7be947c9830950ef591cb15ce2ece6af85.tar.gz
games/redeclipse: Fix Build.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--games/redeclipse/Makefile.patch161
-rw-r--r--games/redeclipse/redeclipse.SlackBuild10
-rw-r--r--games/redeclipse/redeclipse.info2
3 files changed, 6 insertions, 167 deletions
diff --git a/games/redeclipse/Makefile.patch b/games/redeclipse/Makefile.patch
deleted file mode 100644
index 317f9f5054..0000000000
--- a/games/redeclipse/Makefile.patch
+++ /dev/null
@@ -1,161 +0,0 @@
---- /tmp/SBo/redeclipse-1.5/src/Makefile.orig 2015-03-21 18:26:54.000000000 -0600
-+++ /tmp/SBo/redeclipse-1.5/src/Makefile 2015-03-23 22:51:17.188245930 -0600
-@@ -1,9 +1,10 @@
- APPNAME=redeclipse
- APPCLIENT=$(APPNAME)
- APPSERVER=$(APPNAME)_server
-+VERSION=1.5
-
- #CXXFLAGS= -ggdb3
--CXXFLAGS= -O3 -fomit-frame-pointer -ffast-math
-+CXXFLAGS= $(EXTRA_CXXFLAGS) -O3 -fomit-frame-pointer -ffast-math
- override CXXFLAGS+= -Wall -fsigned-char -fno-exceptions -fno-rtti
-
- PLATFORM= $(shell gcc -dumpmachine)
---- /tmp/SBo/redeclipse-1.5/src/system-install.mk.orig 2015-03-21 18:26:54.000000000 -0600
-+++ /tmp/SBo/redeclipse-1.5/src/system-install.mk 2015-03-23 23:41:19.164781711 -0600
-@@ -2,18 +2,18 @@
- appnamefull=$(shell sed -n 's/.define VERSION_NAME *"\([^"]*\)"/\1/p' version.h)
- appsrcname=$(APPNAME)
- cappname=$(shell echo $(appname) | tr '[:lower:]' '[:upper:]')# Captial appname
--appclient=$(APPCLIENT)
--appserver=$(APPSERVER)
-+appclient=$(APPCLIENT)$(BIN_SUFFIX)
-+appserver=$(APPSERVER)$(BIN_SUFFIX)
-
--prefix=/usr/local
-+prefix=/usr
- games=
- gamesbin=/bin
- bindir=$(DESTDIR)$(prefix)/bin
- gamesbindir=$(DESTDIR)$(prefix)$(gamesbin)
--libexecdir=$(DESTDIR)$(prefix)/lib$(games)
--datadir=$(DESTDIR)$(prefix)/share$(games)
--docdir=$(DESTDIR)$(prefix)/share/doc
--mandir=$(DESTDIR)$(prefix)/share/man
-+libexecdir=$(DESTDIR)$(prefix)/share/$(appname)-$(VERSION)/lib
-+datadir=$(DESTDIR)$(prefix)/share/$(appname)-$(VERSION)
-+docdir=$(DESTDIR)$(prefix)/doc/$(appname)-$(VERSION)
-+mandir=$(DESTDIR)$(prefix)/man
- menudir=$(DESTDIR)$(prefix)/share/applications
- icondir=$(DESTDIR)$(prefix)/share/icons/hicolor
- pixmapdir=$(DESTDIR)$(prefix)/share/pixmaps
-@@ -53,70 +53,71 @@
- icons: $(ICONS)
-
- system-install-client: client
-- $(MKDIR) $(libexecdir)/$(appname)
-+ $(MKDIR) $(libexecdir)
- $(MKDIR) $(gamesbindir)
-- install -m755 $(appclient) $(libexecdir)/$(appname)/$(appname)
-+ install -m755 $(appclient) $(libexecdir)/$(appname)
- install -m755 install/nix/$(appsrcname).am \
- $(gamesbindir)/$(appname)
- printf "\
- g,@LIBEXECDIR@,\
-- s,@LIBEXECDIR@,$(patsubst $(DESTDIR)%,%,$(libexecdir)),g\n\
-+ s,@LIBEXECDIR@/@APPNAME@,$(patsubst $(DESTDIR)%,%,$(libexecdir)),g\n\
- g,@DATADIR@,\
-- s,@DATADIR@,$(patsubst $(DESTDIR)%,%,$(datadir)),g\n\
-+ s,@DATADIR@/@APPNAME@,$(patsubst $(DESTDIR)%,%,$(datadir)),g\n\
- g,@DOCDIR@,\
-- s,@DOCDIR@,$(patsubst $(DESTDIR)%,%,$(docdir)),g\n\
-+ s,@DOCDIR@/@APPNAME@,$(patsubst $(DESTDIR)%,%,$(docdir)),g\n\
- g,@APPNAME@,\
- s,@APPNAME@,$(appname),g\n\
- w\n" | ed -s $(gamesbindir)/$(appname)
- ln -s $(patsubst $(DESTDIR)%,%,$(datadir))/$(appname)/data \
-- $(libexecdir)/$(appname)/data
-+ $(libexecdir)/data
-
- system-install-server: server
-- $(MKDIR) $(libexecdir)/$(appname)
-+ $(MKDIR) $(libexecdir)
- $(MKDIR) $(gamesbindir)
-- $(MKDIR) $(datadir)/$(appname)
-+ $(MKDIR) $(datadir)
- install -m755 $(appserver) \
-- $(libexecdir)/$(appname)/$(appname)-server
-+ $(libexecdir)/$(appname)-server
- install -m755 install/nix/$(appsrcname)-server.am \
- $(gamesbindir)/$(appname)-server
- printf "\
- g,@LIBEXECDIR@,\
-- s,@LIBEXECDIR@,$(patsubst $(DESTDIR)%,%,$(libexecdir)),g\n\
-+ s,@LIBEXECDIR@/@APPNAME@,$(patsubst $(DESTDIR)%,%,$(libexecdir)),g\n\
- g,@DATADIR@,\
-- s,@DATADIR@,$(patsubst $(DESTDIR)%,%,$(datadir)),g\n\
-+ s,@DATADIR@/@APPNAME@,$(patsubst $(DESTDIR)%,%,$(datadir)),g\n\
- g,@DOCDIR@,\
-- s,@DOCDIR@,$(patsubst $(DESTDIR)%,%,$(docdir)),g\n\
-+ s,@DOCDIR@/@APPNAME@,$(patsubst $(DESTDIR)%,%,$(docdir)),g\n\
- g,@APPNAME@,\
- s,@APPNAME@,$(appname),g\n\
- w\n" | ed -s $(gamesbindir)/$(appname)-server
-- install -m644 ../config/version.cfg \
-- $(datadir)/$(appname)/version.cfg
- ln -s $(patsubst $(DESTDIR)%,%,$(datadir))/$(appname)/version.cfg \
-- $(libexecdir)/$(appname)/version.cfg
-+ $(libexecdir)/version.cfg
-
- system-install-data:
-- cp -r ../data $(datadir)/$(appname)/data
-- rm -f $(datadir)/$(appname)/data/misc/largeandincharge.png
-+ cp -r ../data $(datadir)/data
-+ rm -f $(datadir)/data/misc/largeandincharge.png
-+
-+system-install-config:
-+ cp -r ../config $(datadir)/config
-
- system-install-docs: $(MANPAGES)
- $(MKDIR) $(mandir)/man6
- $(MKDIR) $(docdir)/$(appname)
-- sed -e 's,@LIBEXECDIR@,$(patsubst $(DESTDIR)%,%,$(libexecdir)),g' \
-- -e 's,@DATADIR@,$(patsubst $(DESTDIR)%,%,$(datadir)),g' \
-- -e 's,@DOCDIR@,$(patsubst $(DESTDIR)%,%,$(docdir)),g' \
-+ sed -e 's,@LIBEXECDIR@/@APPNAME@,$(patsubst $(DESTDIR)%,%,$(libexecdir)),g' \
-+ -e 's,@DATADIR@/@APPNAME@,$(patsubst $(DESTDIR)%,%,$(datadir)),g' \
-+ -e 's,@DOCDIR@/@APPNAME@,$(patsubst $(DESTDIR)%,%,$(docdir)),g' \
- -e 's,@APPNAME@,$(appname),g' \
- -e 's,@CAPPNAME@,$(cappname),g' \
- ../doc/man/$(appsrcname).6.am | \
- gzip -9 -n -c > $(mandir)/man6/$(appname).6.gz
-- sed -e 's,@LIBEXECDIR@,$(patsubst $(DESTDIR)%,%,$(libexecdir)),g' \
-- -e 's,@DATADIR@,$(patsubst $(DESTDIR)%,%,$(datadir)),g' \
-- -e 's,@DOCDIR@,$(patsubst $(DESTDIR)%,%,$(docdir)),g' \
-+ sed -e 's,@LIBEXECDIR@/@APPNAME@,$(patsubst $(DESTDIR)%,%,$(libexecdir)),g' \
-+ -e 's,@DATADIR@/@APPNAME@,$(patsubst $(DESTDIR)%,%,$(datadir)),g' \
-+ -e 's,@DOCDIR@/@APPNAME@,$(patsubst $(DESTDIR)%,%,$(docdir)),g' \
- -e 's,@APPNAME@,$(appname),g' \
- -e 's,@CAPPNAME@,$(cappname),g' \
- ../doc/man/$(appsrcname)-server.6.am | \
- gzip -9 -n -c > $(mandir)/man6/$(appname)-server.6.gz
-- cp -r ../doc/examples $(docdir)/$(appname)/examples
-- cp ../doc/guidelines.txt $(docdir)/$(appname)/guidelines.txt
-+ cp -r ../doc/examples $(docdir)/examples
-+ cp ../doc/guidelines.txt $(docdir)/guidelines.txt
-
- system-install-menus: icons
- $(MKDIR) $(menudir)
-@@ -126,9 +127,9 @@
- $(MKDIR) $(icondir)/64x64/apps
- $(MKDIR) $(icondir)/128x128/apps
- $(MKDIR) $(pixmapdir)
-- sed -e 's,@LIBEXECDIR@,$(patsubst $(DESTDIR)%,%,$(libexecdir)),g' \
-- -e 's,@DATADIR@,$(patsubst $(DESTDIR)%,%,$(datadir)),g' \
-- -e 's,@DOCDIR@,$(patsubst $(DESTDIR)%,%,$(docdir)),g' \
-+ sed -e 's,@LIBEXECDIR@/@APPNAME@,$(patsubst $(DESTDIR)%,%,$(libexecdir)),g' \
-+ -e 's,@DATADIR@/@APPNAME@,$(patsubst $(DESTDIR)%,%,$(datadir)),g' \
-+ -e 's,@DOCDIR@/@APPNAME@,$(patsubst $(DESTDIR)%,%,$(docdir)),g' \
- -e 's,@APPNAME@,$(appname),g' \
- install/nix/$(appsrcname).desktop.am > \
- $(menudir)/$(appname).desktop
-@@ -154,7 +155,7 @@
- gzip -9 -n -c < ../doc/man/cube2font.1 \
- > $(mandir)/man1/cube2font.1.gz
-
--system-install: system-install-client system-install-server system-install-data system-install-docs system-install-menus
-+system-install: system-install-client system-install-server system-install-config system-install-data system-install-docs system-install-menus
-
- system-uninstall-client:
- @rm -fv $(libexecdir)/$(appname)/$(appname)
diff --git a/games/redeclipse/redeclipse.SlackBuild b/games/redeclipse/redeclipse.SlackBuild
index 0de07f6c4b..e572b2fac2 100644
--- a/games/redeclipse/redeclipse.SlackBuild
+++ b/games/redeclipse/redeclipse.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=redeclipse
-VERSION=${VERSION:-1.5}
+VERSION=${VERSION:-1.5.1}
SRCVER="7e7aba44e58a90f256321e5a7cb4879b"
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -78,14 +78,14 @@ rm -rf bin/*
cd src
cp ../doc/man/cube2font.1 install/nix
- # Hack makefiles so Red Eclipse is installed into the folders we specify
- # and to respect SLKCFLAGS
- sed -e "s,@VERSION@,$VERSION," $CWD/Makefile.patch | patch -b
-
make EXTRA_CXXFLAGS="$SLKCFLAGS" all cube2font
make DESTDIR=$PKG system-install system-install-cube2font
)
+mv $PKG/usr/local/* $PKG/usr/
+mv $PKG/usr/share/man/ $PKG/usr
+rm -rf $PKG/usr/local
+
# Copy program documentation into the package
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a doc/all-licenses.txt doc/cc-by-sa.txt doc/changelog.txt doc/cube2font.txt \
diff --git a/games/redeclipse/redeclipse.info b/games/redeclipse/redeclipse.info
index d833b1932b..2878dfe707 100644
--- a/games/redeclipse/redeclipse.info
+++ b/games/redeclipse/redeclipse.info
@@ -1,5 +1,5 @@
PRGNAM="redeclipse"
-VERSION="1.5"
+VERSION="1.5.1"
HOMEPAGE="http://www.redeclipse.net"
DOWNLOAD="http://www.indiedb.com/downloads/mirror/82335/101/7e7aba44e58a90f256321e5a7cb4879b"
MD5SUM="f12b05a32ad1f6e0cb4e83e53cc286b7"