summaryrefslogtreecommitdiff
blob: cd3d4176da169e927490133c02bbf9234cde7405 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
diff -urN openjpeg_v1_4_sources_r697.old/CMakeLists.txt openjpeg_v1_4_sources_r697/CMakeLists.txt
--- openjpeg_v1_4_sources_r697.old/CMakeLists.txt	2011-03-30 14:25:14.000000000 +0200
+++ openjpeg_v1_4_sources_r697/CMakeLists.txt	2011-03-30 15:15:34.000000000 +0200
@@ -144,6 +144,11 @@
 ENDIF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/openjpeg_mangle.h.in)
 
 #-----------------------------------------------------------------------------
+# pkgconfig support
+CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/libopenjpeg1.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/libopenjpeg.pc @ONLY)
+INSTALL( FILES  ${CMAKE_CURRENT_BINARY_DIR}/libopenjpeg.pc DESTINATION ${OPENJPEG_INSTALL_LIB_DIR}/pkgconfig )
+
+#-----------------------------------------------------------------------------
 # Always build the library
 INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
 SUBDIRS(libopenjpeg)
diff -urN openjpeg_v1_4_sources_r697.old/libopenjpeg1.pc.cmake openjpeg_v1_4_sources_r697/libopenjpeg1.pc.cmake
--- openjpeg_v1_4_sources_r697.old/libopenjpeg1.pc.cmake	1970-01-01 01:00:00.000000000 +0100
+++ openjpeg_v1_4_sources_r697/libopenjpeg1.pc.cmake	2011-03-30 15:18:18.000000000 +0200
@@ -0,0 +1,12 @@
+prefix=@CMAKE_INSTALL_PREFIX@
+bindir=${prefix}/@OPENJPEG_INSTALL_BIN_DIR@
+datadir=${prefix}/@OPENJPEG_INSTALL_DATA_DIR@
+libdir=${prefix}/@OPENJPEG_INSTALL_LIB_DIR@
+includedir=${prefix}/@OPENJPEG_INSTALL_INCLUDE_DIR@
+
+Name: openjpeg
+Description: JPEG2000 files library
+URL: http://www.openjpeg.org/
+Version: @OPENJPEG_VERSION@
+Libs: -L${libdir} -lopenjpeg
+Cflags: -I${includedir}