11be35a165
To do so, a few dependencies have been imported: * external/bsd/lutok * external/mit/lua * external/public-domain/sqlite * external/public-domain/xz The Kyua framework is the new generation of ATF (Automated Test Framework), it is composed of: * external/bsd/atf * external/bsd/kyua-atf-compat * external/bsd/kyua-cli * external/bsd/kyua-tester * tests Kyua/ATF being written in C++, it depends on libstdc++ which is provided by GCC. As this is not part of the sources, Kyua is only compiled when the native GCC utils are installed. To install Kyua do the following: * In a cross-build enviromnent, add the following to the build.sh commandline: -V MKBINUTILS=yes -V MKGCCCMDS=yes WARNING: At this point the import is still experimental, and not supported on native builds (a.k.a make build). Change-Id: I26aee23c5bbd2d64adcb7c1beb98fe0d479d7ada
98 lines
3.1 KiB
Makefile
98 lines
3.1 KiB
Makefile
# $NetBSD: Makefile,v 1.3 2010/11/09 23:07:09 joerg Exp $
|
|
|
|
LIB= lzma
|
|
USE_SHLIBDIR= yes
|
|
NOLINT= yes
|
|
|
|
.include <bsd.init.mk>
|
|
|
|
# There are two different lzma.h files.
|
|
# Copy public version to distinguish them.
|
|
pub-lzma.h: ${XZSRCDIR}/src/liblzma/api/lzma.h
|
|
${_MKTARGET_CREATE}
|
|
rm -f ${.TARGET}
|
|
${TOOL_CAT} ${XZSRCDIR}/src/liblzma/api/lzma.h > ${.TARGET}
|
|
CLEANFILES+= pub-lzma.h
|
|
INCS= pub-lzma.h
|
|
INCSDIR_pub-lzma.h= /usr/include
|
|
INCSNAME_pub-lzma.h= lzma.h
|
|
|
|
.PATH: ${XZSRCDIR}/src/liblzma/api/lzma
|
|
INCS+= base.h bcj.h block.h check.h container.h delta.h \
|
|
filter.h hardware.h index.h index_hash.h lzma.h stream_flags.h \
|
|
version.h vli.h
|
|
|
|
INCSDIR= /usr/include/lzma
|
|
|
|
LDFLAGS+= -Wl,-z,defs
|
|
|
|
CPPFLAGS+= -I${XZSRCDIR}/src/liblzma/check
|
|
CPPFLAGS+= -I${XZSRCDIR}/src/liblzma/common
|
|
CPPFLAGS+= -I${XZSRCDIR}/src/liblzma/delta
|
|
CPPFLAGS+= -I${XZSRCDIR}/src/liblzma/lz
|
|
CPPFLAGS+= -I${XZSRCDIR}/src/liblzma/lzma
|
|
CPPFLAGS+= -I${XZSRCDIR}/src/liblzma/rangecoder
|
|
CPPFLAGS+= -I${XZSRCDIR}/src/liblzma/simple
|
|
CPPFLAGS+= -DTUKLIB_SYMBOL_PREFIX=lzma_
|
|
CPPFLAGS+= -DNETBSD_NATIVE_SHA256
|
|
|
|
.PATH: ${XZSRCDIR}/src/common
|
|
SRCS+= tuklib_physmem.c
|
|
|
|
.PATH: ${XZSRCDIR}/src/liblzma/check
|
|
SRCS+= check.c crc32_table.c crc64_table.c
|
|
SRCS+= crc32_fast.c crc64_fast.c
|
|
|
|
.PATH: ${XZSRCDIR}/src/liblzma/common
|
|
SRCS+= common.c block_util.c easy_preset.c filter_common.c \
|
|
hardware_physmem.c index.c \
|
|
stream_flags_common.c vli_size.c \
|
|
alone_encoder.c block_buffer_encoder.c block_encoder.c \
|
|
block_header_encoder.c easy_buffer_encoder.c easy_encoder.c \
|
|
easy_encoder_memusage.c filter_buffer_encoder.c \
|
|
filter_encoder.c filter_flags_encoder.c index_encoder.c \
|
|
stream_buffer_encoder.c stream_encoder.c stream_flags_encoder.c \
|
|
vli_encoder.c \
|
|
alone_decoder.c auto_decoder.c block_buffer_decoder.c \
|
|
block_decoder.c block_header_decoder.c easy_decoder_memusage.c \
|
|
filter_buffer_decoder.c filter_decoder.c filter_flags_decoder.c \
|
|
index_decoder.c index_hash.c stream_buffer_decoder.c \
|
|
stream_decoder.c stream_flags_decoder.c vli_decoder.c
|
|
|
|
.PATH: ${XZSRCDIR}/src/liblzma/delta
|
|
SRCS+= delta_common.c delta_encoder.c delta_decoder.c
|
|
|
|
.PATH: ${XZSRCDIR}/src/liblzma/lz
|
|
SRCS+= lz_decoder.c lz_encoder.c lz_encoder_mf.c
|
|
|
|
.PATH: ${XZSRCDIR}/src/liblzma/lzma
|
|
SRCS+= lzma_encoder.c lzma_encoder_presets.c \
|
|
lzma_encoder_optimum_fast.c lzma_encoder_optimum_normal.c \
|
|
lzma_decoder.c lzma2_encoder.c lzma2_decoder.c \
|
|
fastpos_table.c
|
|
|
|
.PATH: ${XZSRCDIR}/src/liblzma/rangecoder
|
|
SRCS+= price_table.c
|
|
|
|
.PATH: ${XZSRCDIR}/src/liblzma/simple
|
|
SRCS+= simple_coder.c simple_encoder.c simple_decoder.c \
|
|
arm.c armthumb.c ia64.c powerpc.c sparc.c x86.c
|
|
|
|
liblzma.pc: ${XZSRCDIR}/src/liblzma/liblzma.pc.in
|
|
${_MKTARGET_CREATE}
|
|
rm -f ${.TARGET}
|
|
${TOOL_SED} \
|
|
-e 's,@prefix@,/usr,' \
|
|
-e 's,@exec_prefix@,/usr,' \
|
|
-e 's,@libdir@,/usr/lib,' \
|
|
-e 's,@includedir@,/usr/include,' \
|
|
-e 's,@PACKAGE_HOMEPAGE@,${XZHOMEPAGE:Q},' \
|
|
-e 's,@PACKAGE_VERSION@,${XZVERSION:Q},' \
|
|
-e 's,@PTHREAD_CFLAGS@ @PTHREAD_LIBS@,,' \
|
|
< ${XZSRCDIR}/src/liblzma/liblzma.pc.in \
|
|
> ${.TARGET}.tmp && \
|
|
mv -f ${.TARGET}.tmp ${.TARGET}
|
|
|
|
CLEANFILES+= liblzma.pc
|
|
|
|
.include <bsd.lib.mk>
|