1 ################################################################################
5 ################################################################################
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
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
32 define LIBGLOB_BUILD_CMDS
33 $(TARGET_MAKE_ENV
) $(TARGET_CONFIGURE_OPTS
) $(MAKE
) -C
$(@D
) \
34 $(LIBGLOB_MAKE_TARGETS
)
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
))
44 define LIBGLOB_INSTALL_TARGET_CMDS
45 $(call LIBGLOB_INSTALL_SHARED
,$(TARGET_DIR
))
48 $(eval
$(generic-package
))