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

lblume at users.sourceforge.net lblume at users.sourceforge.net
Thu Jan 16 23:50:21 CET 2014


Revision: 22847
          http://sourceforge.net/p/gar/code/22847
Author:   lblume
Date:     2014-01-16 22:50:20 +0000 (Thu, 16 Jan 2014)
Log Message:
-----------
openjpeg/trunk: Split into subpackages; Fix install dirs; Add override

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

Modified: csw/mgar/pkg/openjpeg/trunk/Makefile
===================================================================
--- csw/mgar/pkg/openjpeg/trunk/Makefile	2014-01-16 14:41:34 UTC (rev 22846)
+++ csw/mgar/pkg/openjpeg/trunk/Makefile	2014-01-16 22:50:20 UTC (rev 22847)
@@ -10,11 +10,29 @@
 VENDOR_URL   = http://code.google.com/p/openjpeg/
 MASTER_SITES = $(GOOGLE_MIRROR)
 DISTFILES    = $(DISTNAME).tar.gz
+LICENSE      = LICENSE
 
 GARCOMPILER = GCC4
 
+PACKAGES += CSWlibopenjp2-6
+CATALOGNAME_CSWlibopenjp2-6 = libopenjp2_6
+PKGFILES_CSWlibopenjp2-6 += $(call baseisadirs,$(libdir),libopenjp2\.so\.2\.0\.0)
+PKGFILES_CSWlibopenjp2-6 += $(call baseisadirs,$(libdir),libopenjp2\.so\.6)
+SPKG_DESC_CSWlibopenjp2-6 += $(DESCRIPTION), libopenjp2.so.6
+RUNTIME_DEP_PKGS_CSWlibopenjp2-6 += CSWlibgcc-s1
+
+PACKAGES += CSWopenjpeg-dev
+CATALOGNAME_CSWopenjpeg-dev = openjpeg_dev
+SPKG_DESC_CSWopenjpeg-dev += $(DESCRIPTION), development files
+PKGFILES_CSWopenjpeg-dev += $(PKGFILES_DEVEL)
+RUNTIME_DEP_PKGS_CSWopenjpeg-dev += CSWlibopenjp2-6
+
+RUNTIME_DEP_PKGS_CSWopenjpeg += CSWlibopenjp2-6
+
+# For some reason the so.6 links to the so.2.0.0
+CHECKPKG_OVERRIDES_CSWlibopenjp2-6 += soname-not-part-of-filename|soname=libopenjp2.so.6|filename=libopenjp2.so.2.0.0
+
 CMAKE_ARGS += -DCMAKE_C_FLAGS="$(CFLAGS)"
-CMAKE_ARGS += -DCMAKE_CXX_FLAGS="$(CXXFLAGS)"
 CMAKE_ARGS += -DCMAKE_LIBRARY_PATH="$(libdir)"
 CMAKE_ARGS += -DCMAKE_PREFIX_PATH="$(prefix)"
 CMAKE_ARGS += -DCMAKE_INCLUDE_PATH="$(includedir)"
@@ -22,6 +40,8 @@
 CMAKE_ARGS += -DCMAKE_INSTALL_PREFIX=$(prefix)
 CMAKE_ARGS += -DBUILD_SHARED_LIBS:bool=on
 CMAKE_ARGS += -DBUILD_CODEC:bool=on
+CMAKE_ARGS += -DOPENJPEG_INSTALL_BIN_DIR=$(subst $(prefix)/,,$(bindir))
+CMAKE_ARGS += -DOPENJPEG_INSTALL_LIB_DIR=$(subst $(prefix)/,,$(libdir))
 
 BUILD64 = 1
 ISAEXEC = 1

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