1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-01 19:47:34 +02:00
openwrt-packages/zimreader/Makefile

48 lines
1.1 KiB
Makefile
Raw Normal View History

2009-10-05 01:56:46 +03:00
#
# 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
2011-09-19 09:30:19 +03:00
PKG_REV:=362
2009-10-05 01:56:46 +03:00
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)/
2009-10-06 15:31:48 +03:00
PKG_BUILD_DEPENDS:=tntnet/host
2009-10-05 01:56:46 +03:00
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
2011-09-19 09:30:19 +03:00
DEPENDS:=+zimlib +tntnet +libpthread
2009-10-05 01:56:46 +03:00
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))