svn commit: r411800 - in head/devel: . libcrossguid libcrossguid/files
Dmitry Marakasov
amdmi3 at FreeBSD.org
Thu Mar 24 16:14:29 UTC 2016
Author: amdmi3
Date: Thu Mar 24 16:14:27 2016
New Revision: 411800
URL: https://svnweb.freebsd.org/changeset/ports/411800
Log:
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 at gmail.com
Added:
head/devel/libcrossguid/
head/devel/libcrossguid/Makefile (contents, props changed)
head/devel/libcrossguid/distinfo (contents, props changed)
head/devel/libcrossguid/files/
head/devel/libcrossguid/files/libcrossguid.pc.in (contents, props changed)
head/devel/libcrossguid/pkg-descr (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Thu Mar 24 15:56:07 2016 (r411799)
+++ head/devel/Makefile Thu Mar 24 16:14:27 2016 (r411800)
@@ -1150,6 +1150,7 @@
SUBDIR += libconcurrent
SUBDIR += libconfig
SUBDIR += libconfuse
+ SUBDIR += libcrossguid
SUBDIR += libcutl
SUBDIR += libcwd
SUBDIR += libcxxrt
Added: head/devel/libcrossguid/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libcrossguid/Makefile Thu Mar 24 16:14:27 2016 (r411800)
@@ -0,0 +1,37 @@
+# $FreeBSD$
+
+PORTNAME= libcrossguid
+PORTVERSION= 20150803
+CATEGORIES= devel
+
+MAINTAINER= mickael.maillot at 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>
Added: head/devel/libcrossguid/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libcrossguid/distinfo Thu Mar 24 16:14:27 2016 (r411800)
@@ -0,0 +1,2 @@
+SHA256 (graeme-hill-crossguid-20150803-8f399e8_GH0.tar.gz) = 929397adfe57b945c5153e09f1e0bc1763300e2b30578ec7ed6facc2821d7f6f
+SIZE (graeme-hill-crossguid-20150803-8f399e8_GH0.tar.gz) = 46576
Added: head/devel/libcrossguid/files/libcrossguid.pc.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libcrossguid/files/libcrossguid.pc.in Thu Mar 24 16:14:27 2016 (r411800)
@@ -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}
+
Added: head/devel/libcrossguid/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/libcrossguid/pkg-descr Thu Mar 24 16:14:27 2016 (r411800)
@@ -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
More information about the svn-ports-all
mailing list