Root/zimlib/Makefile

Source at commit 1b3135c created 12 years 5 months ago.
By Xiangfu Liu, new package: SDL-widgets: a GUI toolkit on top of the SDL libraries
1#
2# Copyright (C) 2008 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7#
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=zimlib
12PKG_VERSION:=0.92.20091227-3
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=http://www.openzim.org/download
17
18PKG_INSTALL:=1
19
20#PKG_FIXUP:=libtool-uclibxx
21PKG_FIXUP:=libtool
22
23include $(INCLUDE_DIR)/package.mk
24
25# we have to to stick to libstdc++ for, as zimlib is using locales hardcoded and the uclibc++ does not have locales-support
26#CONFIGURE_VARS += \
27# CXX="g++-uc"
28#
29#MAKE_FLAGS += \
30# CXX="g++-uc"
31
32define Package/zimlib
33    TITLE:=zimlib
34    SECTION:=libs
35    CATEGORY:=Libraries
36    DEPENDS:=+zlib +bzip2 +cxxtools +libstdcpp +xz
37    URL:=http://openzim.org
38endef
39
40define Build/Configure
41    $(call Build/Configure/Default, \
42        --with-cluster-cache-size=5 \
43        --disable-unittest \
44        --enable-benchmark \
45    )
46endef
47
48define Build/InstallDev
49    $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib
50    $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
51    $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{a,la,so*} $(1)/usr/lib/
52endef
53
54define Package/zimlib/install
55    $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib
56    $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
57    $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
58endef
59
60$(eval $(call BuildPackage,zimlib))
61

Archive Download this file



interactive