1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-19 23:28:39 +02:00
openwrt-packages/libs/rpcsvc-proto/Makefile
Rosen Penev 5e7898fd33
rpcsvc-proto: update to 1.4.1
Switched to standard tarball. Allows to get rid of build hacks. Also
simplifies the Makefile a bit.

Add PKG_BUILD_PARALLEL for faster compilation.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-03-27 20:03:26 -07:00

52 lines
1.4 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=rpcsvc-proto
PKG_VERSION:=1.4.1
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://github.com/thkukuk/rpcsvc-proto/releases/download/v$(PKG_VERSION)
PKG_HASH:=9429e143bb8dd33d34bf0663f571d4d4a1103e1afd7c49791b367b7ae1ef7f35
PKG_MAINTAINER:=Andy Walsh <andy.walsh44+github@gmail.com>
PKG_LICENSE:=BSD-3-clause
PKG_LICENSE_FILES:=COPYING
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
HOST_BUILD_DEPENDS:=gettext-full/host
PKG_BUILD_DEPENDS:=rpcsvc-proto/host
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk
include $(INCLUDE_DIR)/host-build.mk
define Package/rpcsvc-proto
SECTION:=libs
CATEGORY:=Libraries
TITLE:=rpcgen and rpcsvc proto.x files from glibc
URL:=https://github.com/thkukuk/rpcsvc-proto
DEPENDS:=$(INTL_DEPENDS)
BUILDONLY:=1
endef
define Package/rpcsvc-proto/description
This package contains rpcsvc proto.x files from glibc, which are missing in libtirpc.
Additional it contains rpcgen, which is needed to create header files and sources from protocol files.
endef
# need to use host tool
define Build/Prepare
$(Build/Prepare/Default)
$(SED) 's,.*/rpcgen/rpcgen,\t$(STAGING_DIR_HOSTPKG)/bin/rpcgen,' $(PKG_BUILD_DIR)/rpcsvc/Makefile.am
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/rpcsvc $(1)/usr/include/
endef
$(eval $(call HostBuild))
$(eval $(call BuildPackage,rpcsvc-proto))