diff -Nur orig/CMakeLists.txt new/CMakeLists.txt --- orig/CMakeLists.txt 2009-07-13 06:53:08.000000000 +0200 +++ new/CMakeLists.txt 2011-03-26 19:40:00.392851500 +0100 @@ -1,6 +1,8 @@ # CMake project definition file. project(libgme) +set(GME_VERSION 0.5.5 CACHE INTERNAL "libgme Version") + # 2.6+ always assumes FATAL_ERROR, but 2.4 and below don't. # Of course, 2.4 might work, in which case you're welcome to drop # down the requirement, but I can't test that. diff -Nur orig/gme/CMakeLists.txt new/gme/CMakeLists.txt --- orig/gme/CMakeLists.txt 2009-07-13 06:53:08.000000000 +0200 +++ new/gme/CMakeLists.txt 2011-03-26 19:39:27.015039671 +0100 @@ -144,6 +144,9 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/gme_types.h.in ${CMAKE_CURRENT_BINARY_DIR}/gme_types.h) +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libgme.pc.in + ${CMAKE_CURRENT_BINARY_DIR}/libgme.pc @ONLY) + # For the gme_types.h include_directories(${CMAKE_CURRENT_BINARY_DIR}) @@ -154,10 +157,11 @@ # as only build fixes are performed (i.e. no changes/additions to API) the # SOVERSION should be the same even when bumping up VERSION. set_target_properties(gme - PROPERTIES VERSION 0.5.3 + PROPERTIES VERSION ${GME_VERSION} SOVERSION 0) # TODO: Libsuffix for 64-bit? -install(TARGETS gme LIBRARY DESTINATION lib) +install(TARGETS gme LIBRARY DESTINATION lib${LIB_SUFFIX}) install(FILES ${EXPORTED_HEADERS} DESTINATION include/gme) +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libgme.pc DESTINATION lib${LIB_SUFFIX}/pkgconfig) diff -Nur orig/gme/libgme.pc.in new/gme/libgme.pc.in --- orig/gme/libgme.pc.in 1970-01-01 01:00:00.000000000 +0100 +++ new/gme/libgme.pc.in 2011-03-26 19:40:47.867598047 +0100 @@ -0,0 +1,15 @@ +# entries grouped with CMake are expanded by CMake +# ${foo} entries are left alone by CMake and much +# later are used by pkg-config. +prefix=@CMAKE_INSTALL_PREFIX@ +exec_prefix=${prefix} +lib_suffix=@LIB_SUFFIX@ +libdir=${exec_prefix}/lib${lib_suffix} +includedir=${prefix}/include + +Name: Game_Music_Emu +Description: A video game emulation library for music. +URL: http://code.google.com/p/game-music-emu/ +Version: @GME_VERSION@ +Cflags: -I${includedir} +Libs: -L${libdir} -lgme