[physfs] [patch] pkg-config support

Jonas Kulla nyocurio at gmail.com
Wed Oct 16 21:10:05 EDT 2013


2013/10/15 Jonas Kulla <nyocurio at gmail.com>

> Actually, the @LIB_SUFFIX@ in physfs.pc.in shouldn't be there, as PhysFS
> doesn't make
> use of it anywhere else.
>
> diff -r 3b2e649c044c CMakeLists.txt
> --- a/CMakeLists.txt Fri Aug 23 23:41:35 2013 -0400
> +++ b/CMakeLists.txt Tue Oct 15 04:50:16 2013 +0200
> @@ -358,6 +358,18 @@
>      )
>  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")
> diff -r 3b2e649c044c extras/physfs.pc.in
> --- /dev/null Thu Jan 01 00:00:00 1970 +0000
> +++ b/extras/physfs.pc.in Tue Oct 15 04:50:16 2013 +0200
> @@ -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}
>
>
> Thanks,
> Jonas
>

Ping?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/physfs/attachments/20131017/19f24244/attachment.html>


More information about the physfs mailing list