1# 2# Copyright (C) 2006-2016 OpenWrt.org 3# 4# This is free software, licensed under the GNU General Public License v2. 5# See /LICENSE for more information. 6# 7 8include $(TOPDIR)/rules.mk 9 10PKG_NAME:=lzo 11PKG_VERSION:=2.09 12PKG_RELEASE:=1 13 14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 15PKG_SOURCE_URL:=https://ftp.osuosl.org/pub/blfs/conglomeration/lzo/ 16PKG_MD5SUM:=c7ffc9a103afe2d1bba0b015e7aa887f 17 18PKG_FIXUP:=autoreconf 19PKG_INSTALL:=1 20PKG_LICENSE:=GPL-2.0+ 21 22PKG_BUILD_PARALLEL:=1 23 24include $(INCLUDE_DIR)/package.mk 25 26define Package/liblzo 27 SECTION:=libs 28 CATEGORY:=Libraries 29 TITLE:=A real-time data compression library 30 URL:=https://ftp.osuosl.org/pub/blfs/conglomeration/lzo/ 31endef 32 33define Package/liblzo/description 34 LZO is a data compression library which is suitable for data de-/compression 35 in real-time. This means it favours speed over compression ratio. 36endef 37 38define Build/Configure 39 $(call Build/Configure/Default, \ 40 --enable-shared \ 41 --enable-static \ 42 ) 43endef 44 45TARGET_CFLAGS += $(FPIC) 46MAKE_FLAGS += CFLAGS_O="$(TARGET_CFLAGS)" 47 48ifeq ($(CONFIG_i386)$(CONFIG_x86_64),) 49 TARGET_CFLAGS += -DLZO_CFG_NO_UNALIGNED=1 50endif 51 52define Build/InstallDev 53 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib 54 $(CP) $(PKG_INSTALL_DIR)/usr/include/lzo $(1)/usr/include/ 55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo2.{a,so*} $(1)/usr/lib/ 56endef 57 58define Package/liblzo/install 59 $(INSTALL_DIR) $(1)/usr/lib 60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo2.so* $(1)/usr/lib/ 61endef 62 63$(eval $(call BuildPackage,liblzo)) 64