Files
ports/devel/libcrossguid/Makefile
T
Gerald Pfeifer ea8c8ec7da Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.

PR:		238330
2019-07-26 20:46:53 +00:00

49 lines
1.2 KiB
Makefile

# $FreeBSD$
PORTNAME= libcrossguid
PORTVERSION= 20150803
PORTREVISION= 6
CATEGORIES= devel
MAINTAINER= mickael.maillot@gmail.com
COMMENT= Minimal and cross platform C++ GUID library
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libuuid.so: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`
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}|' -e 's|%VERSION%|${PORTVERSION}|' \
${FILESDIR}/libcrossguid.pc.in > ${WRKDIR}/libcrossguid.pc
do-build:
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.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>