xref: /netbsd-src/external/mit/libuv/mkpc (revision de5c94c5a30ef0a95f4b76bc8acc9490abbf52ff)
1*de5c94c5Schristos#!/bin/sh
2*de5c94c5Schristos#	$NetBSD: mkpc,v 1.1 2020/05/24 19:28:31 christos Exp $
3*de5c94c5Schristos
4*de5c94c5Schristosset +x
5*de5c94c5Schristosgetversion() {
6*de5c94c5Schristos	(echo '#include "uv/version.h"';
7*de5c94c5Schristos	    echo UV_VERSION_MAJOR.UV_VERSION_MINOR.UV_VERSION_PATCH) |
8*de5c94c5Schristos	    eval "$CPP $CPPFLAGS" -I$1 | grep -v '#' | tr -d ' '
9*de5c94c5Schristos}
10*de5c94c5SchristosVERSION="$(getversion $1)"
11*de5c94c5Schristosecho ${VERSION} 1>&2
12*de5c94c5Schristos
13*de5c94c5Schristoscat << EOF | sed -e s/@VERSION@/${VERSION}/
14*de5c94c5Schristos# \$NetBSD: mkpc,v 1.1 2020/05/24 19:28:31 christos Exp $
15*de5c94c5Schristosprefix=/usr
16*de5c94c5Schristosexec_prefix=/usr
17*de5c94c5Schristoslibdir=/usr/lib
18*de5c94c5Schristosincludedir=/usr/include
19*de5c94c5Schristos
20*de5c94c5SchristosName: libuv
21*de5c94c5SchristosVersion: @VERSION@
22*de5c94c5SchristosDescription: multi-platform support library with a focus on asynchronous I/O.
23*de5c94c5SchristosURL: http://libuv.org/
24*de5c94c5Schristos
25*de5c94c5SchristosLibs: -luv -lkvm  
26*de5c94c5SchristosCflags:
27*de5c94c5SchristosEOF
28