From 6c4624c141865318fb112e9e8538c7bce5f3a094 Mon Sep 17 00:00:00 2001 From: jbu Date: Thu, 2 Jul 2015 21:10:04 +0200 Subject: [PATCH] New package: SDL2_gfx-1.0.1 --- common/shlibs | 1 + srcpkgs/SDL2_gfx-devel | 1 + srcpkgs/SDL2_gfx/template | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 120000 srcpkgs/SDL2_gfx-devel create mode 100644 srcpkgs/SDL2_gfx/template diff --git a/common/shlibs b/common/shlibs index 569fd5e48f..82c0abe5f2 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2071,3 +2071,4 @@ libskarnet.so.2 skalibs-2.3.5.1_1 libportablexdr.so.0 portablexdr-4.9.1_1 libtorrent-rasterbar.so.8 libtorrent1-1.0.5_1 libtidy5.so.4 libtidy5-4.9.30_1 +libSDL2_gfx-1.0.so.0 SDL2_gfx-1.0.1_1 diff --git a/srcpkgs/SDL2_gfx-devel b/srcpkgs/SDL2_gfx-devel new file mode 120000 index 0000000000..4af08553b9 --- /dev/null +++ b/srcpkgs/SDL2_gfx-devel @@ -0,0 +1 @@ +SDL2_gfx \ No newline at end of file diff --git a/srcpkgs/SDL2_gfx/template b/srcpkgs/SDL2_gfx/template new file mode 100644 index 0000000000..5564a74656 --- /dev/null +++ b/srcpkgs/SDL2_gfx/template @@ -0,0 +1,38 @@ +# Template file for 'SDL2_gfx' +pkgname=SDL2_gfx +version=1.0.1 +revision=1 +build_style=gnu-configure +hostmakedepends="pkg-config" +makedepends="SDL2-devel" +short_desc="SDL graphics drawing primitives" +maintainer="Jürgen Buchmüller " +license="zlib" +homepage="http://cms.ferzkopp.net/index.php/software/13-sdl-gfx" +distfiles="http://www.ferzkopp.net/Software/${pkgname}/${pkgname}-${version}.tar.gz" +checksum=d69bcbceb811b4e5712fbad3ede737166327f44b727f1388c32581dbbe8c599a + +pre_configure() { + case "${XBPS_TARGET_MACHINE}" in + x86_64*|i686*) + configure_args+=" --enable-mmx" + ;; + *) + configure_args+=" --disable-mmx" + ;; + esac +} +post_install() { + vlicense COPYING +} +SDL2_gfx-devel_package() { + depends="SDL2-devel ${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove usr/lib/*.a + vmove usr/lib/*.so + } +} +