summaryrefslogtreecommitdiff
path: root/community/irrlicht/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/irrlicht/PKGBUILD')
-rw-r--r--community/irrlicht/PKGBUILD16
1 files changed, 11 insertions, 5 deletions
diff --git a/community/irrlicht/PKGBUILD b/community/irrlicht/PKGBUILD
index dc74aaaf3..8dd14decd 100644
--- a/community/irrlicht/PKGBUILD
+++ b/community/irrlicht/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 33729 2010-11-28 11:00:58Z svenstaro $
+# $Id: PKGBUILD 56796 2011-10-12 23:30:10Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Hilton Medeiros <medeiros.hilton AT gmail DOT com>
# Contributor: Ali H. Caliskan <ali.h.caliskan AT gmail DOT com>
@@ -7,12 +7,13 @@
pkgname=irrlicht
pkgver=1.7.2
-pkgrel=1
+pkgrel=3
pkgdesc="An open source high performance realtime 3D graphics engine."
arch=('i686' 'x86_64')
url="http://irrlicht.sourceforge.net/"
license=('ZLIB')
-depends=('mesa' 'libjpeg' 'bzip2')
+depends=('libgl' 'libjpeg' 'bzip2' 'libpng')
+makedepends=('mesa')
source=("http://downloads.sourceforge.net/irrlicht/$pkgname-$pkgver.zip")
md5sums=('eb627d4c432bf73f12bc6d9ddc700b07')
@@ -21,6 +22,7 @@ build() {
sed -i -e '/^#.*NON_SYSTEM_ZLIB/d' \
-e '/^#.*NON_SYSTEM_JPEG/d' \
+ -e '/^#.*NON_SYSTEM_LIB_PNG/d' \
-e '/^#.*NON_SYSTEM_BZLIB/d' \
include/IrrCompileConfig.h
@@ -28,17 +30,21 @@ build() {
sed -i -e '/^CXXFLAGS/s:-g.*::' \
-e '/^CXXFLAGS/s:-Wall::' \
-e '/^CFLAGS/s/:= -O3 -fexpensive-optimizations/+=/' \
- -e '/^CXXINCS/s:-Izlib -Ijpeglib::' \
+ -e '/^CXXINCS/s:-Izlib -Ijpeglib -Ilibpng::' \
-e '/^ZLIBOBJ/d' \
-e '/^JPEGLIBOBJ/d' \
-e '/^BZIP2OBJ/d' \
+ -e '/^LIBPNGOBJ/d' \
-e '/.o=.d/d' \
- -e '/^sharedlib: LDFLAGS/s:+=:+= -lGL -lXxf86vm -ljpeg -lbz2 -lz:' \
+ -e '/^staticlib sharedlib: LDFLAGS/s:+=.*:+= -lGL -lXxf86vm -lpng -ljpeg -lbz2 -lz:' \
-e "/^INSTALL_DIR/s:=.*:=$pkgdir/usr/lib:" \
-e 's/0-SVN/1/' \
-e 's/.$(VERSION_MINOR) -o/ -o/' \
Makefile
+ sed -i "s/png_set_gray_1_2_4_to_8/png_set_expand_gray_1_2_4_to_8/" \
+ CImageLoaderPNG.cpp
+
make sharedlib
make