diff options
author | James <> | 2015-09-26 12:29:31 +0100 |
---|---|---|
committer | James <> | 2015-09-26 12:29:31 +0100 |
commit | 626d9efa74685720020e816f3a917b7591d3cf7a (patch) | |
tree | d22eef73ae82287b30a1140decb4fc806d39d621 /tools/xz | |
download | trunk-47048-626d9efa74685720020e816f3a917b7591d3cf7a.tar.gz trunk-47048-626d9efa74685720020e816f3a917b7591d3cf7a.tar.bz2 trunk-47048-626d9efa74685720020e816f3a917b7591d3cf7a.zip |
trunk-47048
Diffstat (limited to 'tools/xz')
-rw-r--r-- | tools/xz/Makefile | 28 | ||||
-rw-r--r-- | tools/xz/patches/100-freebsd-compat.patch | 11 |
2 files changed, 39 insertions, 0 deletions
diff --git a/tools/xz/Makefile b/tools/xz/Makefile new file mode 100644 index 0000000..d1f1008 --- /dev/null +++ b/tools/xz/Makefile @@ -0,0 +1,28 @@ +# +# Copyright (C) 2006-2013 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +include $(TOPDIR)/rules.mk + +PKG_NAME:=xz +PKG_VERSION:=5.2.1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:=http://tukaani.org/xz +PKG_MD5SUM:=d484910b26fec5aff99ee66350589e29 + +HOST_BUILD_PARALLEL:=1 + +include $(INCLUDE_DIR)/host-build.mk + +HOST_CONFIGURE_ARGS += \ + --enable-static=yes \ + --enable-shared=no \ + +define Host/Install + +$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) install xzlinks="unxz xzcat" +endef + +$(eval $(call HostBuild)) diff --git a/tools/xz/patches/100-freebsd-compat.patch b/tools/xz/patches/100-freebsd-compat.patch new file mode 100644 index 0000000..480a652 --- /dev/null +++ b/tools/xz/patches/100-freebsd-compat.patch @@ -0,0 +1,11 @@ +--- a/src/common/tuklib_integer.h ++++ b/src/common/tuklib_integer.h +@@ -48,7 +48,7 @@ + // Operating system specific features // + //////////////////////////////////////// + +-#if defined(HAVE_BYTESWAP_H) ++#if defined(HAVE_BYTESWAP_H) && !defined(__FreeBSD__) + // glibc, uClibc, dietlibc + # include <byteswap.h> + # ifdef HAVE_BSWAP_16 |