diff --git a/archivers/snappy/Makefile b/archivers/snappy/Makefile index aa921a9d7240..75e9da004de0 100644 --- a/archivers/snappy/Makefile +++ b/archivers/snappy/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= snappy -PORTVERSION= 1.1.6 -PORTREVISION= 1 +PORTVERSION= 1.1.7 CATEGORIES= archivers MAINTAINER= vanilla@FreeBSD.org @@ -11,18 +10,19 @@ COMMENT= Fast compressor/decompressor library LICENSE= BSD3CLAUSE -USES= autoreconf compiler:c++11-lang libtool pathfix pkgconfig -CONFIGURE_ARGS= --disable-gtest -GNU_CONFIGURE= yes +USES= cmake compiler:c++11-lang USE_LDCONFIG= yes -CFLAGS+= -DNDEBUG +CMAKE_ON= BUILD_SHARED_LIBS +CMAKE_OFF= SNAPPY_BUILD_TESTS +CMAKE_BUILD_TYPE= Release USE_GITHUB= yes GH_ACCOUNT= google -TEST_TARGET= check - -OPTIONS_DEFINE= DOCS +PLIST_SUB+= PORTVERSION=${PORTVERSION} +SUB_FILES+= snappy.pc +SUB_LIST+= PORTVERSION=${PORTVERSION} post-install: - @${STRIP_CMD} ${STAGEDIR}${LOCALBASE}/lib/libsnappy.so.1.1.6 + @${STRIP_CMD} ${STAGEDIR}${LOCALBASE}/lib/libsnappy.so.${PORTVERSION} + ${INSTALL_DATA} ${WRKDIR}/snappy.pc ${STAGEDIR}${LOCALBASE}/libdata/pkgconfig .include diff --git a/archivers/snappy/distinfo b/archivers/snappy/distinfo index 363b24204522..f601267e2b48 100644 --- a/archivers/snappy/distinfo +++ b/archivers/snappy/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1501830268 -SHA256 (google-snappy-1.1.6_GH0.tar.gz) = 6fa92cde5b2caefd0d9a60336991ba42e5a7ddc3bdc36c5610451373751d0495 -SIZE (google-snappy-1.1.6_GH0.tar.gz) = 1128388 +TIMESTAMP = 1534410160 +SHA256 (google-snappy-1.1.7_GH0.tar.gz) = 3dfa02e873ff51a11ee02b9ca391807f0c8ea0529a4924afa645fbf97163f9d4 +SIZE (google-snappy-1.1.7_GH0.tar.gz) = 1090550 diff --git a/archivers/snappy/files/snappy.pc.in b/archivers/snappy/files/snappy.pc.in new file mode 100644 index 000000000000..8957d6fc2869 --- /dev/null +++ b/archivers/snappy/files/snappy.pc.in @@ -0,0 +1,10 @@ +prefix=%%PREFIX%% +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: snappy +Description: A fast compression/decompression library +Version: %%PORTVERSION%% +Libs: -L${libdir} -lsnappy +Cflags: -I${includedir} diff --git a/archivers/snappy/pkg-plist b/archivers/snappy/pkg-plist index b87e4cb28094..a1b4504c6031 100644 --- a/archivers/snappy/pkg-plist +++ b/archivers/snappy/pkg-plist @@ -2,15 +2,11 @@ include/snappy-c.h include/snappy-sinksource.h include/snappy-stubs-public.h include/snappy.h -lib/libsnappy.a +lib/cmake/Snappy/SnappyConfig.cmake +lib/cmake/Snappy/SnappyConfigVersion.cmake +lib/cmake/Snappy/SnappyTargets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/Snappy/SnappyTargets.cmake lib/libsnappy.so lib/libsnappy.so.1 -lib/libsnappy.so.1.1.6 +lib/libsnappy.so.%%PORTVERSION%% libdata/pkgconfig/snappy.pc -%%PORTDOCS%%%%DOCSDIR%%/COPYING -%%PORTDOCS%%%%DOCSDIR%%/ChangeLog -%%PORTDOCS%%%%DOCSDIR%%/INSTALL -%%PORTDOCS%%%%DOCSDIR%%/NEWS -%%PORTDOCS%%%%DOCSDIR%%/README -%%PORTDOCS%%%%DOCSDIR%%/format_description.txt -%%PORTDOCS%%%%DOCSDIR%%/framing_format.txt