Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=6181b400735d975f53cdf271fd942870d264aba9

commit 6181b400735d975f53cdf271fd942870d264aba9
Author: Devil505 <devil505li...@gmail.com>
Date:   Sun Sep 19 16:57:01 2010 +0200

dumb-0.9.3-1-i686
* new package

diff --git a/source/xlib-extra/dumb/FrugalBuild 
b/source/xlib-extra/dumb/FrugalBuild
new file mode 100644
index 0000000..5d51ceb
--- /dev/null
+++ b/source/xlib-extra/dumb/FrugalBuild
@@ -0,0 +1,47 @@
+# Compiling Time: 0.10 SBU
+# Maintainer: Devil505 <devil505li...@gmail.com>
+
+pkgname=dumb
+pkgver=0.9.3
+pkgrel=1
+pkgdesc="An IT, XM, S3M and MOD player library"
+depends=('allegro')
+Finclude sourceforge
+groups=('xlib-extra')
+archs=('i686')
+sha1sums=('4764bd59f5895eb5035a5139454cef7a53a76bb8')
+
+build() {
+  Fcd
+  [ "${CARCH}" = "x86_64" ] && export CFLAGS="${CFLAGS} -fPIC"
+  # Create the directories which the Makefile somehow fails to create
+  # Create the directories which the Makefile somehow fails to create
+  install -d lib/unix/{debug,release} || Fdie
+
+  # Make with Allegro support
+  # Upstream's make process is interactive, and we can't simply pass
+  # a here-document to the make command.  The best way is to write our
+  # own config.txt, circumventing the interactive configuration step,
+  # as is done in Gentoo's ebuild.
+        cat << EOF > make/config.txt
+include make/unix.inc
+ALL_TARGETS := core core-examples core-headers
+ALL_TARGETS += allegro allegro-examples allegro-headers
+PREFIX := "$Fdestdir/usr"
+EOF
+
+  # Upstream's makefile ignores our CFLAGS.  They put -I directives in
+  # their own CFLAGS, so we can't just say
+  # make CFLAGS=...
+  # Gentoo's ebuild overrides another of their makefile variables, named
+  # OFLAGS.
+  make OFLAGS="${CFLAGS}" || fdie
+
+  # Create directories
+  Fmkdir usr/{lib,bin,include}
+  Fdocrel licence.txt
+
+  Fmakeinstall
+}
+
+# optimization OK
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to