SF.net SVN: gar:[22849] csw/mgar/pkg/openjpeg/trunk

lblume at users.sourceforge.net lblume at users.sourceforge.net
Sat Jan 18 11:53:31 CET 2014


Revision: 22849
          http://sourceforge.net/p/gar/code/22849
Author:   lblume
Date:     2014-01-18 10:53:28 +0000 (Sat, 18 Jan 2014)
Log Message:
-----------
openjpeg/trunk: Add patch for pkgconfig support

Modified Paths:
--------------
    csw/mgar/pkg/openjpeg/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/openjpeg/trunk/files/0001-add-pc-file.patch

Modified: csw/mgar/pkg/openjpeg/trunk/Makefile
===================================================================
--- csw/mgar/pkg/openjpeg/trunk/Makefile	2014-01-17 20:37:43 UTC (rev 22848)
+++ csw/mgar/pkg/openjpeg/trunk/Makefile	2014-01-18 10:53:28 UTC (rev 22849)
@@ -12,6 +12,10 @@
 DISTFILES    = $(DISTNAME).tar.gz
 LICENSE      = LICENSE
 
+# .pc file needed at least for ImageMagick
+# http://code.google.com/p/openjpeg/source/detail?spec=svn2250&r=2250#
+PATCHFILES += 0001-add-pc-file.patch
+
 GARCOMPILER = GCC4
 
 PACKAGES += CSWlibopenjp2-6

Added: csw/mgar/pkg/openjpeg/trunk/files/0001-add-pc-file.patch
===================================================================
--- csw/mgar/pkg/openjpeg/trunk/files/0001-add-pc-file.patch	                        (rev 0)
+++ csw/mgar/pkg/openjpeg/trunk/files/0001-add-pc-file.patch	2014-01-18 10:53:28 UTC (rev 22849)
@@ -0,0 +1,33 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -287,3 +287,14 @@ endif()
+ install(FILES LICENSE DESTINATION ${OPENJPEG_INSTALL_DOC_DIR})
+ 
+ include (cmake/OpenJPEGCPack.cmake)
++
++#-----------------------------------------------------------------------------
++# pkgconfig support
++if(UNIX)
++  # install in lib and not share (see multi-arch note above)
++  configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/lib/openjp2/libopenjp2.pc.cmake.in
++    ${CMAKE_CURRENT_BINARY_DIR}/libopenjp2.pc @ONLY)
++  install( FILES ${CMAKE_CURRENT_BINARY_DIR}/libopenjp2.pc DESTINATION
++    ${OPENJPEG_INSTALL_LIB_DIR}/pkgconfig )
++endif()
++#-----------------------------------------------------------------------------
+--- a/src/lib/openjp2/libopenjp2.pc.cmake.in
++++ b/src/lib/openjp2/libopenjp2.pc.cmake.in
+@@ -0,0 +1,13 @@
++prefix=@CMAKE_INSTALL_PREFIX@
++bindir=${prefix}/@OPENJPEG_INSTALL_BIN_DIR@
++mandir=${prefix}/@OPENJPEG_INSTALL_MAN_DIR@
++docdir=${prefix}/@OPENJPEG_INSTALL_DOC_DIR@
++libdir=${prefix}/@OPENJPEG_INSTALL_LIB_DIR@
++includedir=${prefix}/@OPENJPEG_INSTALL_INCLUDE_DIR@
++
++Name: openjp2
++Description: JPEG2000 library (Part 1 and 2)
++URL: http://www.openjpeg.org/
++Version: @OPENJPEG_VERSION@
++Libs: -L${libdir} -lopenjp2
++Cflags: -I${includedir}

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list