summaryrefslogtreecommitdiff
path: root/sarien
diff options
context:
space:
mode:
Diffstat (limited to 'sarien')
-rw-r--r--sarien/Makefile43
-rw-r--r--sarien/patches/sarien-0.7.0-nanonote1.patch89
2 files changed, 132 insertions, 0 deletions
diff --git a/sarien/Makefile b/sarien/Makefile
new file mode 100644
index 0000000..dc0d280
--- /dev/null
+++ b/sarien/Makefile
@@ -0,0 +1,43 @@
+# Copyright (C) 2010 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+#
+
+include $(TOPDIR)/rules.mk
+PKG_NAME:=sarien
+PKG_VERSION:=0.7.0
+PKG_RELEASE:=1
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=@SF/$(PKG_NAME)
+PKG_CAT:=zcat
+PKG_BUILD_DIR:=$(BUILD_DIR)/sarien-$(PKG_VERSION)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/sarien
+ TITLE:=Sarien
+ SECTION:=games
+ CATEGORY:=Games
+ DEPENDS:=@BROKEN +libsdl
+ URL:=http://sourceforge.net/projects/sarien/
+endef
+
+define Package/sarien/description
+ Sarien is a portable implementation of the Sierra On-Line Adventure Game Interpreter (AGI)
+endef
+
+MAKE_ARGS += ipkg
+CONFIGURE_ARGS += --with-sdl --with-alsa
+
+define Package/sarien/Build/Compile
+ $(call Build/Compile/Default)
+endef
+
+define Package/sarien/install
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(INSTALL_DIR) $(1)/usr/share/sarien
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/sarien $(1)/sarien
+ $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/sarien.cfg $(1)/usr/share/sarien/sarien.cfg
+endef
+
+$(eval $(call BuildPackage,sarien))
diff --git a/sarien/patches/sarien-0.7.0-nanonote1.patch b/sarien/patches/sarien-0.7.0-nanonote1.patch
new file mode 100644
index 0000000..7568a0f
--- /dev/null
+++ b/sarien/patches/sarien-0.7.0-nanonote1.patch
@@ -0,0 +1,89 @@
+diff -urN sarien-0.7.0/etc/sarien.cfg sarien-0.7.0-nanonote/etc/sarien.cfg
+--- sarien-0.7.0/etc/sarien.cfg 2001-11-06 10:49:58.000000000 +0100
++++ sarien-0.7.0-nanonote/etc/sarien.cfg 2010-06-21 00:21:42.000000000 +0200
+@@ -6,8 +6,7 @@
+ # to the operating system being used.
+ #
+ # In UNIX:
+-# $HOME/.sarienrc
+-# /etc/sarien.conf
++# /usr/share/sarien/sarien.cfg
+ #
+ # In Cygwin:
+ # /etc/sarien.conf
+diff -urN sarien-0.7.0/Makefile sarien-0.7.0-nanonote/Makefile
+--- sarien-0.7.0/Makefile 2001-09-04 04:17:00.000000000 +0200
++++ sarien-0.7.0-nanonote/Makefile 2010-06-21 01:29:46.000000000 +0200
+@@ -72,6 +72,17 @@
+ rm -Rf $(DIST)
+ sync
+
++ipkg:
++ rm -Rf ipkg-tmp $(DIST).ipk
++ mkdir -p ipkg-tmp/CONTROL
++ cp openwrt/control ipkg-tmp/CONTROL
++ $(MAKE) DISTDIR=ipkg-tmp install
++ ipkg-build -o root -g root ipkg-tmp
++
++install: all
++ install -D -m 0755 -s --strip-program=$(STRIP) bin/sarien $(DISTDIR)$(BIN_DIR)/sarien
++ install -D -m 0644 etc/sarien.cfg $(DISTDIR)$(DATADIR)/sarien.cfg
++
+ chkoldver:
+ @if [ "$(OLDVER)" = "" ]; then \
+ echo "parameter missing: OLDVER=<old_version>"; \
+diff -urN sarien-0.7.0/openwrt/control sarien-0.7.0-nanonote/openwrt/control
+--- sarien-0.7.0/openwrt/control 1970-01-01 01:00:00.000000000 +0100
++++ sarien-0.7.0-nanonote/openwrt/control 2010-06-21 00:54:37.000000000 +0200
+@@ -0,0 +1,18 @@
++Package: sarien
++Version: 0.7.0-1
++Source: http://sourceforge.net/projects/sarien/
++Architecture: xburst
++Maintainer: Magnus Bergman <magnusbe@algonet.se>
++Priority: optional
++Section: extras
++Depends: libsdl
++Description: An interpreter for AGI resources
++ The old Sierra games are made with the AGI engine. Sarien
++ is a free interpreter for AGI resources.
++ .
++ Games written in AGI includes:
++ * Kings Quest I - IV
++ * Police Quest
++ * Leisure Suit Larry
++ .
++ You need the files from the original games.
+diff -urN sarien-0.7.0/Rules.in sarien-0.7.0-nanonote/Rules.in
+--- sarien-0.7.0/Rules.in 2001-09-06 14:41:36.000000000 +0200
++++ sarien-0.7.0-nanonote/Rules.in 2010-06-21 00:14:38.000000000 +0200
+@@ -3,6 +3,7 @@
+ prefix = @prefix@
+ exec_prefix = @prefix@
+ BIN_DIR = @bindir@
++DATA_DIR = @datadir@/sarien
+ LIB_DIR = @libdir@
+ MAN_DIR = @mandir@/man1
+
+diff -urN sarien-0.7.0/src/filesys/unix/path.c sarien-0.7.0-nanonote/src/filesys/unix/path.c
+--- sarien-0.7.0/src/filesys/unix/path.c 2001-08-05 01:59:48.000000000 +0200
++++ sarien-0.7.0-nanonote/src/filesys/unix/path.c 2010-06-21 00:57:09.000000000 +0200
+@@ -46,6 +46,6 @@
+ #endif
+ #endif
+
+- return "/etc/sarien.conf";
++ return DATADIR "/sarien.cfg";
+ }
+
+diff -urN sarien-0.7.0/src/graphics/sdl/sdl.c sarien-0.7.0-nanonote/src/graphics/sdl/sdl.c
+--- sarien-0.7.0/src/graphics/sdl/sdl.c 2010-06-19 17:41:56.000000000 +0200
++++ sarien-0.7.0-nanonote/src/graphics/sdl/sdl.c 2010-06-20 23:02:18.000000000 +0200
+@@ -460,6 +460,7 @@
+ SDL_GetError ());
+ return err_Unk;
+ }
++ SDL_ShowCursor (SDL_DISABLE);
+
+ mode = SDL_SWSURFACE | SDL_ANYFORMAT;
+