parent
cd4e645e08
commit
d92d4c71a6
3 changed files with 68 additions and 0 deletions
33
srcpkgs/attract/patches/Makefile.patch
Normal file
33
srcpkgs/attract/patches/Makefile.patch
Normal file
|
@ -0,0 +1,33 @@
|
|||
--- Makefile 2016-12-06 21:40:22.715155552 +0100
|
||||
+++ Makefile 2016-12-06 21:41:39.523155740 +0100
|
||||
@@ -50,12 +50,8 @@
|
||||
|
||||
FE_VERSION=v2.2.0
|
||||
|
||||
-CC=gcc
|
||||
-CXX=g++
|
||||
CFLAGS=$(EXTRA_CFLAGS)
|
||||
-STRIP=strip
|
||||
PKG_CONFIG=pkg-config
|
||||
-AR=ar
|
||||
ARFLAGS=rc
|
||||
RM=rm -f
|
||||
MD=mkdir -p
|
||||
@@ -84,7 +84,7 @@
|
||||
override WINDRES := $(TOOLCHAIN)-$(WINDRES)
|
||||
endif
|
||||
|
||||
-prefix=/usr/local
|
||||
+prefix=/usr
|
||||
datarootdir=$(prefix)/share
|
||||
datadir=$(datarootdir)
|
||||
exec_prefix=$(prefix)
|
||||
@@ -414,7 +414,7 @@
|
||||
|
||||
$(EXE): $(OBJ) $(EXPAT) $(SQUIRREL) $(AUDIO)
|
||||
$(EXE_MSG)
|
||||
- $(SILENT)$(CXX) -o $@ $^ $(CFLAGS) $(FE_FLAGS) $(LIBS)
|
||||
+ $(SILENT)$(CXX) -o $@ $^ $(LDFLAGS) $(CFLAGS) $(FE_FLAGS) $(LIBS)
|
||||
ifneq ($(FE_DEBUG),1)
|
||||
$(SILENT)$(STRIP) $@
|
||||
endif
|
11
srcpkgs/attract/patches/fix-musl.patch
Normal file
11
srcpkgs/attract/patches/fix-musl.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- extlibs/gameswf/base/utility.cpp 2016-11-08 08:06:21.000000000 +0100
|
||||
+++ extlibs/gameswf/base/utility.cpp 2016-12-06 22:03:53.042131946 +0100
|
||||
@@ -41,7 +41,7 @@
|
||||
{
|
||||
|
||||
// This doesn't compile on Windows.
|
||||
-#if !defined(_WIN32) && !defined(__APPLE_CC__)
|
||||
+#if !defined(_WIN32) && !defined(__APPLE_CC__) && defined(__GLIBC__)
|
||||
|
||||
// This does not work with DMALLOC, since the internal data structures
|
||||
// differ.
|
24
srcpkgs/attract/template
Normal file
24
srcpkgs/attract/template
Normal file
|
@ -0,0 +1,24 @@
|
|||
# Template file for 'attract'
|
||||
pkgname=attract
|
||||
version=2.2.0
|
||||
revision=1
|
||||
build_style=gnu-makefile
|
||||
hostmakedepends="pkg-config"
|
||||
make_build_args="VERBOSE=1"
|
||||
makedepends="xine-lib glu-devel libjpeg-turbo-devel SFML-devel
|
||||
libopenal-devel ffmpeg-devel fontconfig-devel libarchive-devel"
|
||||
depends="git"
|
||||
short_desc="Attract-Mode is a graphical frontend for emulators"
|
||||
maintainer="Pedro Narciso García Revington <p.revington@gmail.com>"
|
||||
license="GPL-3"
|
||||
homepage="http://attractmode.org/"
|
||||
distfiles="https://github.com/mickelson/attract/archive/v${version}.tar.gz"
|
||||
checksum=d350a078dec7d97498846adb56fb54210e2d4bab484a8c2cd558ce197194b07b
|
||||
|
||||
CFLAGS="-std=gnu++11"
|
||||
CFLAGS+=" -I extlibs/audio/include"
|
||||
CFLAGS+=" -I extlibs/gameswf"
|
||||
CFLAGS+=" -I extlibs/sqrat/include"
|
||||
CFLAGS+=" -I extlibs/squirrel/include"
|
||||
CFLAGS+=" -I ${XBPS_CROSS_BASE}/usr/include/freetype2"
|
||||
CFLAGS+=" -I ${XBPS_CROSS_BASE}/usr/include/SFML"
|
Loading…
Reference in a new issue