1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Library providing Git core methods
8 HOMEPAGE= https://libgit2.github.com/
9 CONTACT= John_Marino[draco@marino.st]
12 SITES[main]= GITHUB/libgit2:libgit2:v1.0.0
13 DISTFILE[1]= generated:main
15 SPKGS[standard]= single
17 OPTIONS_AVAILABLE= none
18 OPTIONS_STANDARD= none
20 BUILDRUN_DEPENDS= libssh2:single:standard
23 USES= cmake pkgconfig python:build ssl zlib solaris-funcs
25 LICENSE= CUSTOM1:single
26 LICENSE_NAME= CUSTOM1:"libgit2 License - GPLv2 with linking exception"
27 LICENSE_FILE= CUSTOM1:{{WRKSRC}}/COPYING
30 FPC_EQUIVALENT= devel/libgit2
31 SOL_FUNCTIONS= mkdtemp:tests/clar/sandbox.h
33 PLIST_SUB= SOVERSION=1.0.0
36 CMAKE_ARGS= -DUSE_SSH=ON
41 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgit2.${LIBEXT}
43 [FILE:615:descriptions/desc.single]
44 libgit2 is a portable, pure C implementation of the Git core methods
45 provided as a re-entrant linkable library with a solid API, allowing you
46 to write native speed custom Git applications in any language which
50 Linux, BSD, Mac OS X, iOS, Amiga, MinGW and fully native Windows.
53 Builds out of the box with no dependencies. Works in embedded devices
57 Written with portability in mind. Builds in GCC, Clang and MSVC.
60 GPLv2 with Linking Exception. Link with open and proprietary software,
65 6a1fa16a7f6335ce8b2630fbdbb5e57c4027929ebc56fcd1ac55edb141b409b4 5312324 libgit2-libgit2-1.0.0.tar.gz
68 [FILE:1057:manifests/plist.single]
160 libgit2.so.%%SOMAJOR%%
161 libgit2.so.%%SOVERSION%%
162 lib/pkgconfig/libgit2.pc
165 [FILE:446:patches/patch-CMakeLists.txt]
166 --- CMakeLists.txt.orig 2020-04-01 13:49:12 UTC
168 @@ -212,7 +212,7 @@ ELSE ()
169 ENABLE_WARNINGS(extra)
171 IF (CMAKE_SYSTEM_NAME MATCHES "(Solaris|SunOS)")
172 - SET(CMAKE_C_FLAGS "-D_POSIX_C_SOURCE=200112L -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS ${CMAKE_C_FLAGS}")
173 + SET(CMAKE_C_FLAGS "-D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS ${CMAKE_C_FLAGS}")
176 SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D_DEBUG -O0")
179 [FILE:347:patches/patch-deps_ntlmclient_compat.h]
180 --- deps/ntlmclient/compat.h.orig 2020-04-01 13:49:12 UTC
181 +++ deps/ntlmclient/compat.h
183 /* See man page htobe64(3) */
185 # define htonll htobe64
186 -#elif defined(__FreeBSD__)
187 +#elif defined(__FreeBSD__) || defined(__DragonFly__)
188 /* See man page bwaps64(9) */
189 # include <sys/endian.h>
190 # define htonll htobe64
193 [FILE:364:patches/patch-src_unix_posix.h]
194 --- src/unix/posix.h.orig 2020-04-01 13:49:12 UTC
196 @@ -85,6 +85,11 @@ GIT_INLINE(int) p_futimes(int f, const s
197 s[1].tv_nsec = t[1].tv_usec * 1000;
198 return futimens(f, s);
200 +#elif defined __sun__
201 +GIT_INLINE(int) p_futimes(int f, const struct p_timeval t[2])
203 + return futimesat(f, NULL, t);
206 # define p_futimes futimes