1 ################################################################################
5 ################################################################################
8 BZIP2_SITE
= http
://www.bzip.org
/$(BZIP2_VERSION
)
9 BZIP2_INSTALL_STAGING
= YES
10 BZIP2_LICENSE
= bzip2 license
11 BZIP2_LICENSE_FILES
= LICENSE
13 ifeq ($(BR2_STATIC_LIBS
),)
14 define BZIP2_BUILD_SHARED_CMDS
16 $(MAKE
) -C
$(@D
) -f Makefile-libbz2_so
$(TARGET_CONFIGURE_OPTS
)
20 define BZIP2_BUILD_CMDS
22 $(MAKE
) -C
$(@D
) libbz2.a bzip2 bzip2recover
$(TARGET_CONFIGURE_OPTS
)
23 $(BZIP2_BUILD_SHARED_CMDS
)
26 ifeq ($(BR2_STATIC_LIBS
),)
27 define BZIP2_INSTALL_STAGING_SHARED_CMDS
28 $(TARGET_MAKE_ENV
) $(MAKE
) \
29 -f Makefile-libbz2_so PREFIX
=$(STAGING_DIR
)/usr
-C
$(@D
) install
33 define BZIP2_INSTALL_STAGING_CMDS
34 $(TARGET_MAKE_ENV
) $(MAKE
) \
35 PREFIX
=$(STAGING_DIR
)/usr
-C
$(@D
) install
36 $(BZIP2_INSTALL_STAGING_SHARED_CMDS
)
39 ifeq ($(BR2_STATIC_LIBS
),)
40 define BZIP2_INSTALL_TARGET_SHARED_CMDS
41 $(TARGET_MAKE_ENV
) $(MAKE
) \
42 -f Makefile-libbz2_so PREFIX
=$(TARGET_DIR
)/usr
-C
$(@D
) install
46 # make sure busybox doesn't get overwritten by make install
47 define BZIP2_INSTALL_TARGET_CMDS
48 rm -f
$(addprefix $(TARGET_DIR
)/usr
/bin
/,bzip2 bunzip2 bzcat
)
49 $(TARGET_MAKE_ENV
) $(MAKE
) \
50 PREFIX
=$(TARGET_DIR
)/usr
-C
$(@D
) install
51 $(BZIP2_INSTALL_TARGET_SHARED_CMDS
)
54 define HOST_BZIP2_BUILD_CMDS
55 $(HOST_MAKE_ENV
) $(HOST_CONFIGURE_OPTS
) \
56 $(MAKE
) -C
$(@D
) -f Makefile-libbz2_so
57 $(HOST_MAKE_ENV
) $(HOST_CONFIGURE_OPTS
) \
58 $(MAKE
) -C
$(@D
) libbz2.a bzip2 bzip2recover
61 define HOST_BZIP2_INSTALL_CMDS
63 $(MAKE
) PREFIX
=$(HOST_DIR
)/usr
-C
$(@D
) install
65 $(MAKE
) -f Makefile-libbz2_so PREFIX
=$(HOST_DIR
)/usr
-C
$(@D
) install
68 $(eval
$(generic-package
))
69 $(eval
$(host-generic-package
))