Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added pkg-config support (thanks, Jonas!).
  • Loading branch information
icculus committed Nov 13, 2013
1 parent 4046759 commit 6d99237
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CMakeLists.txt
Expand Up @@ -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")
Expand Down
3 changes: 3 additions & 0 deletions docs/CREDITS.txt
Expand Up @@ -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 ...

Expand Down
11 changes: 11 additions & 0 deletions extras/physfs.pc.in
@@ -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.