Skip to content
Permalink
Browse files
Added pkg-config support (thanks, Jonas!).
  • Loading branch information
icculus committed Nov 13, 2013
1 parent 4046759 commit 6d9923706d1fa83fdd2de741a529f1a10e1718b4
Showing with 26 additions and 0 deletions.
  1. +12 −0 CMakeLists.txt
  2. +3 −0 docs/CREDITS.txt
  3. +11 −0 extras/physfs.pc.in
@@ -358,6 +358,18 @@ if(UNIX)
)
endif()

if(UNIX AND NOT APPLE)
configure_file(
"extras/physfs.pc.in"
"extras/physfs.pc"
@ONLY
)
install(
FILES "${CMAKE_CURRENT_BINARY_DIR}/extras/physfs.pc"
DESTINATION "lib/pkgconfig"
)
endif()

macro(message_bool_option _NAME _VALUE)
if(${_VALUE})
message(STATUS " ${_NAME}: enabled")
@@ -139,6 +139,9 @@ Bug fixes:
Bug fixes:
Andreas Karlsson

pkg-config support:
Jonas Kulla

Other stuff:
Your name here! Patches go to icculus@icculus.org ...

@@ -0,0 +1,11 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: PhysicsFS
Description: PhysicsFS is a library to provide abstract access to various archives.
URL: https://icculus.org/physfs/
Version: @PHYSFS_VERSION@
Libs: -L${libdir} -lphysfs
Cflags: -I${includedir}

0 comments on commit 6d99237

Please sign in to comment.