Added agar-1.3.4 build template.

--HG--
extra : convert_revision : b710ccbdb92773327093cf66c9c338c09f100a15
This commit is contained in:
Juan RP 2010-01-08 22:42:33 +01:00
parent 6c93db9614
commit eb3cddef3d
4 changed files with 67 additions and 0 deletions

1
srcpkgs/agar-devel Symbolic link
View file

@ -0,0 +1 @@
agar

View file

@ -0,0 +1,22 @@
# Template file for 'agar-devel'.
#
short_desc="${short_desc} (development files)"
long_desc="${long_desc}
This package contains files for development, headers, static libs, etc."
Add_dependency run freetype-devel
Add_dependency run jpeg-devel
Add_dependency run MesaLib-devel
Add_dependency run SDL-devel
Add_dependency run agar
do_install()
{
mkdir -p ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/bin ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/lib/lib*.*a ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/lib*.so ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/share ${DESTDIR}/usr
}

2
srcpkgs/agar/depends Normal file
View file

@ -0,0 +1,2 @@
abi_depends=">=1.3.4"
api_depends="${abi_depends}"

42
srcpkgs/agar/template Normal file
View file

@ -0,0 +1,42 @@
# Template file for 'agar'
pkgname=agar
version=1.3.4
distfiles="${SOURCEFORGE_SITE}/agar/agar-$version.tar.gz"
build_style=configure
configure_args="--prefix=/usr --without-db4 --enable-nls --with-gl
--with-gettext --enable-threads --with-sdl --with-jpeg --with-freetype"
short_desc="Modern open-source, cross-platform toolkit"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=fe04c4ad1e75763b084e1cf657ee4949e29c4f852dfde3d398a9f0ff4e9f8cf7
long_desc="
Agar is a modern open-source, cross-platform toolkit for graphical
applications implemented in C, C++, Perl and Ada (with bindings to other
languages in development). Designed for ease of integration, it follows
the philosophy of building the GUI around the application and not the other
way around. Unlike most other GUI toolkits, Agar takes maximum advantage of
hardware graphics acceleration when it is available via OpenGL, but it also
supports traditional framebuffer interfaces such as SDL direct video. The
Agar API is entirely thread-safe when Agar is compiled with optional threads
support."
disable_parallel_build=yes
subpackages="$pkgname-devel"
Add_dependency run glibc
Add_dependency run freetype
Add_dependency run jpeg
Add_dependency run MesaLib
Add_dependency run SDL
Add_dependency build gettext
Add_dependency build freetype-devel
Add_dependency build jpeg-devel
Add_dependency build MesaLib-devel
Add_dependency build SDL-devel
pre_install()
{
# Pre-create the dirs, otherwise install will fail!
for d in bin lib share/man/man3 share/man/man5 share/man/man8; do
install -d ${DESTDIR}/usr/${d} || return 1
done
}