CrossGuid is a minimal, cross platform, C++ GUID library.
It uses the best native GUID/UUID generator on the given platform and had a generic class for parsing, stringifying, and comparing IDs. WWW: https://github.com/graeme-hill/crossguid PR: 208113 Submitted by: mickael.maillot@gmail.com
This commit is contained in:
parent
dcf4604461
commit
92271c7c50
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=411800
5 changed files with 55 additions and 0 deletions
|
@ -1150,6 +1150,7 @@
|
|||
SUBDIR += libconcurrent
|
||||
SUBDIR += libconfig
|
||||
SUBDIR += libconfuse
|
||||
SUBDIR += libcrossguid
|
||||
SUBDIR += libcutl
|
||||
SUBDIR += libcwd
|
||||
SUBDIR += libcxxrt
|
||||
|
|
37
devel/libcrossguid/Makefile
Normal file
37
devel/libcrossguid/Makefile
Normal file
|
@ -0,0 +1,37 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= libcrossguid
|
||||
PORTVERSION= 20150803
|
||||
CATEGORIES= devel
|
||||
|
||||
MAINTAINER= mickael.maillot@gmail.com
|
||||
COMMENT= Minimal and cross platform C++ GUID library
|
||||
|
||||
LICENSE= MIT
|
||||
LICENSE_FILES= ${WRKSRC}/LICENSE
|
||||
|
||||
LIB_DEPENDS= libuuid.so:${PORTSDIR}/misc/e2fsprogs-libuuid
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= graeme-hill
|
||||
GH_PROJECT= crossguid
|
||||
GH_TAGNAME= 8f399e8
|
||||
|
||||
USES= compiler:c++11-lang pkgconfig
|
||||
USE_CXXSTD= c++11
|
||||
CXXFLAGS+= `pkg-config --cflags uuid`
|
||||
PLIST_FILES= include/guid.h lib/libcrossguid.so libdata/pkgconfig/libcrossguid.pc
|
||||
|
||||
post-patch:
|
||||
@${SED} -e 's|%PREFIX%|${PREFIX}|g ; s|%VERSION%|${PORTVERSION}|g' \
|
||||
${FILESDIR}/libcrossguid.pc.in > ${WRKDIR}/libcrossguid.pc
|
||||
|
||||
do-build:
|
||||
@cd ${WRKSRC} && ${CXX} ${CXXFLAGS} -shared -fPIC guid.cpp -o libcrossguid.so -DGUID_LIBUUID
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/guid.h ${STAGEDIR}${PREFIX}/include
|
||||
${INSTALL_LIB} ${WRKSRC}/libcrossguid.so ${STAGEDIR}${PREFIX}/lib
|
||||
${INSTALL_DATA} ${WRKDIR}/libcrossguid.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/libcrossguid/distinfo
Normal file
2
devel/libcrossguid/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (graeme-hill-crossguid-20150803-8f399e8_GH0.tar.gz) = 929397adfe57b945c5153e09f1e0bc1763300e2b30578ec7ed6facc2821d7f6f
|
||||
SIZE (graeme-hill-crossguid-20150803-8f399e8_GH0.tar.gz) = 46576
|
10
devel/libcrossguid/files/libcrossguid.pc.in
Normal file
10
devel/libcrossguid/files/libcrossguid.pc.in
Normal file
|
@ -0,0 +1,10 @@
|
|||
prefix=%PREFIX%
|
||||
libdir=${prefix}/lib
|
||||
includedir=${prefix}/include
|
||||
|
||||
Name: libguid
|
||||
Description: minimal and cross platform C++ GUID library
|
||||
Version: %VERSION%
|
||||
Libs: -L${libdir} -lguid
|
||||
Cflags: -I${includedir}
|
||||
|
5
devel/libcrossguid/pkg-descr
Normal file
5
devel/libcrossguid/pkg-descr
Normal file
|
@ -0,0 +1,5 @@
|
|||
CrossGuid is a minimal, cross platform, C++ GUID library.
|
||||
It uses the best native GUID/UUID generator on the given platform
|
||||
and had a generic class for parsing, stringifying, and comparing IDs.
|
||||
|
||||
WWW: https://github.com/graeme-hill/crossguid
|
Loading…
Reference in a new issue