diff --git a/srcpkgs/SDL_gfx-devel b/srcpkgs/SDL_gfx-devel new file mode 120000 index 00000000000..87bd5c52b6e --- /dev/null +++ b/srcpkgs/SDL_gfx-devel @@ -0,0 +1 @@ +SDL_gfx \ No newline at end of file diff --git a/srcpkgs/SDL_gfx/template b/srcpkgs/SDL_gfx/template new file mode 100644 index 00000000000..97600c84f60 --- /dev/null +++ b/srcpkgs/SDL_gfx/template @@ -0,0 +1,38 @@ +# Template file for 'SDL_gfx' +pkgname=SDL_gfx +version=2.0.25 +revision=1 +build_style=gnu-configure +hostmakedepends="pkg-config" +makedepends="SDL-devel" +short_desc="Graphics drawing primitves for SDL" +maintainer="Jürgen Buchmüller " +license="BSD" +homepage="http://cms.ferzkopp.net/index.php/software/13-sdl-gfx" +distfiles="http://www.ferzkopp.net/Software/SDL_gfx-2.0/SDL_gfx-2.0.25.tar.gz" +checksum=556eedc06b6cf29eb495b6d27f2dcc51bf909ad82389ba2fa7bdc4dec89059c0 + +pre_configure() { + case "${XBPS_TARGET_MACHINE}" in + x86_64*|i686*) + configure_args+=" --enable-mmx" + ;; + *) + configure_args+=" --disable-mmx" + ;; + esac +} +post_install() { + vlicense COPYING + vlicense LICENSE +} +SDL_gfx-devel_package() { + depends="SDL-devel ${sourcepkg}-${version}_${revision}>=${version}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.so" + } +} +