b7f05445c0
It has been common practice to have one or more URLs at the end of the ports' pkg-descr files, one per line and prefixed with "WWW:". These URLs should point at a project website or other relevant resources. Access to these URLs required processing of the pkg-descr files, and they have often become stale over time. If more than one such URL was present in a pkg-descr file, only the first one was tarnsfered into the port INDEX, but for many ports only the last line did contain the port specific URL to further information. There have been several proposals to make a project URL available as a macro in the ports' Makefiles, over time. This commit implements such a proposal and moves one of the WWW: entries of each pkg-descr file into the respective port's Makefile. A heuristic attempts to identify the most relevant URL in case there is more than one WWW: entry in some pkg-descr file. URLs that are not moved into the Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr files in order to preserve them. There are 1256 ports that had no WWW: entries in pkg-descr files. These ports will not be touched in this commit. The portlint port has been adjusted to expect a WWW entry in each port Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as deprecated. Approved by: portmgr (tcberner)
82 lines
3.4 KiB
Makefile
82 lines
3.4 KiB
Makefile
PORTNAME= rocksdb
|
|
PORTVERSION= 7.2.2
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= databases
|
|
PKGNAMESUFFIX= -lite
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Persistent key-value store for fast storage environments (lite version)
|
|
WWW= https://rocksdb.org/
|
|
|
|
LICENSE= APACHE20 GPLv2
|
|
LICENSE_COMB= dual
|
|
LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE.Apache
|
|
LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING
|
|
|
|
BROKEN_DragonFly= does not build on DragonFly BSD using GCC with -Werror
|
|
BROKEN_armv6= does not build: db/compaction_job.cc:714:52: error: implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'const size_t' (aka 'const unsigned int')
|
|
BROKEN_armv7= does not build: db/compaction_job.cc:714:52: error: implicit conversion loses integer precision: 'uint64_t' (aka 'unsigned long long') to 'const size_t' (aka 'const unsigned int')
|
|
BROKEN_i386= does not build: tools/db_bench_tool.cc:6320:25: error: non-constant-expression cannot be narrowed from type 'uint64_t' (aka 'unsigned long long') to 'size_t' (aka 'unsigned int') in initializer list
|
|
BROKEN_FreeBSD_12_powerpc64= does not build: util/crc32c.cc:435:22: 'arch_ppc_probe' was not declared in this scope
|
|
BROKEN= does not build: strip: open /wrkdirs/usr/ports/databases/rocksdb-lite/work/stage/usr/local/lib/librocksdb-lite.so failed: No such file or directory
|
|
|
|
BUILD_DEPENDS= bash:shells/bash
|
|
LIB_DEPENDS= libgflags.so:devel/gflags \
|
|
libsnappy.so:archivers/snappy
|
|
|
|
USES= compiler:c++17-lang gmake localbase:ldflags perl5
|
|
USE_PERL5= build
|
|
|
|
ALL_TARGET= shared_lib static_lib all
|
|
CFLAGS+= -DOS_FREEBSD -DROCKSDB_LITE=1
|
|
CONFIGURE_ARGS= make_config.mk
|
|
CONFIGURE_ENV= PORTABLE=0 ROCKSDB_ROOT=${WRKSRC}
|
|
CONFIGURE_SCRIPT= build_tools/build_detect_platform
|
|
HAS_CONFIGURE= yes
|
|
MAKE_ENV= CXX=${CXX} DISABLE_JEMALLOC=1 INSTALL_PATH=${STAGEDIR}${PREFIX} LIBNAME=librocksdb-lite USE_RTTI=1
|
|
USE_CXXSTD= c++17
|
|
USE_LDCONFIG= yes
|
|
TEST_TARGET= check
|
|
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION} SHLIB_VER=${PORTVERSION:R}
|
|
PORTDATA= make_config.mk
|
|
|
|
GH_ACCOUNT= facebook
|
|
USE_GITHUB= yes
|
|
|
|
CONFLICTS_INSTALL= rocksdb
|
|
|
|
BENCHMARKS= cache_bench db_bench memtablerep_bench persistent_cache_bench range_del_aggregator_bench table_reader_bench
|
|
TOOLS= blob_dump db_repl_stress db_sanity_test db_stress ldb rocksdb_dump rocksdb_undump sst_dump trace_analyzer write_stress
|
|
|
|
OPTIONS_DEFINE= DEBUG LZ4 ZSTD
|
|
OPTIONS_DEFAULT=LZ4
|
|
|
|
DEBUG_MAKE_ENV= DEBUG_LEVEL=2
|
|
DEBUG_MAKE_ENV_OFF= DEBUG_LEVEL=0
|
|
LZ4_LIB_DEPENDS= liblz4.so:archivers/liblz4
|
|
LZ4_MAKE_ENV_OFF= ROCKSDB_DISABLE_LZ4=yes
|
|
ZSTD_LIB_DEPENDS= libzstd.so:archivers/zstd
|
|
ZSTD_MAKE_ENV_OFF= ROCKSDB_DISABLE_ZSTD=yes
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${CHOSEN_COMPILER_TYPE} == clang
|
|
CXXFLAGS+= -Wno-inconsistent-missing-override -Wno-unused-parameter -Wno-unused-variable -Wno-unused-private-field
|
|
.endif
|
|
|
|
post-patch:
|
|
.if (${ARCH} == amd64 || ${ARCH} == i386) && !empty(CFLAGS:M-march=*)
|
|
@${REINPLACE_CMD} -e 's| -march=native| ${CFLAGS:M-march=*}|' ${WRKSRC}/build_tools/build_detect_platform
|
|
.else
|
|
@${REINPLACE_CMD} -e 's| -march=native||' ${WRKSRC}/build_tools/build_detect_platform
|
|
.endif
|
|
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${DATADIR}/
|
|
cd ${WRKSRC}/ && ${INSTALL_PROGRAM} ${BENCHMARKS} ${TOOLS} ${STAGEDIR}${PREFIX}/bin/
|
|
${INSTALL_DATA} ${WRKSRC}/librocksdb${PKGNAMESUFFIX}_tools.so ${STAGEDIR}${PREFIX}/lib/
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/librocksdb${PKGNAMESUFFIX}.so ${STAGEDIR}${PREFIX}/lib/librocksdb${PKGNAMESUFFIX}_tools.so
|
|
${INSTALL_DATA} ${WRKSRC}/make_config.mk ${STAGEDIR}${DATADIR}/
|
|
|
|
.include <bsd.port.post.mk>
|