Permalink
Browse files

build: generate flusspferd.pc again

  • Loading branch information...
1 parent 170dd54 commit 0dbe02ad457e524b81ab45adbeb9c620d33d5b99 @aristidb aristidb committed May 16, 2009
Showing with 36 additions and 7 deletions.
  1. +10 −1 CMakeLists.txt
  2. +26 −6 flusspferd.pc.in
View
@@ -445,7 +445,7 @@ INSTALL(
FILES src/js/prelude.js
DESTINATION ${INSTALL_LIBDATA_PATH})
-## jsrepl.js ################################################################
+## Configured files##########################################################
CONFIGURE_FILE(
${Flusspferd_SOURCE_DIR}/src/js/jsrepl.js.in
@@ -454,3 +454,12 @@ CONFIGURE_FILE(
INSTALL(
FILES ${Flusspferd_BINARY_DIR}/js/jsrepl.js
DESTINATION ${INSTALL_ETC_PATH}/flusspferd)
+
+CONFIGURE_FILE(
+ ${Flusspferd_SOURCE_DIR}/flusspferd.pc.in
+ ${Flusspferd_BINARY_DIR}/flusspferd.pc
+ @ONLY)
+
+INSTALL(
+ FILES ${Flusspferd_BINARY_DIR}/flusspferd.pc
+ DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig)
View
@@ -1,14 +1,34 @@
+# vim:ts=4:sw=4:expandtab:autoindent:
#
+# Copyright (c) 2008, 2009 Aristid Breitkreuz, Ash Berlin, Ruediger Sonderfeld
#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
#
-prefix=@PREFIX@
-libdir=@LIBDIR@
-includedir=@INCLUDEDIR@
-modulesdir=@LIBDIR@/flusspferd/modules
+
+prefix=@CMAKE_INSTALL_PREFIX@
+libdir=@INSTALL_LIBRARIES_PATH@
+includedir=@INSTALL_HEADERS_PATH@
+modulesdir=@INSTALL_MODULES_PATH@
Name: Flusspferd
Description: Javascript Bindings for C++
-Version: @VERSION@
+Version: @FLUSSPFERD_VERSION@
# Requires:
Libs: -L${libdir} -lflusspferd
-Cflags: -I${includedir} @CFLAGS@
+Cflags: -I${includedir}

0 comments on commit 0dbe02a

Please sign in to comment.