View | Details | Raw Unified | Return to bug 253531 | Differences between
and this patch

Collapse All | Expand All

(-)b/devel/libcrossguid/Makefile (-27 / +6 lines)
Lines 1-8 Link Here
1
# $FreeBSD$
1
# $FreeBSD$
2
2
3
PORTNAME=	libcrossguid
3
PORTNAME=	libcrossguid
4
PORTVERSION=	20150803
4
DISTVERSIONPREFIX=	v
5
PORTREVISION=	6
5
DISTVERSION=	0.2.2-52
6
DISTVERSIONSUFFIX=	-gca1bf4b
7
PORTEPOCH=	1
6
CATEGORIES=	devel
8
CATEGORIES=	devel
7
9
8
MAINTAINER=	mickael.maillot@gmail.com
10
MAINTAINER=	mickael.maillot@gmail.com
Lines 16-48 LIB_DEPENDS= libuuid.so:misc/e2fsprogs-libuuid Link Here
16
USE_GITHUB=	yes
18
USE_GITHUB=	yes
17
GH_ACCOUNT=	graeme-hill
19
GH_ACCOUNT=	graeme-hill
18
GH_PROJECT=	crossguid
20
GH_PROJECT=	crossguid
19
GH_TAGNAME=	8f399e8
20
21
21
USES=		compiler:c++11-lang pkgconfig
22
USES=		cmake compiler:c++11-lang pkgconfig
22
USE_CXXSTD=	c++11
23
CXXFLAGS+=	`pkg-config --cflags uuid`
24
USE_LDCONFIG=	yes
23
USE_LDCONFIG=	yes
25
24
26
PLIST_FILES=	include/guid.h \
25
CMAKE_ON=	BUILD_SHARED_LIBS
27
		lib/libcrossguid.so \
28
		lib/libcrossguid.so.0 \
29
		libdata/pkgconfig/libcrossguid.pc
30
31
post-patch:
32
	@${SED} -e 's|%PREFIX%|${PREFIX}|' -e 's|%VERSION%|${PORTVERSION}|' \
33
		${FILESDIR}/libcrossguid.pc.in > ${WRKDIR}/libcrossguid.pc
34
35
do-build:
36
	cd ${WRKSRC} && ${CXX} ${CXXFLAGS} -shared -fPIC \
37
		-Wl,-soname,libcrossguid.so.0 \
38
		-DGUID_LIBUUID -L${LOCALBASE}/lib guid.cpp \
39
		-o libcrossguid.so.0 -luuid
40
41
do-install:
42
	${INSTALL_DATA} ${WRKSRC}/guid.h ${STAGEDIR}${PREFIX}/include
43
	${INSTALL_LIB} ${WRKSRC}/libcrossguid.so.0 ${STAGEDIR}${PREFIX}/lib
44
	${INSTALL_DATA} ${WRKDIR}/libcrossguid.pc \
45
		${STAGEDIR}${PREFIX}/libdata/pkgconfig
46
	${LN} -sf libcrossguid.so.0 ${STAGEDIR}${PREFIX}/lib/libcrossguid.so
47
26
48
.include <bsd.port.mk>
27
.include <bsd.port.mk>
(-)b/devel/libcrossguid/distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (graeme-hill-crossguid-20150803-8f399e8_GH0.tar.gz) = 929397adfe57b945c5153e09f1e0bc1763300e2b30578ec7ed6facc2821d7f6f
1
TIMESTAMP = 1613377127
2
SIZE (graeme-hill-crossguid-20150803-8f399e8_GH0.tar.gz) = 46576
2
SHA256 (graeme-hill-crossguid-v0.2.2-52-gca1bf4b_GH0.tar.gz) = 731eab92a5b916eb1195208eac448155e209f9634436c0e877cb32cadd71bdc3
3
SIZE (graeme-hill-crossguid-v0.2.2-52-gca1bf4b_GH0.tar.gz) = 141678
(-)a/devel/libcrossguid/files/libcrossguid.pc.in (-9 lines)
Removed Link Here
1
prefix=%PREFIX%
2
libdir=${prefix}/lib
3
includedir=${prefix}/include
4
5
Name: libguid
6
Description: minimal and cross platform C++ GUID library
7
Version: %VERSION%
8
Libs: -L${libdir} -lcrossguid
9
Cflags: -I${includedir}
(-)b/devel/libcrossguid/files/patch-CMakeLists.txt (+11 lines)
Added Link Here
1
--- CMakeLists.txt.orig	2021-02-15 08:41:34 UTC
2
+++ CMakeLists.txt
3
@@ -75,7 +75,7 @@ if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURC
4
 		FRAMEWORK     DESTINATION ${CROSSGUID_FRAMEWORK_INSTALL_DIR})
5
 
6
 	# Install headers
7
-	install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/"
8
+	install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/crossguid/"
9
 		DESTINATION ${CROSSGUID_INC_INSTALL_DIR})
10
 
11
 	# Make cmake config files for all targets
(-)b/devel/libcrossguid/pkg-plist (-1 / +9 lines)
Added Link Here
0
- 
1
include/guid.hpp
2
lib/libcrossguid.so
3
lib/libcrossguid.so.0
4
lib/libcrossguid.so.0.2.3
5
libdata/pkgconfig/crossguid.pc
6
share/crossguid/LICENSE
7
share/crossguid/README.md
8
share/crossguid/cmake/crossguid-config-%%CMAKE_BUILD_TYPE%%.cmake
9
share/crossguid/cmake/crossguid-config.cmake

Return to bug 253531