mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-29 10:18:30 +00:00
devel/libcrossguid: Add SONAME, cosmetic fixes
- Add SONAME to libcrossguid.so - Cosmetic fixes - Bump PORTREVISION PR: 214499 Submitted by: cpm Reviewed by: Mickael Maillot <mickael.maillot@gmail.com> (maintainer), amdmi3 (mentor) Approved by: Mickael Maillot <mickael.maillot@gmail.com> (maintainer), amdmi3 (mentor) MFH: 2016Q4
This commit is contained in:
parent
65c15d2d54
commit
e0983da527
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=427007
@ -2,6 +2,7 @@
|
||||
|
||||
PORTNAME= libcrossguid
|
||||
PORTVERSION= 20150803
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel
|
||||
|
||||
MAINTAINER= mickael.maillot@gmail.com
|
||||
@ -20,18 +21,25 @@ 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
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
PLIST_FILES= include/guid.h \
|
||||
lib/libcrossguid.so \
|
||||
lib/libcrossguid.so.0 \
|
||||
libdata/pkgconfig/libcrossguid.pc
|
||||
|
||||
post-patch:
|
||||
@${SED} -e 's|%PREFIX%|${PREFIX}|g ; s|%VERSION%|${PORTVERSION}|g' \
|
||||
@${SED} -e 's|%PREFIX%|${PREFIX}|' -e 's|%VERSION%|${PORTVERSION}|' \
|
||||
${FILESDIR}/libcrossguid.pc.in > ${WRKDIR}/libcrossguid.pc
|
||||
|
||||
do-build:
|
||||
@cd ${WRKSRC} && ${CXX} ${CXXFLAGS} -shared -fPIC guid.cpp -o libcrossguid.so -DGUID_LIBUUID
|
||||
cd ${WRKSRC} && ${CXX} ${CXXFLAGS} -shared -fPIC -Wl,-soname,libcrossguid.so.0 \
|
||||
-DGUID_LIBUUID -L${LOCALBASE}/lib guid.cpp -o libcrossguid.so.0 -luuid
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/guid.h ${STAGEDIR}${PREFIX}/include
|
||||
${INSTALL_LIB} ${WRKSRC}/libcrossguid.so ${STAGEDIR}${PREFIX}/lib
|
||||
${INSTALL_LIB} ${WRKSRC}/libcrossguid.so.0 ${STAGEDIR}${PREFIX}/lib
|
||||
${INSTALL_DATA} ${WRKDIR}/libcrossguid.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig
|
||||
${LN} -sf libcrossguid.so.0 ${STAGEDIR}${PREFIX}/lib/libcrossguid.so
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -5,6 +5,5 @@ includedir=${prefix}/include
|
||||
Name: libguid
|
||||
Description: minimal and cross platform C++ GUID library
|
||||
Version: %VERSION%
|
||||
Libs: -L${libdir} -lguid
|
||||
Libs: -L${libdir} -lcrossguid
|
||||
Cflags: -I${includedir}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user