libgtk3: remove non-existent configure options
[buildroot-gz.git] / package / libglob / libglob.mk
blobcd6922e0e7d7ac58cbf3de181e0c7a4ef1274afe
1 ################################################################################
3 # libglob
5 ################################################################################
7 LIBGLOB_VERSION = 1.0
8 LIBGLOB_SITE = $(call github,voidlinux,libglob,$(LIBGLOB_VERSION))
9 LIBGLOB_LICENSE = BSD-3c
10 LIBGLOB_LICENSE_FILES = LICENSE
11 LIBGLOB_INSTALL_STAGING = YES
13 ifeq ($(BR2_SHARED_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
14 LIBGLOB_MAKE_TARGETS += libglob.so
15 # $1: destination directory
16 define LIBGLOB_INSTALL_SHARED
17 $(INSTALL) -m 0755 -D $(@D)/libglob.so.0.0.0 \
18 $(1)/usr/lib/libglob.so.0.0.0
19 ln -sf libglob.so.0.0.0 $(1)/usr/lib/libglob.so.0
20 ln -sf libglob.so.0.0.0 $(1)/usr/lib/libglob.so
21 endef
22 endif
24 ifeq ($(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
25 LIBGLOB_MAKE_TARGETS += libglob.a
26 # $1: destination directory
27 define LIBGLOB_INSTALL_STATIC
28 $(INSTALL) -m 0644 -D $(@D)/libglob.a $(1)/usr/lib/libglob.a
29 endef
30 endif
32 define LIBGLOB_BUILD_CMDS
33 $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
34 $(LIBGLOB_MAKE_TARGETS)
35 endef
37 define LIBGLOB_INSTALL_STAGING_CMDS
38 $(INSTALL) -m 0644 -D $(@D)/glob.h \
39 $(STAGING_DIR)/usr/include/libglob/glob.h
40 $(call LIBGLOB_INSTALL_SHARED,$(STAGING_DIR))
41 $(call LIBGLOB_INSTALL_STATIC,$(STAGING_DIR))
42 endef
44 define LIBGLOB_INSTALL_TARGET_CMDS
45 $(call LIBGLOB_INSTALL_SHARED,$(TARGET_DIR))
46 endef
48 $(eval $(generic-package))