From 4982c269b318734d01ad30c6592fbb73565ceb12 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 30 Jul 2012 00:02:11 +0000 Subject: Mon Jul 30 00:02:11 UTC 2012 --- community-staging/projectm/PKGBUILD | 34 ++++++++++++++++++++++ .../projectm/libprojectM-2.0.1-fix-linking.patch | 23 +++++++++++++++ .../projectm/libprojectM-2.0.1-pkg-config.patch | 10 +++++++ 3 files changed, 67 insertions(+) create mode 100644 community-staging/projectm/PKGBUILD create mode 100644 community-staging/projectm/libprojectM-2.0.1-fix-linking.patch create mode 100644 community-staging/projectm/libprojectM-2.0.1-pkg-config.patch (limited to 'community-staging/projectm') diff --git a/community-staging/projectm/PKGBUILD b/community-staging/projectm/PKGBUILD new file mode 100644 index 000000000..23f53e984 --- /dev/null +++ b/community-staging/projectm/PKGBUILD @@ -0,0 +1,34 @@ +# $Id: PKGBUILD 74455 2012-07-28 21:25:54Z tdziedzic $ +# Maintainer: Lukas Fleischer +# Contributor: Alexander Baldeck + +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-staging/projectm/libprojectM-2.0.1-fix-linking.patch b/community-staging/projectm/libprojectM-2.0.1-fix-linking.patch new file mode 100644 index 000000000..23d8a7b9a --- /dev/null +++ b/community-staging/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-staging/projectm/libprojectM-2.0.1-pkg-config.patch b/community-staging/projectm/libprojectM-2.0.1-pkg-config.patch new file mode 100644 index 000000000..b5e38205a --- /dev/null +++ b/community-staging/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@ -- cgit v1.2.3-54-g00ecf