summaryrefslogtreecommitdiff
path: root/package/bzip2
diff options
context:
space:
mode:
authorLionel Landwerlin <llandwerlin@gmail.com>2010-12-09 10:55:13 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2010-12-13 00:40:54 +0100
commitdd15877acef78b36b6bc84467167ae86da577380 (patch)
tree9e451733905c060ab20ea7aafa849095be579d85 /package/bzip2
parent8c9476d72c45a607ccec49cea175ce736fb52527 (diff)
bzip2: ensure target directories exist before copying into
Also simply installation rules a little [Peter: leave in busybox install fix] Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/bzip2')
-rw-r--r--package/bzip2/bzip2.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/bzip2/bzip2.mk b/package/bzip2/bzip2.mk
index 3f341ee7a..123e579fc 100644
--- a/package/bzip2/bzip2.mk
+++ b/package/bzip2/bzip2.mk
@@ -39,7 +39,9 @@ define BZIP2_BUILD_CMDS
endef
define BZIP2_INSTALL_STAGING_CMDS
- cp $(@D)/bzlib.h $(STAGING_DIR)/usr/include/
+ $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) \
+ $(MAKE) PREFIX=$(STAGING_DIR)/usr -C $(@D) install
+ $(INSTALL) -m 0755 -d $(STAGING_DIR)/usr/lib
cp $(@D)/libbz2.so.$(BZIP2_SONAME) $(STAGING_DIR)/usr/lib/
cp $(@D)/libbz2.a $(STAGING_DIR)/usr/lib/
(cd $(STAGING_DIR)/usr/lib/; \