Merge pull request #20731 from pprindeville/isc-dhcp-update-4.4.3-P1
[feed/packages.git] / libs / rpcsvc-proto / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=rpcsvc-proto
4 PKG_VERSION:=1.4.3
5 PKG_RELEASE:=2
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
8 PKG_SOURCE_URL:=https://github.com/thkukuk/rpcsvc-proto/releases/download/v$(PKG_VERSION)
9 PKG_HASH:=69315e94430f4e79c74d43422f4a36e6259e97e67e2677b2c7d7060436bd99b1
10
11 PKG_LICENSE:=BSD-3-clause
12 PKG_LICENSE_FILES:=COPYING
13
14 PKG_INSTALL:=1
15 PKG_BUILD_PARALLEL:=1
16 PKG_FIXUP:=autoreconf
17
18 HOST_BUILD_DEPENDS:=gettext-full/host
19 PKG_BUILD_DEPENDS:=rpcsvc-proto/host
20
21 include $(INCLUDE_DIR)/package.mk
22 include $(INCLUDE_DIR)/nls.mk
23 include $(INCLUDE_DIR)/host-build.mk
24
25 define Package/rpcsvc-proto
26 SECTION:=libs
27 CATEGORY:=Libraries
28 TITLE:=rpcgen and rpcsvc proto.x files from glibc
29 URL:=https://github.com/thkukuk/rpcsvc-proto
30 DEPENDS:=$(INTL_DEPENDS)
31 BUILDONLY:=1
32 endef
33
34 define Package/rpcsvc-proto/description
35 This package contains rpcsvc proto.x files from glibc, which are missing in libtirpc.
36 Additional it contains rpcgen, which is needed to create header files and sources from protocol files.
37 endef
38
39 # need to use host tool
40 define Build/Prepare
41 $(Build/Prepare/Default)
42 $(SED) 's,.*/rpcgen/rpcgen,\t$(STAGING_DIR_HOSTPKG)/bin/rpcgen,' $(PKG_BUILD_DIR)/rpcsvc/Makefile.am
43 endef
44
45 define Build/InstallDev
46 $(INSTALL_DIR) $(1)/usr/include
47 $(CP) $(PKG_INSTALL_DIR)/usr/include/rpcsvc $(1)/usr/include/
48 endef
49
50 $(eval $(call HostBuild))
51 $(eval $(call BuildPackage,rpcsvc-proto))