blob: 2eecc1942334da9a640487a7bd2f3909a1e7b440 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#
## Copyright (C) 2016 CZ.NIC z.s.p.o. (http://www.nic.cz/)
#
## This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
# #
#
include $(TOPDIR)/rules.mk
PKG_NAME:=test-curl
PKG_VERSION:=11
PKG_RELEASE:=1
PKG_MAINTAINER:=Karel Koci
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
include $(INCLUDE_DIR)/package.mk
define Package/test-curl
TITLE:=test-curl
DEPENDS:=+libcurl +libevent2
endef
define Build/Compile
cp -rf ./test $(PKG_BUILD_DIR)/
cd $(PKG_BUILD_DIR)/test && ./configure
$(MAKE_VARS) $(MAKE) -C $(PKG_BUILD_DIR)/test $(MAKE_FLAGS)
endef
define Package/test-curl/install
$(INSTALL_DIR) $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/test/test $(1)/usr/bin/test-curl
endef
$(eval $(call BuildPackage,test-curl))
|