<div dir="ltr">Hi everyone,<div><br></div><div>With my limited cmake knowledge, I took a shot at implementing proper pkg-config support. Not</div><div>sure about conventions on attaching patches, so I'll just inline it in case anyone wants to comment</div>
<div>on parts of it.</div><div><br></div><div>I guess the Right Way to Do It™ would be to name the package "physfs-1"; this all really depends</div><div>on how soon Ryan intends on breaking the API (when it would become "physfs-2"). Otherwise,</div>
<div>just plain "physfs.pc" is nice and simple.</div><div><br></div><div><div>diff -r 3b2e649c044c CMakeLists.txt</div><div>--- a/CMakeLists.txt<span class="" style="white-space:pre">       </span>Fri Aug 23 23:41:35 2013 -0400</div>
<div>+++ b/CMakeLists.txt<span class="" style="white-space:pre">        </span>Tue Oct 15 04:19:00 2013 +0200</div><div>@@ -358,6 +358,18 @@</div><div>     )</div><div> endif()</div><div> </div><div>+if (UNIX AND NOT APPLE)</div>
<div>+    configure_file(</div><div>+        "extras/<a href="http://physfs.pc.in">physfs.pc.in</a>"</div><div>+        "extras/physfs.pc"</div><div>+        @ONLY</div><div>+    )</div><div>+    install(</div>
<div>+        FILES "${CMAKE_CURRENT_BINARY_DIR}/extras/physfs.pc"</div><div>+        DESTINATION "lib/pkgconfig"</div><div>+    )</div><div>+endif()</div><div>+</div><div> macro(message_bool_option _NAME _VALUE)</div>
<div>     if(${_VALUE})</div><div>         message(STATUS "  ${_NAME}: enabled")</div><div>diff -r 3b2e649c044c extras/<a href="http://physfs.pc.in">physfs.pc.in</a></div><div>--- /dev/null<span class="" style="white-space:pre">        </span>Thu Jan 01 00:00:00 1970 +0000</div>
<div>+++ b/extras/<a href="http://physfs.pc.in">physfs.pc.in</a><span class="" style="white-space:pre">   </span>Tue Oct 15 04:19:00 2013 +0200</div><div>@@ -0,0 +1,11 @@</div><div>+prefix=@CMAKE_INSTALL_PREFIX@</div><div>+exec_prefix=${prefix}</div>
<div>+libdir=${exec_prefix}/lib@LIB_SUFFIX@</div><div>+includedir=${prefix}/include</div><div>+</div><div>+Name: PhysicsFS</div><div>+Description: PhysicsFS is a library to provide abstract access to various archives.</div>
<div>+URL: <a href="https://icculus.org/physfs/">https://icculus.org/physfs/</a></div><div>+Version: @PHYSFS_VERSION@</div><div>+Libs: -L${libdir} -lphysfs</div><div>+Cflags: -I${includedir}</div></div><div><br></div><div>
<br></div><div>Thanks,</div><div>Jonas</div></div>