diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-01-10 17:37:30 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-01-10 17:37:30 +0100 |
commit | b4d204f9fdb09a3655ae9a90ef262e253d6e59d7 (patch) | |
tree | 9195e74b2a7ff4f0403864f235a74ecb23ddac45 /package/bzip2/Makefile | |
parent | 79963aad5902c51d47fbc779c1280060872f1a71 (diff) |
add upower, polkit and dependencies
Diffstat (limited to 'package/bzip2/Makefile')
-rw-r--r-- | package/bzip2/Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/package/bzip2/Makefile b/package/bzip2/Makefile index 2f6bb7f8b..a2cb7a709 100644 --- a/package/bzip2/Makefile +++ b/package/bzip2/Makefile @@ -9,6 +9,7 @@ PKG_RELEASE:= 3 PKG_MD5SUM:= 00b516f4704d4a7cb50a1d97e6e8e15b PKG_DESCR:= bzip2 compression utility PKG_SECTION:= archive +PKG_BUILDDEP:= bzip2-host PKG_DEPENDS:= libbz2 PKG_URL:= http://www.bzip.org/ PKG_SITES:= http://www.bzip.org/${PKG_VERSION}/ @@ -23,17 +24,32 @@ ifeq ($(ADK_STATIC),y) PKG_OPTS+= libmix endif +include ${TOPDIR}/mk/host.mk include ${TOPDIR}/mk/package.mk +$(eval $(call HOST_template,BZIP2,bzip2,${PKG_VERSION}-${PKG_RELEASE})) $(eval $(call PKG_template,BZIP2,bzip2,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) $(eval $(call PKG_template,LIBBZ2,libbz2,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_LIBBZ2},${PKGSC_LIBBZ2},${PKG_OPTS})) +HOST_STYLE:= manual MAKE_FILE:= Makefile-libbz2_so CONFIG_STYLE:= manual TARGET_CFLAGS+= -fPIC XAKE_FLAGS+= PREFIX=${WRKINST}/usr INSTALL_STYLE:= manual +host-build: + (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \ + PREFIX=${HOST_WRKINST}/usr ${HOST_ALL_TARGET}) + +bzip2-hostinstall: + ${INSTALL_DIR} ${STAGING_HOST_DIR}/usr/lib + ${INSTALL_DIR} $(STAGING_HOST_DIR)/usr/include + $(CP) ${WRKBUILD}/libbz2.so* \ + ${STAGING_HOST_DIR}/usr/lib + (cd ${STAGING_HOST_DIR}/usr/lib; ln -sf libbz2.so.1.0.6 libbz2.so) + $(CP) $(WRKBUILD)/bzlib.h $(STAGING_HOST_DIR)/usr/include + libbz2-install: ${INSTALL_DIR} ${IDIR_LIBBZ2}/usr/lib $(CP) ${WRKBUILD}/libbz2.so* \ @@ -49,4 +65,5 @@ bzip2-install: ${INSTALL_DIR} ${IDIR_BZIP2}/usr/bin ${INSTALL_BIN} ${WRKBUILD}/bzip2-shared ${IDIR_BZIP2}/usr/bin/bzip2 +include ${TOPDIR}/mk/host-bottom.mk include ${TOPDIR}/mk/pkg-bottom.mk |