diff --git a/srcpkgs/rott/files/rott b/srcpkgs/rott/files/rott new file mode 100644 index 00000000000..11b902053a5 --- /dev/null +++ b/srcpkgs/rott/files/rott @@ -0,0 +1,4 @@ +#!/bin/sh + +mkdir -p $HOME/.rott +cd $HOME/.rott && exec /usr/bin/rott-bin diff --git a/srcpkgs/rott/patches/no_execinfo.patch b/srcpkgs/rott/patches/no_execinfo.patch new file mode 100644 index 00000000000..3391de78ef1 --- /dev/null +++ b/srcpkgs/rott/patches/no_execinfo.patch @@ -0,0 +1,11 @@ +--- rott/dosutil.c.orig 2016-07-06 16:39:54.045772922 -0400 ++++ rott/dosutil.c 2016-07-06 16:40:27.862760218 -0400 +@@ -197,7 +197,7 @@ + printf ("\033[m"); + } + +-#if !defined(__CYGWIN__) && !defined(__MINGW32__) ++#if defined(__GLIBC__) + #include <execinfo.h> + + void print_stack (int level) diff --git a/srcpkgs/rott/template b/srcpkgs/rott/template new file mode 100644 index 00000000000..428807ab076 --- /dev/null +++ b/srcpkgs/rott/template @@ -0,0 +1,31 @@ +# Template file for 'rott' +pkgname=rott +version=1.1.2 +revision=1 +build_style=gnu-makefile +build_wrksrc=rott +makedepends="SDL_mixer-devel" +short_desc="A port of Apogee's 3D action title Rise of the Triad" +maintainer="Diogo Leal <diogo@diogoleal.com>" +license="GPL-2" +homepage="http://icculus.org/rott/" +distfiles="${homepage}/releases/rott-${version}.tar.gz" +checksum=102516e8c312f6b0bbf6c623e1f01cbfbbc314ace8adfe1f201d47b15bd927ff + +do_build() { + make +} + +do_install() { + vbin "${FILESDIR}/rott" + vbin rott usr/bin/rott-bin + vman ../doc/rott.6 + vinstall ../misc/rott.desktop 644 usr/share/applications + vinstall ../misc/rott.xpm 644 usr/share/pixmaps/rott.xpm +} + +# REMARKS: +# There is a single patch in place because a feature is optionally disabled for +# mingw but we need it disabled for musl, since it's not in muslc. +# The makefile is currently very nice and uses our CFLAGS and LDFLAGS without +# any patching.