perl-cross: bump to version 1.1.4
[buildroot-gz.git] / package / skalibs / skalibs.mk
blob55b8a293a71d879324fba6ac5740a6bb2a03538b
1 ################################################################################
3 # skalibs
5 ################################################################################
7 SKALIBS_VERSION = 2.4.0.2
8 SKALIBS_SITE = http://skarnet.org/software/skalibs
9 SKALIBS_LICENSE = ISC
10 SKALIBS_LICENSE_FILES = COPYING
11 SKALIBS_INSTALL_STAGING = YES
13 SKALIBS_CONF_OPTS = \
14 --prefix=/usr \
15 --with-default-path=/sbin:/usr/sbin:/bin:/usr/bin \
16 $(SHARED_STATIC_LIBS_OPTS)
18 define SKALIBS_CONFIGURE_CMDS
19 (cd $(@D); $(TARGET_CONFIGURE_OPTS) ./configure $(SKALIBS_CONF_OPTS))
20 endef
22 define SKALIBS_BUILD_CMDS
23 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
24 endef
26 define SKALIBS_INSTALL_TARGET_CMDS
27 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
28 rm -rf $(TARGET_DIR)/usr/lib/skalibs
29 endef
31 define SKALIBS_INSTALL_STAGING_CMDS
32 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
33 endef
35 HOST_SKALIBS_CONF_OPTS = \
36 --prefix=$(HOST_DIR)/usr \
37 --disable-static \
38 --enable-shared \
39 --disable-allstatic
41 define HOST_SKALIBS_CONFIGURE_CMDS
42 (cd $(@D); $(HOST_CONFIGURE_OPTS) ./configure $(HOST_SKALIBS_CONF_OPTS))
43 endef
45 define HOST_SKALIBS_BUILD_CMDS
46 $(HOST_MAKE_ENV) $(MAKE) -C $(@D)
47 endef
49 define HOST_SKALIBS_INSTALL_CMDS
50 $(HOST_MAKE_ENV) $(MAKE) -C $(@D) install
51 endef
53 $(eval $(generic-package))
54 $(eval $(host-generic-package))