diff --git a/srcpkgs/attract/patches/Makefile.patch b/srcpkgs/attract/patches/Makefile.patch new file mode 100644 index 00000000000..b530db21dc5 --- /dev/null +++ b/srcpkgs/attract/patches/Makefile.patch @@ -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 diff --git a/srcpkgs/attract/patches/fix-musl.patch b/srcpkgs/attract/patches/fix-musl.patch new file mode 100644 index 00000000000..c6bb5eacd8b --- /dev/null +++ b/srcpkgs/attract/patches/fix-musl.patch @@ -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. diff --git a/srcpkgs/attract/template b/srcpkgs/attract/template new file mode 100644 index 00000000000..b45867a5916 --- /dev/null +++ b/srcpkgs/attract/template @@ -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 " +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"