From 0e8f44acceb2ca4386df864473ad83b825cba634 Mon Sep 17 00:00:00 2001 From: Mirko Vogt Date: Mon, 5 Oct 2009 00:56:46 +0200 Subject: [PATCH] add the final --- zimreader/Makefile | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 zimreader/Makefile diff --git a/zimreader/Makefile b/zimreader/Makefile new file mode 100644 index 0000000..7d0decd --- /dev/null +++ b/zimreader/Makefile @@ -0,0 +1,45 @@ +# +# Copyright (C) 2008 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:=zimreader +PKG_REV:=239 +PKG_VERSION:=r$(PKG_REV) +PKG_RELEASE:=1 +PKG_SOURCE_PROTO:=svn +PKG_SOURCE_VERSION:=$(PKG_REV) +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://svn.openzim.org/svnroot/trunk/zimreader +PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/ + +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +TARGET_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib + +define Package/zimreader + TITLE:=zimreader + SECTION:=utils + CATEGORY:=Utilities + DEPENDS:=+zimlib +tntnet +libpthread + URL:=http://openzim.org +endef + +define Build/Configure + ( cd $(PKG_BUILD_DIR); ./autogen.sh ); + $(call Build/Configure/Default) +endef + +define Package/zimreader/install + $(INSTALL_DIR) $(1)/usr/bin + $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,zimreader))