2009-09-21 06:12:36 +00:00
|
|
|
#
|
2012-03-01 04:04:41 +00:00
|
|
|
# Copyright (C) 2009-2012 OpenWrt.org
|
2009-09-21 06:12:36 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=nzbget
|
2010-05-09 09:07:55 +00:00
|
|
|
PKG_VERSION:=0.7.0
|
2011-11-16 20:02:41 +00:00
|
|
|
PKG_RELEASE:=3
|
2009-09-21 06:12:36 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/nzbget
|
2010-05-09 09:07:55 +00:00
|
|
|
PKG_MD5SUM:=27971846aba75f5e312d80dce7edbc5d
|
2009-09-21 06:12:36 +00:00
|
|
|
|
|
|
|
PKG_FIXUP:=libtool
|
2012-03-01 04:04:41 +00:00
|
|
|
PKG_INSTALL:=1
|
2009-09-21 06:12:36 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2012-03-01 04:04:41 +00:00
|
|
|
TARGET_LDFLAGS+=-Wl,-rpath-link="$(STAGING_DIR)/usr/lib" -lcrypto -lsigc-2.0
|
2009-09-21 06:12:36 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
|
|
|
define Package/nzbget
|
2010-03-30 16:39:15 +00:00
|
|
|
SUBMENU:=NNTP
|
2009-09-21 06:12:36 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2010-11-03 18:20:34 +00:00
|
|
|
DEPENDS:=+libxml2 +libpar2 +libopenssl +libpthread +libncurses
|
2009-09-21 06:12:36 +00:00
|
|
|
URL:=http://nzbget.sourceforge.net/
|
2010-11-03 18:20:34 +00:00
|
|
|
TITLE:=Binary newsgrabber for nzb-files
|
2010-03-30 16:39:15 +00:00
|
|
|
MAINTAINER:=Artur Wronowski <arteqw@gmail.com>
|
2009-09-21 06:12:36 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/nzbget/description
|
|
|
|
A command-line client/server based binary newsgrabber for nzb-files.
|
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--disable-nls \
|
|
|
|
--with-tlslib=OpenSSL \
|
|
|
|
--with-libpar2-includes=$(STAGING_DIR)/usr/include/libpar2 \
|
|
|
|
--with-libpar2-libraries=$(STAGING_DIR)/usr/lib \
|
|
|
|
--with-libsigc-includes=$(STAGING_DIR)/usr/include/sigc++-2.0 \
|
|
|
|
--with-libsigc-libraries=$(STAGING_DIR)/usr/lib \
|
|
|
|
--with-openssl-includes=$(STAGING_DIR)/usr/include \
|
|
|
|
--with-openssl-libraries=$(STAGING_DIR)/usr/lib \
|
2010-11-03 18:20:34 +00:00
|
|
|
--with-libcurses-includes=$(STAGING_DIR)/usr/include \
|
|
|
|
--with-libcurses-libraries=$(STAGING_DIR)/usr/lib \
|
2009-09-21 06:12:36 +00:00
|
|
|
, \
|
|
|
|
PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig"
|
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
ac_cv_header_regex_h=no \
|
2012-03-01 04:04:41 +00:00
|
|
|
CPPFLAGS="-I$(STAGING_DIR)/usr/include/libxml2 $$$$CPPFLAGS"
|
2009-09-21 06:12:36 +00:00
|
|
|
|
|
|
|
define Package/nzbget/install
|
2012-03-01 04:04:41 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nzbget $(1)/usr/bin/
|
2009-10-05 18:13:14 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/nzbget.conf.example $(1)/etc/nzbget.conf
|
2009-09-21 06:12:36 +00:00
|
|
|
endef
|
|
|
|
|
2011-11-16 20:02:41 +00:00
|
|
|
define Package/nzbget/conffiles
|
|
|
|
/etc/nzbget.conf
|
|
|
|
endef
|
|
|
|
|
2009-09-21 06:12:36 +00:00
|
|
|
$(eval $(call BuildPackage,nzbget))
|