e5d003f3f3dfc9e374b916974018022ad8d68852
[git/cygwin-packages/pkgconf.git] / pkgconf.cygport
1 NAME="pkgconf"
2 VERSION=1.6.3
3 RELEASE=1
4 CATEGORY="Devel"
5 SUMMARY="Package compiler and linker metadata tool (alternative to pkg-config)"
6 DESCRIPTION="pkgconf is a program which helps to configure compiler and linker
7 flags for development frameworks. It is an alternative to pkg-config."
8 HOMEPAGE="http://pkgconf.org/"
9 SRC_URI="https://distfiles.dereferenced.org/pkgconf/pkgconf-${VERSION}.tar.xz"
10
11 PKG_NAMES="pkgconf libpkgconf3 libpkgconf-devel pkg-config"
12 pkgconf_CONTENTS="
13 --exclude=libpkgconf.pc
14 etc/pkgconfig/personality.d/*
15 usr/bin/pkgconf.exe
16 usr/lib/pkgconfig/
17 usr/share/doc/pkgconf/
18 usr/share/man/man1/pkgconf.1*
19 usr/share/man/man5/pc.5*
20 usr/share/man/man5/pkgconf-*.5*
21 usr/share/pkgconfig/
22 "
23 pkg_config_REQUIRES=${NAME}
24 pkg_config_OBSOLETES="mingw64-i686-pkg-config mingw64-x86_64-pkg-config"
25 pkg_config_CONTENTS="
26 usr/bin/pkg-config
27 usr/bin/*-*-*-pkg-config
28 usr/share/aclocal/pkg.m4
29 usr/share/man/man1/pkg-config.1*
30 usr/share/man/man7/pkg.m4.7*
31 "
32 libpkgconf3_CATEGORY="Libs"
33 libpkgconf3_SUMMARY="pkgconf library implemenation"
34 libpkgconf3_DESCRIPTION="libpkgconf is a library which provides access to most
35 of pkgconf functionality, to allow other tooling such as compilers and IDEs to
36 discover and use frameworks configured by pkgconf."
37 libpkgconf3_CONTENTS="usr/bin/cygpkgconf-3.dll"
38 libpkgconf_devel_CATEGORY="Libs"
39 libpkgconf_devel_SUMMARY=${libpkgconf2_SUMMARY}
40 libpkgconf_devel_DESCRIPTION=${libpkgconf2_DESCRIPTION}
41 libpkgconf_devel_CONTENTS="
42 usr/include/pkgconf/
43 usr/lib/libpkgconf.dll.a
44 usr/lib/pkgconfig/libpkgconf.pc
45 "
46 pkgconf_debuginfo_OBSOLETES="pkg-config-debuginfo mingw64-i686-pkg-config-debuginfo mingw64-x86_64-pkg-config-debuginfo"
47
48 DIFF_EXCLUDES="test_env.sh"
49
50 CYGCONF_ARGS="
51 --with-personality-dir=/etc/pkgconfig/personality.d
52 --with-pkg-config-dir=/usr/lib/pkgconfig:/usr/share/pkgconfig
53 --with-system-includedir=/usr/include
54 --with-system-libdir=/usr/lib
55 ac_cv_func_cygwin_conv_path=no
56 "
57
58 src_install() {
59 cd ${B}
60 cyginstall
61
62 keepdir /usr/{lib,share}/pkgconfig
63 dosym pkgconf.exe /usr/bin/pkg-config
64 dosym pkgconf.1 /usr/share/man/man1/pkg-config.1
65
66 dosym pkgconf /usr/bin/${ARCH}-pc-cygwin-pkg-config
67
68 dodir /etc/pkgconfig/personality.d
69 for mgw in i686-w64-mingw32 x86_64-w64-mingw32
70 do
71 cat > ${D}/etc/pkgconfig/personality.d/${mgw}.personality <<_EOF
72 Triplet: ${mgw}
73 SysrootDir: /usr/${mgw}/sys-root
74 DefaultSearchPaths: /usr/${mgw}/sys-root/mingw/lib/pkgconfig:/usr/${mgw}/sys-root/mingw/share/pkgconfig:/usr/share/pkgconfig
75 SystemIncludePaths: /usr/${mgw}/sys-root/mingw/include
76 SystemLibraryPaths: /usr/${mgw}/sys-root/mingw/lib
77 _EOF
78 dosym pkgconf /usr/bin/${mgw}-pkg-config
79 done
80 }
This page took 0.059033 seconds and 6 git commands to generate.