uclibc-ng: add config for aarch64
[openadk.git] / package / lz4 / Makefile
blob712fed62bc23e49d3ea4ba6799fda023d6740990
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
6 PKG_NAME:= lz4
7 PKG_VERSION:= 131
8 PKG_RELEASE:= 1
9 PKG_HASH:= 9d4d00614d6b9dec3114b33d1224b6262b99ace24434c53487a0c8fd0b18cfed
10 PKG_DESCR:= compression utility
11 PKG_SECTION:= app/archive
12 PKG_DEPENDS:= liblz4
13 PKG_URL:= https://code.google.com/p/lz4/
14 PKG_SITES:= https://github.com/Cyan4973/lz4/archive/
15 PKG_OPTS:= dev
16 PKG_LIBNAME:= liblz4
17 PKG_OPTS:= dev
19 DISTFILES:= r${PKG_VERSION}.tar.gz
20 WRKDIST= ${WRKDIR}/${PKG_NAME}-r${PKG_VERSION}
22 PKG_SUBPKGS:= LZ4 LIBLZ4
23 PKGSD_LIBLZ4:= lz4 compression library
24 PKGSC_LIBLZ4:= libs/comp
26 include ${ADK_TOPDIR}/mk/host.mk
27 include ${ADK_TOPDIR}/mk/package.mk
29 $(eval $(call HOST_template,LZ4,lz4,${PKG_VERSION}-${PKG_RELEASE}))
30 $(eval $(call PKG_template,LZ4,lz4,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
31 $(eval $(call PKG_template,LIBLZ4,liblz4,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBLZ4},${PKGSD_LIBLZ4},${PKGSC_LIBLZ4},${PKG_OPTS}))
33 HOST_STYLE:= manual
34 CONFIG_STYLE:= manual
36 host-build:
37 (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
38 ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET}) $(MAKE_TRACE)
40 lz4-hostinstall:
41 cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
42 ${HOST_FAKE_FLAGS} DESTDIR='${STAGING_HOST_DIR}' ${HOST_INSTALL_TARGET} $(MAKE_TRACE)
44 lz4-install:
45 ${INSTALL_DIR} ${IDIR_LZ4}/usr/bin
46 ${CP} ${WRKINST}/usr/bin/* ${IDIR_LZ4}/usr/bin
48 liblz4-install:
49 ${INSTALL_DIR} ${IDIR_LIBLZ4}/usr/lib
50 ${CP} ${WRKINST}/usr/lib/liblz4.so* ${IDIR_LIBLZ4}/usr/lib
52 include ${ADK_TOPDIR}/mk/host-bottom.mk
53 include ${ADK_TOPDIR}/mk/pkg-bottom.mk