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
9 PKG_HASH
:= 0b0e3aa07c8c063ddf40b082bdf7e37a1562bda40a0ff5272957f3e987e0e54b
10 PKG_DESCR
:= compression utility
11 PKG_SECTION
:= app
/archive
13 PKG_URL
:= http
://lz4.github.io
/lz4
/
14 PKG_SITES
:= https
://github.com
/lz4
/lz4
/archive
/
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}))
33 XAKE_FLAGS
+= PREFIX
=/usr OS
=Linux
34 HOST_XAKE_FLAGS
+= PREFIX
=/usr
38 (cd
${WRKBUILD} && env
${HOST_MAKE_ENV} ${MAKE} -f
${MAKE_FILE} \
39 ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET}) $(MAKE_TRACE
)
42 cd
${WRKBUILD} && env
${HOST_MAKE_ENV} ${MAKE} -f
${MAKE_FILE} \
43 ${HOST_FAKE_FLAGS} DESTDIR
='${STAGING_HOST_DIR}' ${HOST_INSTALL_TARGET} $(MAKE_TRACE
)
46 ${INSTALL_DIR} ${IDIR_LZ4}/usr
/bin
47 ${CP} ${WRKINST}/usr
/bin
/* ${IDIR_LZ4}/usr
/bin
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