Changeset View
Changeset View
Standalone View
Standalone View
lib/libarchive/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
.include <src.opts.mk> | .include <src.opts.mk> | ||||
PACKAGE=lib${LIB} | PACKAGE=lib${LIB} | ||||
_LIBARCHIVEDIR= ${SRCTOP}/contrib/libarchive | _LIBARCHIVEDIR= ${SRCTOP}/contrib/libarchive | ||||
LIB= archive | LIB= archive | ||||
LIBADD= z bz2 lzma bsdxml zstd | |||||
CFLAGS+= -DHAVE_BZLIB_H=1 -DHAVE_LIBLZMA=1 -DHAVE_LZMA_H=1 -DHAVE_ZSTD_H=1 -DHAVE_LIBZSTD=1 | |||||
# FreeBSD SHLIB_MAJOR value is managed as part of the FreeBSD system. | # FreeBSD SHLIB_MAJOR value is managed as part of the FreeBSD system. | ||||
# It has no real relation to the libarchive version number. | # It has no real relation to the libarchive version number. | ||||
SHLIB_MAJOR= 7 | SHLIB_MAJOR= 7 | ||||
CFLAGS+= -DPLATFORM_CONFIG_H=\"${.CURDIR}/config_freebsd.h\" | |||||
CFLAGS+= -I${.OBJDIR} | CFLAGS+= -I${.OBJDIR} | ||||
CFLAGS+= -I${SRCTOP}/sys/contrib/zstd/lib | CFLAGS+= -I${SRCTOP}/sys/contrib/zstd/lib | ||||
.include "Makefile.inc" | |||||
.if ${MK_OPENSSL} != "no" | |||||
CFLAGS+= -DWITH_OPENSSL | |||||
LIBADD+= crypto | |||||
.else | |||||
LIBADD+= md | |||||
.endif | |||||
.if ${MK_ICONV} != "no" | |||||
# TODO: This can be changed back to CFLAGS once iconv works correctly | |||||
# with statically linked binaries. | |||||
SHARED_CFLAGS+= -DHAVE_ICONV=1 -DHAVE_ICONV_H=1 -DICONV_CONST= | |||||
.endif | |||||
.if ${MACHINE_ARCH:Marm*} != "" || ${MACHINE_ARCH:Mmips*} != "" || \ | .if ${MACHINE_ARCH:Marm*} != "" || ${MACHINE_ARCH:Mmips*} != "" || \ | ||||
${MACHINE_ARCH:Mpowerpc*} != "" | ${MACHINE_ARCH:Mpowerpc*} != "" | ||||
NO_WCAST_ALIGN= yes | NO_WCAST_ALIGN= yes | ||||
.if ${MACHINE_ARCH:M*64*} == "" | .if ${MACHINE_ARCH:M*64*} == "" | ||||
CFLAGS+= -DPPMD_32BIT | CFLAGS+= -DPPMD_32BIT | ||||
.endif | .endif | ||||
.endif | .endif | ||||
▲ Show 20 Lines • Show All 388 Lines • Show Last 20 Lines |