mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
databases/leveldb: Clean up
- Bump PORTREVISION for package change SOVERSION has been added by upstream since 1.22. Reference:37300aa54b
09fa8868db
This commit is contained in:
parent
86a1260162
commit
b1be4326da
3 changed files with 4 additions and 24 deletions
|
@ -1,5 +1,6 @@
|
|||
PORTNAME= leveldb
|
||||
PORTVERSION= 1.23
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= databases
|
||||
|
||||
MAINTAINER= sunpoet@FreeBSD.org
|
||||
|
@ -15,11 +16,7 @@ CMAKE_ON= BUILD_SHARED_LIBS LEVELDB_BUILD_BENCHMARKS LEVELDB_INSTALL
|
|||
USE_CXXSTD= c++11
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
PLIST_SUB= SHLIB_MAJOR=${SHLIB_MAJOR} \
|
||||
SHLIB_MINOR=${SHLIB_MINOR}
|
||||
|
||||
SHLIB_MAJOR= ${PORTVERSION:R}
|
||||
SHLIB_MINOR= ${PORTVERSION:E}
|
||||
PLIST_SUB= PORTVERSION=${PORTVERSION} SHLIB_VER=${PORTVERSION:R}
|
||||
|
||||
GH_ACCOUNT= google
|
||||
USE_GITHUB= yes
|
||||
|
@ -32,9 +29,6 @@ SNAPPY_LIB_DEPENDS= libsnappy.so:archivers/snappy
|
|||
SNAPPY_VARS= SNAPPY=1 SNAPPY_CFLAGS=-DSNAPPY
|
||||
SNAPPY_VARS_OFF= SNAPPY=0 SNAPPY_CFLAGS=
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|%%SHLIB_MAJOR%%|${SHLIB_MAJOR}|; s|%%SHLIB_MINOR%%|${SHLIB_MINOR}|' ${WRKSRC}/CMakeLists.txt
|
||||
|
||||
post-install:
|
||||
${AR} cq ${STAGEDIR}${PREFIX}/lib/libleveldb.a ${BUILD_WRKSRC}/CMakeFiles/leveldb.dir/*/*.o
|
||||
# backward compatibility (for databases/p5-Tie-LevelDB)
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
--- CMakeLists.txt.orig 2019-03-29 21:37:39 UTC
|
||||
+++ CMakeLists.txt
|
||||
@@ -228,6 +228,11 @@ if (NOT HAVE_CXX17_HAS_INCLUDE)
|
||||
endif(NOT HAVE_CXX17_HAS_INCLUDE)
|
||||
|
||||
if(BUILD_SHARED_LIBS)
|
||||
+ set_target_properties(leveldb
|
||||
+ PROPERTIES
|
||||
+ VERSION %%SHLIB_MAJOR%%.%%SHLIB_MINOR%%
|
||||
+ SOVERSION %%SHLIB_MAJOR%%
|
||||
+ )
|
||||
target_compile_definitions(leveldb
|
||||
PUBLIC
|
||||
# Used by include/export.h.
|
|
@ -19,6 +19,6 @@ lib/cmake/leveldb/leveldbTargets-%%CMAKE_BUILD_TYPE%%.cmake
|
|||
lib/cmake/leveldb/leveldbTargets.cmake
|
||||
lib/libleveldb.a
|
||||
lib/libleveldb.so
|
||||
lib/libleveldb.so.%%SHLIB_MAJOR%%
|
||||
lib/libleveldb.so.%%SHLIB_MAJOR%%.%%SHLIB_MINOR%%
|
||||
lib/libleveldb.so.%%SHLIB_VER%%
|
||||
lib/libleveldb.so.%%PORTVERSION%%.0
|
||||
%%DATADIR%%/build_config.mk
|
||||
|
|
Loading…
Add table
Reference in a new issue