Ravenports generated: 25 Feb 2024 07:00
[ravenports.git] / bucket_04 / ossp-uuid
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               ossp-uuid
4 VERSION=                1.6.2
5 REVISION=               3
6 KEYWORDS=               misc devel
7 VARIANTS=               standard
8 SDESC[standard]=        Tool/Lib for generating Universally Unique IDs
9 HOMEPAGE=               http://www.ossp.org/pkg/lib/uuid/
10 CONTACT=                nobody
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            http://www.mirrorservice.org/sites/ftp.ossp.org/pkg/lib/uuid/
14                         ftp://ftp.ntua.gr/pub/utils/ossp/lib/uuid/
15 DISTFILE[1]=            uuid-1.6.2.tar.gz:main
16 DF_INDEX=               1
17 SPKGS[standard]=        complete
18                         primary
19                         dev
20                         man
21
22 OPTIONS_AVAILABLE=      none
23 OPTIONS_STANDARD=       none
24
25 USES=                   cmake c++:primary mbsdfix
26
27 DISTNAME=               uuid-1.6.2
28
29 LICENSE=                MIT:primary
30 LICENSE_FILE=           MIT:{{WRKDIR}}/LICENSE
31 LICENSE_AWK=            MIT:"^$$"
32 LICENSE_SOURCE=         MIT:{{WRKSRC}}/uuid.c
33 LICENSE_SCHEME=         solo
34
35 FPC_EQUIVALENT=         misc/ossp-uuid
36
37 post-install:
38         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/ossp/lib*.so
39         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/uuid
40
41 pre-configure:
42         # Run gnu configure script to generate config.h
43         (cd ${WRKSRC} && ${SETENV} ${SCRIPTS_ENV} ${SH} configure\
44                 --prefix=${PREFIX} \
45                 --with-cxx \
46                 --includedir=${PREFIX}/include/ossp \
47                 --libdir=${PREFIX}/lib/ossp \
48         )
49
50 post-extract:
51         ${CP} ${FILESDIR}/CMakeLists.txt ${WRKSRC}/
52         ${CP} ${MK_TEMPLATES}/config.sub ${WRKSRC}/config.sub
53         ${CP} ${MK_TEMPLATES}/config.guess ${WRKSRC}/config.guess
54
55 [FILE:385:descriptions/desc.primary]
56 OSSP uuid is a ISO-C and Perl application programming interface (API)
57 and corresponding command line interface (CLI) for the generation of
58 DCE 1.1 and ISO/IEC 11578:1996 compliant Universally Unique Identifiers
59 (UUID). It supports DCE 1.1 variant UUIDs of version 1 (time and node
60 based), version 3 (name based, MD5), version 4 (random number based) and
61 version 5 (name based, SHA-1).
62
63
64 [FILE:96:distinfo]
65 11a615225baa5f8bb686824423f50e4427acd3f70d394765bdff32801f0fd5b0       397048 uuid-1.6.2.tar.gz
66
67
68 [FILE:108:manifests/plist.primary]
69 bin/
70  uuid
71  uuid-config
72 lib/ossp/
73  libuuid++.so.16
74  libuuid++.so.16.0.22
75  libuuid.so.16
76  libuuid.so.16.0.22
77
78
79 [FILE:120:manifests/plist.dev]
80 include/ossp/
81  uuid++.hh
82  uuid.h
83 lib/ossp/
84  libuuid++.a
85  libuuid++.so
86  libuuid.a
87  libuuid.so
88 lib/pkgconfig/ossp-uuid.pc
89
90
91 [FILE:95:manifests/plist.man]
92 share/man/man1/
93  uuid-config.1.gz
94  uuid.1.gz
95 share/man/man3/
96  ossp-uuid++.3.gz
97  ossp-uuid.3.gz
98
99
100 [FILE:473:patches/patch-uuid.pc.in]
101 --- uuid.pc.in.orig     2008-03-07 10:49:59 UTC
102 +++ uuid.pc.in
103 @@ -29,14 +29,14 @@
104  
105  prefix=@prefix@
106  exec_prefix=${prefix}
107 -includedir=${prefix}/include
108 -libdir=${exec_prefix}/lib
109 +includedir=@includedir@
110 +libdir=@libdir@
111  
112  Name: OSSP uuid
113  Description: Universally Unique Identifier (UUID) Library
114  Version: @UUID_VERSION_RAW@
115  URL: http://www.ossp.org/pkg/lib/uuid/
116  Cflags: -I${includedir}
117 -Libs: -L${libdir} -luuid
118 +Libs: -L${libdir} -lossp-uuid
119  Libs.private: @LIBS@
120  
121
122
123 [FILE:2168:files/CMakeLists.txt]
124 cmake_minimum_required(VERSION 3.16)
125 project(ossp-uuid)
126
127 SET(CMAKE_SKIP_BUILD_RPATH  TRUE)
128
129 set (libsrcs
130         ${CMAKE_SOURCE_DIR}/uuid.c
131         ${CMAKE_SOURCE_DIR}/uuid_md5.c
132         ${CMAKE_SOURCE_DIR}/uuid_sha1.c
133         ${CMAKE_SOURCE_DIR}/uuid_prng.c
134         ${CMAKE_SOURCE_DIR}/uuid_mac.c
135         ${CMAKE_SOURCE_DIR}/uuid_time.c
136         ${CMAKE_SOURCE_DIR}/uuid_ui64.c
137         ${CMAKE_SOURCE_DIR}/uuid_ui128.c
138         ${CMAKE_SOURCE_DIR}/uuid_str.c
139 )
140
141 set (xxsrcs ${CMAKE_SOURCE_DIR}/uuid++.cc)
142 set (uuidsrc ${CMAKE_SOURCE_DIR}/uuid_cli.c)
143
144 include_directories(
145         ${CMAKE_SOURCE_DIR}
146         ${CMAKE_CURRENT_BINARY_DIR}
147 )
148
149 add_library(uuid_static ${libsrcs})
150 add_library(uuidxx_static ${libsrcs} ${xxsrcs})
151
152 add_library(uuid SHARED ${libsrcs})
153 add_library(uuid++ SHARED ${libsrcs} ${xxsrcs})
154
155 add_executable(cli_uuid ${uuidsrc})
156
157 target_compile_definitions(uuid_static PUBLIC HAVE_CONFIG_H)
158 target_compile_definitions(uuidxx_static PUBLIC HAVE_CONFIG_H)
159 target_compile_definitions(uuid PUBLIC DHAVE_CONFIG_H)
160 target_compile_definitions(uuid++ PUBLIC HAVE_CONFIG_H)
161 target_compile_definitions(cli_uuid PUBLIC HAVE_CONFIG_H)
162
163 set_target_properties(uuid uuid++ PROPERTIES
164         VERSION   16.0.22
165         SOVERSION 16)
166
167 target_link_libraries(cli_uuid uuid_static)
168
169 # installation
170
171 install(TARGETS uuid uuid++
172         LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/ossp
173 )
174
175 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libuuidxx_static.a
176         RENAME libuuid++.a
177         DESTINATION lib/ossp)
178
179 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libuuid_static.a
180         RENAME libuuid.a
181         DESTINATION lib/ossp)
182
183 install(FILES ${CMAKE_SOURCE_DIR}/uuid.1
184         DESTINATION share/man/man1)
185
186 install(FILES ${CMAKE_SOURCE_DIR}/uuid-config.1
187         DESTINATION share/man/man1)
188
189 install(FILES ${CMAKE_SOURCE_DIR}/uuid++.3
190         RENAME ossp-uuid++.3
191         DESTINATION share/man/man3)
192
193 install(FILES ${CMAKE_SOURCE_DIR}/uuid.3
194         RENAME ossp-uuid.3
195         DESTINATION share/man/man3)
196
197 install(FILES ${CMAKE_SOURCE_DIR}/uuid.pc
198         RENAME ossp-uuid.pc
199         DESTINATION lib/pkgconfig)
200
201 install(FILES ${CMAKE_SOURCE_DIR}/uuid++.hh
202         ${CMAKE_SOURCE_DIR}/uuid.h
203         DESTINATION include/ossp)
204
205 install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/cli_uuid RENAME uuid DESTINATION bin)
206 install(PROGRAMS ${CMAKE_SOURCE_DIR}/uuid-config DESTINATION bin)
207