Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions recipes/portable-xdr/build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@echo off

:: Configure
cmake %CMAKE_ARGS% ^
-G Ninja ^
-DCMAKE_BUILD_TYPE=Release ^
-DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^
-DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 ^
-S "%SRC_DIR%" ^
-B build || exit /b 1

:: Build & Install
cmake --build build --target install || exit /b 1
14 changes: 14 additions & 0 deletions recipes/portable-xdr/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

# Configure
cmake ${CMAKE_ARGS} \
-G Ninja \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_PREFIX_PATH=${PREFIX} \
-D CMAKE_INSTALL_PREFIX=${PREFIX} \
-D CMAKE_POLICY_VERSION_MINIMUM=3.5 \
-S ${SRC_DIR} \
-B build

# Build & Install
cmake --build build --target install
52 changes: 52 additions & 0 deletions recipes/portable-xdr/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
context:
name: portable-xdr
version: "4.9.1"

package:
name: ${{ name|lower }}
version: ${{ version }}

source:
url: https://people.redhat.com/~rjones/portablexdr/files/portablexdr-${{ version }}.tar.gz
sha256: 5cf4bdd153cf4d44eaf10b725f451d0cfadc070b4b9a9ccfb64094b8f78de72c

build:
number: 0

requirements:
build:
- ${{ compiler("c") }}
- ${{ compiler("cxx") }}
- ${{ stdlib("c") }}
- cmake
- ninja
run_exports:
- ${{ pin_subpackage("portable-xdr", lower_bound="x.x.x", upper_bound="x.x.x") }}

tests:
- package_contents:
lib:
- xdr
include:
- rpc/rpc.h
- rpc/types.h
- rpc/config.h

about:
homepage: https://people.redhat.com/~rjones/portablexdr/
summary: PortableXDR - external data representation (XDR) library
description: |
Portable XDR is an XDR (RFC 4506) library for Unix, Linux, Windows and Mac OS X.
The goals of this library are very narrowly defined at the moment:

1. Support the XDR functions required to build libvirt.
2. Compile, install and use under modern versions of Windows, using MinGW compiler and MSys toolchain; and Mac OS X ≥ 10.3 using gcc.
3. Supply binaries and installers for Windows and Mac users.
4. Remove all Sun code because of questionable license.
license: LGPL-2.0-or-later
license_file: COPYING
repository: http://git.annexia.org/?p=portablexdr.git

extra:
recipe-maintainers:
- munechika-koyo
Loading