summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-02-26 20:44:08 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-03-02 18:55:23 +0100
commit219374199a044f35217b43f255398feeddf538c5 (patch)
tree1a3a02dfb70d7e59e81f2f74c2f454bf3d4c13da /package
parentdac409cf8e7792d666138448e22eb7146d6c2a0c (diff)
fix header and library install when static build
Diffstat (limited to 'package')
-rw-r--r--package/bzip2/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/package/bzip2/Makefile b/package/bzip2/Makefile
index abd670592..bbbbfecc9 100644
--- a/package/bzip2/Makefile
+++ b/package/bzip2/Makefile
@@ -39,6 +39,7 @@ BIN_FILE:= bzip2-shared
else
BIN_FILE:= bzip2
endif
+
CONFIG_STYLE:= manual
TARGET_CFLAGS+= -fPIC
XAKE_FLAGS+= PREFIX=${WRKINST}/usr CROSS_COMPILE=1
@@ -52,6 +53,11 @@ bzip2-hostinstall:
${INSTALL_DIR} ${STAGING_HOST_DIR}/usr/bin
$(INSTALL_BIN) ${WRKBUILD}/bzip2 ${STAGING_HOST_DIR}/usr/bin/bzip2
+do-install:
+ ${INSTALL_DIR} $(STAGING_TARGET_DIR)/usr/include
+ $(CP) $(WRKBUILD)/bzlib.h $(STAGING_TARGET_DIR)/usr/include
+ $(CP) ${WRKBUILD}/libbz2.a ${STAGING_TARGET_DIR}/usr/lib
+
libbz2-install:
${INSTALL_DIR} ${IDIR_LIBBZ2}/usr/lib
$(CP) ${WRKBUILD}/libbz2.so* \
@@ -59,7 +65,6 @@ libbz2-install:
$(CP) ${WRKBUILD}/libbz2.so* \
${STAGING_TARGET_DIR}/usr/lib
(cd ${STAGING_TARGET_DIR}/usr/lib; ln -sf libbz2.so.1.0.6 libbz2.so)
- $(CP) $(WRKBUILD)/bzlib.h $(STAGING_TARGET_DIR)/usr/include
${INSTALL_DIR} $(IDIR_LIBBZ2_DEV)/usr/include
$(CP) $(WRKBUILD)/bzlib.h $(IDIR_LIBBZ2_DEV)/usr/include