summaryrefslogtreecommitdiff
path: root/community/libvisual-projectm
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-01-25 12:01:49 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2012-01-25 12:01:49 +0100
commit8e40bdbb2496be15fdba2e683af427bc2333be42 (patch)
tree03ace0b9a2ffc12133cb0357fee75079c964f67a /community/libvisual-projectm
parent33fcf0e7b95e530b849e59e90fdea4001e01283d (diff)
parent2aa2acfff38de7de825868995e49792ecfc03126 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/libvisual-projectm/PKGBUILD community/python-memcached/PKGBUILD community/python-mpi4py/PKGBUILD core/sqlite3/PKGBUILD core/udev/PKGBUILD extra/kdeplasma-applets-networkmanagement/PKGBUILD extra/pixman/PKGBUILD extra/sg3_utils/PKGBUILD libre/kdeutils-libre/PKGBUILD libre/linux-libre/PKGBUILD libre/linux-libre/linux-libre.install multilib/lib32-libxcb/PKGBUILD multilib/lib32-openssl/PKGBUILD multilib/lib32-sdl_image/PKGBUILD multilib/lib32-sqlite3/PKGBUILD multilib/lib32-udev/PKGBUILD
Diffstat (limited to 'community/libvisual-projectm')
-rw-r--r--community/libvisual-projectm/PKGBUILD38
-rw-r--r--community/libvisual-projectm/libvisual-projectm-gcc-4.6.patch11
2 files changed, 35 insertions, 14 deletions
diff --git a/community/libvisual-projectm/PKGBUILD b/community/libvisual-projectm/PKGBUILD
index da278241b..976b3cbff 100644
--- a/community/libvisual-projectm/PKGBUILD
+++ b/community/libvisual-projectm/PKGBUILD
@@ -1,26 +1,36 @@
-# $Id: PKGBUILD 61634 2009-12-20 18:27:47Z andrea $
+# $Id: PKGBUILD 62640 2012-01-23 02:32:15Z lfleischer $
+# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
# Contributor: Alexander Baldeck <alexander@archlinux.org>
pkgname=libvisual-projectm
pkgver=2.0.1
-pkgrel=1
-pkgdesc="ProjectM XMMS plugin"
+pkgrel=3
+pkgdesc='ProjectM XMMS plugin.'
arch=('i686' 'x86_64' 'mips64el')
-url="http://projectm.sourceforge.net/"
+url='http://projectm.sourceforge.net/'
license=('GPL')
depends=('projectm>=2.0.1' 'libvisual' 'sdl')
makedepends=('pkgconfig' 'cmake' 'libxext')
options=('!libtool')
-source=(http://downloads.sourceforge.net/projectm/projectM_libvisual-${pkgver}-Source.tar.gz)
-md5sums=('35e09b09210d48b437e3574bd00b15a8')
+source=("http://downloads.sourceforge.net/projectm/projectM_libvisual-${pkgver}-Source.tar.gz"
+ 'libvisual-projectm-gcc-4.6.patch')
+md5sums=('35e09b09210d48b437e3574bd00b15a8'
+ 'a1fa2fd4fc85b1f27e32d400e17a3196')
build() {
- cd ${srcdir}
- mkdir build
- cd build
- cmake ../projectM_libvisual-${pkgver}-Source \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=Release || return 1
- make || return
- make DESTDIR=${pkgdir} install || return
+ cd "${srcdir}"
+
+ # fix build failure with GCC 4.6 (taken from SVN, revision 1355)
+ (cd "projectM_libvisual-${pkgver}-Source" && patch -p3 -i ../libvisual-projectm-gcc-4.6.patch)
+
+ mkdir build && cd build
+
+ cmake "../projectM_libvisual-${pkgver}-Source" \
+ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
+ make
+}
+
+package() {
+ cd "${srcdir}/build"
+ make DESTDIR="${pkgdir}" install
}
diff --git a/community/libvisual-projectm/libvisual-projectm-gcc-4.6.patch b/community/libvisual-projectm/libvisual-projectm-gcc-4.6.patch
new file mode 100644
index 000000000..0e1234f83
--- /dev/null
+++ b/community/libvisual-projectm/libvisual-projectm-gcc-4.6.patch
@@ -0,0 +1,11 @@
+--- trunk/src/projectM-libvisual/actor_projectM.cpp 2009/02/20 19:07:44 1210
++++ trunk/src/projectM-libvisual/actor_projectM.cpp 2011/05/06 12:04:58 1355
+@@ -209,7 +209,7 @@
+ * we aren't with projectm, so just ignore :) */
+ extern "C" VisPalette *lv_projectm_palette (VisPluginData *plugin)
+ {
+- return NULL;
++ return (VisPalette *) NULL;
+ }
+
+ /* This is where the real rendering happens! This function is what we call, many times