Reorganize slightly in preparation for making lzma and bz2 support conditional.

This commit is contained in:
Tim Kientzle 2010-05-16 20:43:17 +00:00
parent 97af4af5b0
commit fd4cf0607f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=208169
2 changed files with 10 additions and 4 deletions

View File

@ -2,8 +2,16 @@
.include <bsd.own.mk>
LIB= archive
DPADD= ${LIBBZ2} ${LIBZ} ${LIBMD} ${LIBLZMA}
LDADD= -lbz2 -lz -lmd -llzma
DPADD= ${LIBZ} ${LIBMD}
LDADD= -lz -lmd
DPADD+= ${LIBBZ2}
LDADD+= -lbz2
CFLAGS+= -DHAVE_BZLIB_H 1
DPADD+= ${LIBLZMA}
LDADD+= -llzma
CFLAGS+= -DHAVE_LIBLZMA=1 -DHAVE_LZMA_H=1
# FreeBSD SHLIB_MAJOR value is managed as part of the FreeBSD system.
# It has no real relation to the libarchive version number.
@ -11,7 +19,6 @@ SHLIB_MAJOR= 5
CFLAGS+= -DPLATFORM_CONFIG_H=\"config_freebsd.h\"
CFLAGS+= -I${.OBJDIR}
CFLAGS+= -DHAVE_LIBLZMA=1 -DHAVE_LZMA_H=1
.if ${MK_OPENSSL} != "no"
CFLAGS+= -DWITH_OPENSSL

View File

@ -52,7 +52,6 @@
#endif
#define HAVE_BSDXML_H 1
#define HAVE_BZLIB_H 1
#define HAVE_CHFLAGS 1
#define HAVE_CHOWN 1
#define HAVE_DECL_INT64_MAX 1