xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-extended/rpcsvc-proto/rpcsvc-proto.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# Copyright (C) 2018 Khem Raj <raj.khem@gmail.com>
2*4882a593Smuzhiyun# Released under the MIT license (see COPYING.MIT for the terms)
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunSUMMARY = "rpcsvc protocol definitions from glibc"
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunDESCRIPTION = "This package contains rpcsvc proto.x files from glibc, which are\
7*4882a593Smuzhiyunmissing in libtirpc. Additional it contains rpcgen, which is needed\
8*4882a593Smuzhiyunto create header files and sources from protocol files.\
9*4882a593SmuzhiyunThis package is only needed, if glibc is installed without the\
10*4882a593Smuzhiyundeprecated sunrpc functionality and libtirpc should replace it."
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunHOMEPAGE = "https://github.com/thkukuk/rpcsvc-proto"
13*4882a593SmuzhiyunLICENSE = "BSD-3-Clause"
14*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=0daaf958d5531ab86169ec6e275e1517"
15*4882a593SmuzhiyunSECTION = "libs"
16*4882a593SmuzhiyunDEPENDS += "rpcsvc-proto-native"
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunPV = "1.4.3"
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunSRCREV = "71e0a12c04d130a78674ac6309eefffa6ecee612"
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunSRC_URI = "git://github.com/thkukuk/${BPN};branch=master;protocol=https \
23*4882a593Smuzhiyun           file://0001-Use-cross-compiled-rpcgen.patch \
24*4882a593Smuzhiyun          "
25*4882a593Smuzhiyun
26*4882a593SmuzhiyunS = "${WORKDIR}/git"
27*4882a593Smuzhiyun
28*4882a593Smuzhiyuninherit autotools gettext
29*4882a593Smuzhiyun
30*4882a593SmuzhiyunEXTRA_OEMAKE:class-native = " -C rpcgen"
31*4882a593Smuzhiyun
32*4882a593Smuzhiyundo_configure:prepend() {
33*4882a593Smuzhiyun	touch ${S}/ABOUT-NLS
34*4882a593Smuzhiyun}
35*4882a593Smuzhiyun
36*4882a593Smuzhiyundo_install:append() {
37*4882a593Smuzhiyun	# They come from quota recipe
38*4882a593Smuzhiyun	rm -rf ${D}${includedir}/rpcsvc/rquota.[hx]
39*4882a593Smuzhiyun}
40*4882a593Smuzhiyun
41*4882a593SmuzhiyunBBCLASSEXTEND += "native nativesdk"
42