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
:= 9d4d00614d6b9dec3114b33d1224b6262b99ace24434c53487a0c8fd0b18cfed
10 PKG_DESCR
:= compression utility
11 PKG_SECTION
:= app
/archive
13 PKG_URL
:= https
://code.google.com
/p
/lz4
/
14 PKG_SITES
:= https
://github.com
/Cyan4973
/lz4
/archive
/
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}))
37 (cd
${WRKBUILD} && env
${HOST_MAKE_ENV} ${MAKE} -f
${MAKE_FILE} \
38 ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET}) $(MAKE_TRACE
)
41 cd
${WRKBUILD} && env
${HOST_MAKE_ENV} ${MAKE} -f
${MAKE_FILE} \
42 ${HOST_FAKE_FLAGS} DESTDIR
='${STAGING_HOST_DIR}' ${HOST_INSTALL_TARGET} $(MAKE_TRACE
)
45 ${INSTALL_DIR} ${IDIR_LZ4}/usr
/bin
46 ${CP} ${WRKINST}/usr
/bin
/* ${IDIR_LZ4}/usr
/bin
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