git: 8304729b55c5 - main - databases/postgresql-libpqxx: Convert to CMake and modernize
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 24 Aug 2024 10:37:37 UTC
The branch main has been updated by diizzy: URL: https://cgit.FreeBSD.org/ports/commit/?id=8304729b55c5c307b0b6abfc737092a6004ba6ea commit 8304729b55c5c307b0b6abfc737092a6004ba6ea Author: Daniel Engberg <diizzy@FreeBSD.org> AuthorDate: 2024-08-24 10:32:01 +0000 Commit: Daniel Engberg <diizzy@FreeBSD.org> CommitDate: 2024-08-24 10:36:02 +0000 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) --- databases/postgresql-libpqxx/Makefile | 23 ++++++++++------------- databases/postgresql-libpqxx/pkg-plist | 7 +++++-- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/databases/postgresql-libpqxx/Makefile b/databases/postgresql-libpqxx/Makefile index bbaac70b416d..ca2b51e0b5ca 100644 --- a/databases/postgresql-libpqxx/Makefile +++ b/databases/postgresql-libpqxx/Makefile @@ -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> diff --git a/databases/postgresql-libpqxx/pkg-plist b/databases/postgresql-libpqxx/pkg-plist index 578af99171d9..b9ec279b3e0e 100644 --- a/databases/postgresql-libpqxx/pkg-plist +++ b/databases/postgresql-libpqxx/pkg-plist @@ -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