summaryrefslogtreecommitdiffstats
path: root/package/libsquish/libsquish.mk
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2015-07-22 22:30:23 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-07-27 22:12:04 +0200
commitdf88cdfe44640a782c8459297beb63ec3d5af986 (patch)
treee23468099e7685b875cbc56af8e857fe8d83f623 /package/libsquish/libsquish.mk
parent5ccde01652bc41da325bf4c9a5abbf0031080784 (diff)
downloadbuildroot-df88cdfe44640a782c8459297beb63ec3d5af986.tar.gz
buildroot-df88cdfe44640a782c8459297beb63ec3d5af986.zip
package/libsquish: New package
Kodi 15.0 contains an updated version of libsquish: https://github.com/xbmc/xbmc/tree/master/tools/depends/native/libsquish-native The OpenElec project provides a separate tarball including the Kodi- specific patches: http://sources.openelec.tv/devel/libsquish-1.10-openelec.tar.gz This patch contains the relevant diff between upstream libsquish 1.13 and the OpenElec tarball. [Thomas: - don't create the usr/lib/pkgconfig directory in STAGING_DIR and TARGET_DIR, since libsquish installation doesn't install a .pc file. - instead, create usr/include and usr/lib. - fixup the symlink logic so that the target directory only has a symbolic link named after the library SONAME, while the staging dir has both usual symlinks: one named after the SONAME, one just libsquish.so. Suggested by Yann E. Morin.] Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/libsquish/libsquish.mk')
-rw-r--r--package/libsquish/libsquish.mk37
1 files changed, 37 insertions, 0 deletions
diff --git a/package/libsquish/libsquish.mk b/package/libsquish/libsquish.mk
new file mode 100644
index 0000000000..73f8de9cc1
--- /dev/null
+++ b/package/libsquish/libsquish.mk
@@ -0,0 +1,37 @@
+################################################################################
+#
+# libsquish
+#
+################################################################################
+
+LIBSQUISH_VERSION = 1.13
+LIBSQUISH_SOURCE = libsquish-$(LIBSQUISH_VERSION).tgz
+LIBSQUISH_SITE = http://downloads.sourceforge.net/project/libsquish
+LIBSQUISH_INSTALL_STAGING = YES
+LIBSQUISH_STRIP_COMPONENTS = 0
+LIBSQUISH_LICENSE = MIT
+LIBSQUISH_LICENSE_FILES = README
+
+define LIBSQUISH_BUILD_CMDS
+ $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
+endef
+
+define LIBSQUISH_INSTALL_STAGING_CMDS
+ mkdir -p $(STAGING_DIR)/usr/include
+ mkdir -p $(STAGING_DIR)/usr/lib
+ $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
+ install PREFIX=/usr INSTALL_DIR=$(STAGING_DIR)/usr
+ $(INSTALL) -D -m 644 $(@D)/squish.pc $(STAGING_DIR)/usr/lib/pkgconfig/squish.pc
+ ln -sf libsquish.so.0.0 $(STAGING_DIR)/usr/lib/libsquish.so
+ ln -sf libsquish.so.0.0 $(STAGING_DIR)/usr/lib/libsquish.so.0
+endef
+
+define LIBSQUISH_INSTALL_TARGET_CMDS
+ mkdir -p $(TARGET_DIR)/usr/include
+ mkdir -p $(TARGET_DIR)/usr/lib
+ $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
+ install PREFIX=/usr INSTALL_DIR=$(TARGET_DIR)/usr
+ ln -sf libsquish.so.0.0 $(TARGET_DIR)/usr/lib/libsquish.so.0
+endef
+
+$(eval $(generic-package))
OpenPOWER on IntegriCloud