noddos: Noddos v0.5.0 with mDNS / DNS-SD support
[feed/packages.git] / net / ncp / Makefile
1 #
2 # Copyright (C) 2016 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=ncp
10 PKG_VERSION:=1.2.4
11 PKG_RELEASE:=1
12
13 PKG_LICENSE:=FREE
14 PKG_LICENSE_FILES:=
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_SOURCE_URL:=http://dl.fefe.de/
18 PKG_MD5SUM:=421c4855bd3148b7d0a4342942b4bf13
19
20 PKG_BUILD_DEPENDS:=libowfat
21
22 PKG_MAINTAINER:=Andreas Shimokawa <shimokawa@fsfe.org>
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/ncp
27 SECTION:=net
28 CATEGORY:=Network
29 TITLE:=copy files over the network
30 URL:=https://www.fefe.de/ncp/
31 endef
32
33 define Package/ncp/description
34 copy files over the network
35 endef
36
37 define Build/Compile
38 cd $(PKG_BUILD_DIR); \
39 $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -I$(STAGING_DIR)/usr/include/libowfat ncp.c -lowfat -o ncp
40 endef
41
42 define Package/ncp/install
43 $(INSTALL_DIR) $(1)/usr/bin
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ncp $(1)/usr/bin/
45 ln -sf ncp $(1)/usr/bin/npush
46 ln -sf ncp $(1)/usr/bin/npoll
47 endef
48
49 $(eval $(call BuildPackage,ncp))