python3: update to 3.11.10
[openadk.git] / package / lz4 / Makefile
blob1481446933486514e7ea1b9c2c8c4516ef80aef3
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:= 1.9.4
8 PKG_RELEASE:= 1
9 PKG_HASH:= 0b0e3aa07c8c063ddf40b082bdf7e37a1562bda40a0ff5272957f3e987e0e54b
10 PKG_DESCR:= compression utility
11 PKG_SECTION:= app/archive
12 PKG_DEPENDS:= liblz4
13 PKG_URL:= http://lz4.github.io/lz4/
14 PKG_SITES:= https://github.com/lz4/lz4/archive/
15 PKG_OPTS:= dev
16 PKG_LIBNAME:= liblz4
18 DISTFILES:= v$(PKG_VERSION).tar.gz
20 PKG_SUBPKGS:= LZ4 LIBLZ4
21 PKGSD_LIBLZ4:= lz4 compression library
22 PKGSC_LIBLZ4:= libs/comp
24 include ${ADK_TOPDIR}/mk/host.mk
25 include ${ADK_TOPDIR}/mk/package.mk
27 $(eval $(call HOST_template,LZ4,lz4,${PKG_VERSION}-${PKG_RELEASE}))
28 $(eval $(call PKG_template,LZ4,lz4,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
29 $(eval $(call PKG_template,LIBLZ4,liblz4,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBLZ4},${PKGSD_LIBLZ4},${PKGSC_LIBLZ4},${PKG_OPTS}))
31 HOST_STYLE:= manual
32 CONFIG_STYLE:= manual
33 XAKE_FLAGS+= PREFIX=/usr OS=Linux
34 HOST_XAKE_FLAGS+= PREFIX=/usr
35 ALL_TARGET:= lib lz4
37 host-build:
38 (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
39 ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET}) $(MAKE_TRACE)
41 lz4-hostinstall:
42 cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
43 ${HOST_FAKE_FLAGS} DESTDIR='${STAGING_HOST_DIR}' ${HOST_INSTALL_TARGET} $(MAKE_TRACE)
45 lz4-install:
46 ${INSTALL_DIR} ${IDIR_LZ4}/usr/bin
47 ${CP} ${WRKINST}/usr/bin/* ${IDIR_LZ4}/usr/bin
49 liblz4-install:
50 ${INSTALL_DIR} ${IDIR_LIBLZ4}/usr/lib
51 ${CP} ${WRKINST}/usr/lib/liblz4.so* ${IDIR_LIBLZ4}/usr/lib
53 include ${ADK_TOPDIR}/mk/host-bottom.mk
54 include ${ADK_TOPDIR}/mk/pkg-bottom.mk