[package] add nzbget (#5805)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@17656 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
bd891a7b51
commit
aa8bd6a7eb
67
net/nzbget/Makefile
Normal file
67
net/nzbget/Makefile
Normal file
@ -0,0 +1,67 @@
|
||||
#
|
||||
# Copyright (C) 2009 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:=nzbget
|
||||
PKG_VERSION:=0.6.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=@SF/nzbget
|
||||
PKG_MD5SUM:=eb95b3930abffb570e37af8d284c1f9d
|
||||
|
||||
PKG_FIXUP:=libtool
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
TARGET_LDFLAGS+=-Wl,-rpath-link="$(STAGING_DIR)/usr/lib"
|
||||
TARGET_CFLAGS += $(FPIC)
|
||||
|
||||
define Package/nzbget
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=+libxml2 +libpar2 +libopenssl +libpthread
|
||||
URL:=http://nzbget.sourceforge.net/
|
||||
TITLE:=Binary newsgrabber
|
||||
endef
|
||||
|
||||
define Package/nzbget/description
|
||||
A command-line client/server based binary newsgrabber for nzb-files.
|
||||
endef
|
||||
|
||||
CONFIGURE_ARGS += \
|
||||
--disable-static \
|
||||
--disable-nls \
|
||||
--disable-curses \
|
||||
--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 \
|
||||
, \
|
||||
PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig"
|
||||
|
||||
CONFIGURE_VARS += \
|
||||
ac_cv_header_regex_h=no \
|
||||
CPPFLAGS="-I$(STAGING_DIR)/usr/include/libxml2 $$$$CPPFLAGS"
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||
install all
|
||||
endef
|
||||
|
||||
define Package/nzbget/install
|
||||
$(INSTALL_DIR) $(1)/usr/sbin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/nzbget $(1)/usr/sbin/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,nzbget))
|
Loading…
x
Reference in New Issue
Block a user