summaryrefslogtreecommitdiffstats
path: root/libs/lcms2/Makefile
blob: c5c79d86639fda24ed249f1e0b765a89feb192d6 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
include $(TOPDIR)/rules.mk

PKG_NAME:=lcms2
PKG_VERSION:=2.19.1
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/mm2/Little-CMS/releases/download/lcms$(PKG_VERSION)/
PKG_HASH:=bfc54f7bab59fbc921012014a8032e4cba4abd46db47d46b76416a8c0b2815c8

PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
PKG_CPE_ID:=cpe:/a:littlecms:little_cms_color_engine

PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1

include $(INCLUDE_DIR)/package.mk

define Package/liblcms2
  SECTION:=libs
  CATEGORY:=Libraries
  TITLE:=Little CMS colour management library
  URL:=https://www.littlecms.com/
endef

define Package/liblcms2/description
  Little CMS (lcms2) is a small-footprint colour management engine, with
  special focus on accuracy and performance. It uses the International
  Color Consortium standard (ICC) to perform colour management.
endef

CONFIGURE_ARGS += \
	--disable-static \
	--without-jpeg \
	--without-tiff \
	--without-zlib

define Build/InstallDev
	$(INSTALL_DIR) $(1)/usr/include
	$(CP) $(PKG_INSTALL_DIR)/usr/include/lcms2*.h $(1)/usr/include/
	$(INSTALL_DIR) $(1)/usr/lib
	$(CP) $(PKG_INSTALL_DIR)/usr/lib/liblcms2.so* $(1)/usr/lib/
	$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
	$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/lcms2.pc $(1)/usr/lib/pkgconfig/
endef

define Package/liblcms2/install
	$(INSTALL_DIR) $(1)/usr/lib
	$(CP) $(PKG_INSTALL_DIR)/usr/lib/liblcms2.so.* $(1)/usr/lib/
endef

$(eval $(call BuildPackage,liblcms2))