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> |