harfbuzz: security bump to version 1.4.4
[buildroot-gz.git] / package / ficl / ficl.mk
blob65df146785c27f89ce74218750621b5c63773107
1 ################################################################################
3 # ficl
5 ################################################################################
7 FICL_VERSION_MAJOR = 4.1
8 FICL_VERSION = $(FICL_VERSION_MAJOR).0
9 FICL_SITE = http://downloads.sourceforge.net/project/ficl/ficl-all/ficl$(FICL_VERSION_MAJOR)
10 FICL_LICENSE = BSD-2c
11 FICL_LICENSE_FILES = ReadMe.txt
12 FICL_INSTALL_STAGING = YES
14 ifeq ($(BR2_STATIC_LIBS),y)
15 FICL_BUILD_TARGETS += ficl
16 define FICL_INSTALL_STATIC_BIN
17 $(INSTALL) -D -m 0755 $(@D)/ficl $(TARGET_DIR)/usr/bin/ficl
18 endef
19 endif
21 ifeq ($(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
22 FICL_BUILD_TARGETS += libficl.a
23 define FICL_INSTALL_STATIC_LIB
24 $(INSTALL) -D -m 0644 $(@D)/libficl.a $(STAGING_DIR)/usr/lib/libficl.a
25 endef
26 endif
28 ifeq ($(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
29 FICL_BUILD_TARGETS += main libficl.so.$(FICL_VERSION)
30 define FICL_INSTALL_SHARED_BIN
31 $(INSTALL) -D -m 0755 $(@D)/main $(TARGET_DIR)/usr/bin/ficl
32 endef
33 define FICL_INSTALL_SHARED_LIB
34 $(INSTALL) -D -m 0755 $(@D)/libficl.so.$(FICL_VERSION) $(1)/usr/lib/libficl.so.$(FICL_VERSION)
35 ln -sf libficl.so.$(FICL_VERSION) $(1)/usr/lib/libficl.so.4
36 ln -sf libficl.so.$(FICL_VERSION) $(1)/usr/lib/libficl.so
37 endef
38 endif
40 define FICL_BUILD_CMDS
41 $(MAKE) -C $(@D) -f Makefile.linux $(TARGET_CONFIGURE_OPTS) \
42 CFLAGS="$(TARGET_CFLAGS) -fPIC -I. -Dlinux" CPPFLAGS="" $(FICL_BUILD_TARGETS)
43 endef
45 define FICL_INSTALL_STAGING_CMDS
46 $(FICL_INSTALL_STATIC_LIB)
47 $(call FICL_INSTALL_SHARED_LIB,$(STAGING_DIR))
48 $(INSTALL) -D -m 0644 $(@D)/ficl.h $(STAGING_DIR)/usr/include/ficl.h
49 $(INSTALL) -D -m 0644 $(@D)/ficllocal.h $(STAGING_DIR)/usr/include/ficllocal.h
50 $(INSTALL) -D -m 0644 $(@D)/ficlplatform/unix.h $(STAGING_DIR)/usr/include/ficlplatform/unix.h
51 endef
53 define FICL_INSTALL_TARGET_CMDS
54 $(FICL_INSTALL_STATIC_BIN)
55 $(FICL_INSTALL_SHARED_BIN)
56 $(call FICL_INSTALL_SHARED_LIB,$(TARGET_DIR))
57 endef
59 $(eval $(generic-package))