1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= argp-standalone
7 SDESC[standard]= Arguments parsing functions from GLIBC
8 HOMEPAGE= https://github.com/argp-standalone/argp-standalone/
12 SITES[main]= GITHUB/argp-standalone:argp-standalone:1.5.0
13 DISTFILE[1]= generated:main
15 SPKGS[standard]= single
17 OPTIONS_AVAILABLE= none
18 OPTIONS_STANDARD= none
24 LICENSE= LGPL21+:single
25 LICENSE_TERMS= single:{{WRKDIR}}/TERMS
26 LICENSE_FILE= LGPL21+:stock
27 LICENSE_AWK= TERMS:"_ARGP_H"
28 LICENSE_SOURCE= TERMS:{{WRKSRC}}/argp.h
31 FPC_EQUIVALENT= devel/argp-standalone
32 MESON_ARGS= -Ddefault_library=both
35 ${INSTALL_DATA} ${WRKSRC}/argp.h ${STAGEDIR}${PREFIX}/include
37 [FILE:103:descriptions/desc.single]
38 It is standalone version of argp - part of glibc library.
39 It was separated off glibc by Niels Mueller.
43 c29eae929dfebd575c38174f2c8c315766092cec99a8f987569d0cad3c6d64f6 65889 argp-standalone-argp-standalone-1.5.0.tar.gz
46 [FILE:75:manifests/plist.single]
55 [FILE:1500:patches/patch-meson.build]
56 From e4b42480f6fd63a117e1d8a3d90fb69434133c28 Mon Sep 17 00:00:00 2001
57 From: Daniel Engberg <daniel.engberg.lists@pyret.net>
58 Date: Thu, 5 May 2022 08:21:43 +0200
59 Subject: [PATCH] Allow both static and shared builds using Meson on non
62 Allow builds to be both or either static and shared instead of
63 hardcoding static and create symlinks for shared library as used
64 in multiple distributions
66 meson.build | 26 +++++++++++++++++++++-----
67 1 file changed, 21 insertions(+), 5 deletions(-)
71 @@ -17,6 +17,11 @@ conf_data = configuration_data()
73 cc = meson.get_compiler('c')
75 +if host_machine.system() != 'windows'
77 + libversion = '0.0.0'
80 conf_data.set10('HAVE_CONFIG_H', true)
81 conf_data.set10('HAVE_ALLOCA_H', cc.check_header('alloca.h'))
83 @@ -68,12 +73,23 @@ if conf_data.get('HAVE_MEMPCPY') == 0
84 argp_source += files(['mempcpy.c'])
87 -argp_library = static_library('argp',
89 - include_directories : '.',
90 - dependencies : deps,
92 +if host_machine.system() != 'windows'
93 + argp_library = library('argp',
95 + include_directories : '.',
96 + soversion: soversion,
97 + version: libversion,
98 + dependencies : deps,
102 + argp_library = static_library('argp',
104 + include_directories : '.',
105 + dependencies : deps,
110 argp_dep = declare_dependency(link_with : argp_library,
111 include_directories : '.')