[package] librpc: do not build if external or native toolchains are used
[openwrt.git] / package / librpc / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=librpc
4 PKG_VERSION:=0.9.32-rc2
5 PKG_RELEASE=$(PKG_SOURCE_VERSION)
6
7 PKG_SOURCE_PROTO:=git
8 PKG_SOURCE_URL:=git://nbd.name/uclibc-rpc.git
9 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
10 PKG_SOURCE_VERSION:=0a2179bbc0844928f2a0ec01dba93d9b5d6d41a7
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
12
13 ifndef CONFIG_NATIVE_TOOLCHAIN
14 ifndef CONFIG_EXTERNAL_TOOLCHAIN
15 ifdef CONFIG_USE_UCLIBC
16 BUILD_LIBRPC=1
17 endif
18 endif
19 endif
20
21 ifdef BUILD_LIBRPC
22 CMAKE_INSTALL:=1
23 endif
24
25 include $(INCLUDE_DIR)/package.mk
26 include $(INCLUDE_DIR)/cmake.mk
27
28 define Package/librpc
29 SECTION:=libs
30 CATEGORY:=Libraries
31 TITLE:=uClibc RPC library
32 MDEPENDS:=@USE_UCLIBC
33 endef
34
35 ifdef BUILD_LIBRPC
36 define Package/librpc/install
37 $(INSTALL_DIR) $(1)/lib/
38 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/librpc.so $(1)/lib/
39 endef
40 else
41 define Build/Prepare
42 endef
43
44 define Build/Configure
45 endef
46
47 define Build/Compile
48 endef
49
50 define Build/Install
51 endef
52
53 define Package/librpc/install
54 true
55 endef
56 endif
57
58 $(eval $(call BuildPackage,librpc))
This page took 0.044334 seconds and 5 git commands to generate.