mirror of https://git.FreeBSD.org/ports.git
archivers/snappy: Improve port
* Convert from PORTVERSION to DISTVERSION * Define LICENSE_FILE * Remove CMAKE_BUILD_TYPE * Use = instead of += for PLIST_SUB, SUB_FILES, SUB_LIST * Rearrange port for better readability PR: 278228 Reviewed by: vanilla (maintainer)
This commit is contained in:
parent
ca46a92e9d
commit
ab0d5c811b
|
@ -1,6 +1,5 @@
|
|||
PORTNAME= snappy
|
||||
PORTVERSION= 1.2.0
|
||||
PORTREVISION= 0
|
||||
DISTVERSION= 1.2.0
|
||||
CATEGORIES= archivers
|
||||
|
||||
MAINTAINER= vanilla@FreeBSD.org
|
||||
|
@ -8,22 +7,27 @@ COMMENT= Fast compressor/decompressor library
|
|||
WWW= https://google.github.io/snappy/
|
||||
|
||||
LICENSE= BSD3CLAUSE
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
USES= cmake compiler:c++11-lang cpe
|
||||
USE_LDCONFIG= yes
|
||||
CMAKE_ON= BUILD_SHARED_LIBS
|
||||
CMAKE_OFF= SNAPPY_BUILD_TESTS SNAPPY_BUILD_BENCHMARKS
|
||||
CMAKE_BUILD_TYPE= Release
|
||||
CPE_VENDOR= google
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= google
|
||||
PLIST_SUB+= PORTVERSION=${PORTVERSION}
|
||||
SUB_FILES+= snappy.pc
|
||||
SUB_LIST+= PORTVERSION=${PORTVERSION}
|
||||
|
||||
PIE_UNSAFE= yes
|
||||
|
||||
PLIST_SUB= DISTVERSION=${DISTVERSION}
|
||||
SUB_FILES= snappy.pc
|
||||
SUB_LIST= DISTVERSION=${DISTVERSION}
|
||||
|
||||
CMAKE_OFF= SNAPPY_BUILD_BENCHMARKS \
|
||||
SNAPPY_BUILD_TESTS
|
||||
CMAKE_ON= BUILD_SHARED_LIBS
|
||||
|
||||
post-install:
|
||||
@${STRIP_CMD} ${STAGEDIR}${LOCALBASE}/lib/libsnappy.so.${PORTVERSION}
|
||||
@${STRIP_CMD} ${STAGEDIR}${LOCALBASE}/lib/libsnappy.so.${DISTVERSION}
|
||||
${INSTALL_DATA} ${WRKDIR}/snappy.pc ${STAGEDIR}${LOCALBASE}/libdata/pkgconfig
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -5,6 +5,6 @@ includedir=${prefix}/include
|
|||
|
||||
Name: snappy
|
||||
Description: A fast compression/decompression library
|
||||
Version: %%PORTVERSION%%
|
||||
Version: %%DISTVERSION%%
|
||||
Libs: -L${libdir} -lsnappy
|
||||
Cflags: -I${includedir}
|
||||
|
|
|
@ -9,5 +9,5 @@ lib/cmake/Snappy/SnappyTargets.cmake
|
|||
lib/libsnappy.a
|
||||
lib/libsnappy.so
|
||||
lib/libsnappy.so.1
|
||||
lib/libsnappy.so.%%PORTVERSION%%
|
||||
lib/libsnappy.so.%%DISTVERSION%%
|
||||
libdata/pkgconfig/snappy.pc
|
||||
|
|
Loading…
Reference in New Issue