summaryrefslogtreecommitdiff
path: root/community-testing/projectm
diff options
context:
space:
mode:
Diffstat (limited to 'community-testing/projectm')
-rw-r--r--community-testing/projectm/PKGBUILD34
-rw-r--r--community-testing/projectm/libprojectM-2.0.1-fix-linking.patch23
-rw-r--r--community-testing/projectm/libprojectM-2.0.1-pkg-config.patch10
3 files changed, 67 insertions, 0 deletions
diff --git a/community-testing/projectm/PKGBUILD b/community-testing/projectm/PKGBUILD
new file mode 100644
index 000000000..5c8e90f15
--- /dev/null
+++ b/community-testing/projectm/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 74519 2012-07-29 21:16:13Z ebelanger $
+# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
+# Contributor: Alexander Baldeck <alexander@archlinux.org>
+
+pkgname=projectm
+pkgver=2.0.1
+pkgrel=6
+pkgdesc='A music visualizer which uses 3D accelerated iterative image based rendering.'
+arch=('i686' 'x86_64')
+url='http://projectm.sourceforge.net/'
+license=('LGPL')
+depends=('gcc-libs' 'ftgl' 'glew' 'gtkglext')
+makedepends=('pkg-config' 'cmake')
+source=("http://downloads.sourceforge.net/${pkgname}/projectM-${pkgver}-Source.tar.gz"
+ 'libprojectM-2.0.1-pkg-config.patch'
+ 'libprojectM-2.0.1-fix-linking.patch')
+md5sums=('f8bf795878cdbbef54784cf2390b4c89'
+ '4f258f4e7c2ab612931936bfd7f1f0fb'
+ '5c178cadf1e00ee4baf32cd9ccbc818c')
+
+build() {
+ cd "${srcdir}/projectM-${pkgver}-Source"
+
+ patch -Np1 -i "${srcdir}/libprojectM-2.0.1-pkg-config.patch"
+ patch -Np1 -i "${srcdir}/libprojectM-2.0.1-fix-linking.patch"
+
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
+ make
+}
+
+package() {
+ cd "${srcdir}/projectM-${pkgver}-Source"
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/community-testing/projectm/libprojectM-2.0.1-fix-linking.patch b/community-testing/projectm/libprojectM-2.0.1-fix-linking.patch
new file mode 100644
index 000000000..23d8a7b9a
--- /dev/null
+++ b/community-testing/projectm/libprojectM-2.0.1-fix-linking.patch
@@ -0,0 +1,23 @@
+--- a/CMakeLists.txt 2009-12-06 02:42:51.000000000 +0100
++++ b/CMakeLists.txt 2012-02-23 04:30:51.000000000 +0100
+@@ -177,10 +177,10 @@
+ LINK_DIRECTORIES(${FTGL_LINK_DIRS} ${Renderer_BINARY_DIR} ${PRESET_FACTORY_BINARY_DIR})
+
+ if(BUILD_PROJECTM_STATIC)
+- TARGET_LINK_LIBRARIES(projectM ${GLEW_LINK_TARGETS} m ${FTGL_LINK_TARGETS} ${OPENGL_LIBRARIES} ${IMAGE_LINK_TARGETS} ${CG_LINK_TARGETS} ${PRESET_FACTORY_LINK_TARGETS})
++ TARGET_LINK_LIBRARIES(projectM Renderer ${IMAGE_LINK_TARGETS} ${CG_LINK_TARGETS} ${PRESET_FACTORY_LINK_TARGETS} ${GLEW_LINK_TARGETS} ${FTGL_LINK_TARGETS} m dl ${OPENGL_LIBRARIES})
+ else(BUILD_PROJECTM_STATIC)
+
+-TARGET_LINK_LIBRARIES(projectM ${GLEW_LINK_TARGETS} m ${FTGL_LINK_TARGETS} ${OPENGL_LIBRARIES} ${IMAGE_LINK_TARGETS} ${CG_LINK_TARGETS} ${PRESET_FACTORY_LINK_TARGETS})
++TARGET_LINK_LIBRARIES(projectM Renderer ${IMAGE_LINK_TARGETS} ${CG_LINK_TARGETS} ${PRESET_FACTORY_LINK_TARGETS} ${GLEW_LINK_TARGETS} ${FTGL_LINK_TARGETS} m dl ${OPENGL_LIBRARIES} )
+
+ endif(BUILD_PROJECTM_STATIC)
+
+--- a/Renderer/CMakeLists.txt 2009-12-06 02:42:51.000000000 +0100
++++ b/Renderer/CMakeLists.txt 2012-02-23 04:31:58.000000000 +0100
+@@ -13,4 +13,4 @@
+ INCLUDE_DIRECTORIES(${projectM_SOURCE_DIR})
+ ADD_LIBRARY(Renderer STATIC ${Renderer_SOURCES})
+ SET_TARGET_PROPERTIES(Renderer PROPERTIES VERSION 2.00 SOVERSION 2)
+-TARGET_LINK_LIBRARIES(Renderer m)
++TARGET_LINK_LIBRARIES(Renderer m ${OPENGL_LIBRARIES} ${FREETYPE2_LIBRARIES})
diff --git a/community-testing/projectm/libprojectM-2.0.1-pkg-config.patch b/community-testing/projectm/libprojectM-2.0.1-pkg-config.patch
new file mode 100644
index 000000000..b5e38205a
--- /dev/null
+++ b/community-testing/projectm/libprojectM-2.0.1-pkg-config.patch
@@ -0,0 +1,10 @@
+--- a/libprojectM.pc.in 2009-12-06 02:42:51.000000000 +0100
++++ b/libprojectM.pc.in 2012-02-21 16:48:36.000000000 +0100
+@@ -1,6 +1,6 @@
+ prefix=@CMAKE_INSTALL_PREFIX@
+ exec_prefix=@CMAKE_INSTALL_PREFIX@
+-libdir=@LIB_INSTALL_DIR@
++libdir=@CMAKE_INSTALL_PREFIX@/lib
+ includedir=@CMAKE_INSTALL_PREFIX@/include
+ pkgdatadir=@CMAKE_INSTALL_PREFIX@/@RESOURCE_PREFIX@
+ sysconfdir=@CMAKE_INSTALL_PREFIX@/@RESOURCE_PREFIX@