From bc1b2ca06eb4e1f78a297952de5b96015e178e2e Mon Sep 17 00:00:00 2001 From: psperl Date: Wed, 8 Aug 2007 03:53:25 +0000 Subject: [PATCH] PJS: ported config file and pkgconfig stuff from trunk git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/personal/carm/dev-1.0@311 6778bc44-b910-0410-a7a0-be141de4315d --- src/projectM-engine/CMakeLists.txt | 15 ++++++++++----- src/projectM-engine/config.1.00.in | 22 ++++++++++++++++++++++ src/projectM-engine/libprojectM.pc.in | 14 ++++++++++++++ 3 files changed, 46 insertions(+), 5 deletions(-) create mode 100644 src/projectM-engine/config.1.00.in create mode 100644 src/projectM-engine/libprojectM.pc.in diff --git a/src/projectM-engine/CMakeLists.txt b/src/projectM-engine/CMakeLists.txt index edfbe5848..3ef1e9595 100644 --- a/src/projectM-engine/CMakeLists.txt +++ b/src/projectM-engine/CMakeLists.txt @@ -24,10 +24,15 @@ IF(USE_FTGL) TARGET_LINK_LIBRARIES(projectM GLEW m ftgl) ENDIF(USE_FTGL) -INSTALL(TARGETS projectM DESTINATION lib) -INSTALL(FILES projectM.hpp PBuffer.hpp PCM.hpp BeatDetect.hpp Preset.hpp event.h console_interface.h dlldefs.h fatal.h PresetFrameIO.hpp PCM.hpp Renderer.hpp PresetChooser.hpp DESTINATION include/libprojectM) -INSTALL(FILES config DESTINATION share/projectM) +CONFIGURE_FILE("libprojectM.pc.in" "libprojectM.pc" @ONLY) +CONFIGURE_FILE("config.1.00.in" "config.1.00" @ONLY) + + FILE(GLOB presets "presets/*.milk") -INSTALL(FILES ${presets} DESTINATION share/projectM/presets) +INSTALL(FILES ${presets} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/projectM/presets) FILE(GLOB fonts "fonts/*.ttf") -INSTALL(FILES ${fonts} DESTINATION share/projectM/fonts) +INSTALL(FILES ${fonts} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/projectM/fonts) +INSTALL(FILES "${CMAKE_BINARY_DIR}/libprojectM.pc" DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig) +INSTALL(FILES config.1.00 DESTINATION ${CMAKE_INSTALL_PREFIX}/share/projectM) +INSTALL(FILES projectM.hpp PBuffer.hpp PCM.hpp BeatDetect.hpp Preset.hpp event.h console_interface.h dlldefs.h fatal.h PresetFrameIO.hpp PCM.hpp Renderer.hpp PresetChooser.hpp DESTINATION include/libprojectM) +INSTALL(TARGETS projectM DESTINATION lib) \ No newline at end of file diff --git a/src/projectM-engine/config.1.00.in b/src/projectM-engine/config.1.00.in new file mode 100644 index 000000000..0bdb86715 --- /dev/null +++ b/src/projectM-engine/config.1.00.in @@ -0,0 +1,22 @@ +projectM Config file (ONLY CHANGE THE NUMBERS!!!!!!) +------------------------------------------------------ +Texture Size (Must be power of 2) [256,512,1024,2048, etc] +512 +Grid X Dimension (Higher is Better but much slower) 12-60 +32 +Grid Y Dimension (Higher is Better but much slower) 8-45 +24 +Windowed Width (Initial window width) +512 +Windowed Height (Initial window width) +512 +Fullscreen Width (set to your native screen resolution) +1024 +Fullscreen Height (set to your native screen resolution) +768 +FPS (Higher the Better) 30-90 is realisitc +35 +Fullscreen on Startup (1=yes, 0=no) +0 +Preset Path +@CMAKE_INSTALL_PREFIX@/share/projectM/presets \ No newline at end of file diff --git a/src/projectM-engine/libprojectM.pc.in b/src/projectM-engine/libprojectM.pc.in new file mode 100644 index 000000000..ce7aed630 --- /dev/null +++ b/src/projectM-engine/libprojectM.pc.in @@ -0,0 +1,14 @@ +prefix=@CMAKE_INSTALL_PREFIX@ +exec_prefix=@CMAKE_INSTALL_PREFIX@ +libdir=@CMAKE_INSTALL_PREFIX@/lib +includedir=@CMAKE_INSTALL_PREFIX@/include +pkgdatadir=@CMAKE_INSTALL_PREFIX@/share/projectM +sysconfdir=@CMAKE_INSTALL_PREFIX@/share/projectM + +Name: libprojectM +Version: 1.00 +Description: projectM - OpenGL Milkdrop +Requires: +Libs: -lprojectM +Cflags: +