mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00:00
databases/postgresql-libpqxx: Convert to CMake and modernize
* Switch to CMake as it cleans up Makefile, builds faster and adds .cmake files to port * Modernize port Makefile * Remove ancient CONFLICTS entry PR: 281022 Approved by: pgsql (girgen)
This commit is contained in:
parent
f21af2ec22
commit
8304729b55
@ -1,5 +1,6 @@
|
||||
PORTNAME= libpqxx
|
||||
PORTVERSION= 7.9.2
|
||||
DISTVERSION= 7.9.2
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= databases
|
||||
PKGNAMEPREFIX= postgresql-
|
||||
DIST_SUBDIR= postgresql
|
||||
@ -9,22 +10,18 @@ COMMENT= New C++ interface for PostgreSQL
|
||||
WWW= http://pqxx.org/
|
||||
|
||||
LICENSE= BSD3CLAUSE
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
CONFLICTS= postgresql-libpqxx-[1-5].* postgresql-libpqxx3-3.* \
|
||||
postgresql-libpqxx4-4.*
|
||||
USES= cmake compiler:c++17-lang pathfix pkgconfig pgsql
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
USES= compiler:c++17-lang gmake libtool pathfix pgsql python:build shebangfix
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= jtv
|
||||
GNU_CONFIGURE= yes
|
||||
USE_LDCONFIG= yes
|
||||
SHEBANG_FILES= ${WRKSRC}/tools/splitconfig.py
|
||||
INSTALL_TARGET= install-strip
|
||||
PLIST_SUB= PORTVERSION=${PORTVERSION:R}
|
||||
|
||||
CONFIGURE_ARGS= --enable-shared \
|
||||
--disable-documentation \
|
||||
--disable-dependency-tracking
|
||||
CXXFLAGS+= -std=c++17
|
||||
PLIST_SUB= DISTVERSION=${DISTVERSION:R}
|
||||
|
||||
CMAKE_OFF= BUILD_TEST
|
||||
CMAKE_ON= BUILD_SHARED_LIBS \
|
||||
CMAKE_SKIP_RPATH
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -106,7 +106,10 @@ include/pqxx/version
|
||||
include/pqxx/version.hxx
|
||||
include/pqxx/zview
|
||||
include/pqxx/zview.hxx
|
||||
lib/libpqxx-%%PORTVERSION%%.so
|
||||
lib/libpqxx.a
|
||||
lib/cmake/libpqxx/libpqxx-config-version.cmake
|
||||
lib/cmake/libpqxx/libpqxx-config.cmake
|
||||
lib/cmake/libpqxx/libpqxx-targets-%%CMAKE_BUILD_TYPE%%.cmake
|
||||
lib/cmake/libpqxx/libpqxx-targets.cmake
|
||||
lib/libpqxx-%%DISTVERSION%%.so
|
||||
lib/libpqxx.so
|
||||
libdata/pkgconfig/libpqxx.pc
|
||||
|
Loading…
Reference in New Issue
Block a user