summaryrefslogtreecommitdiff
path: root/databases/postgresql-libpqxx
diff options
context:
space:
mode:
authorDaniel Engberg <diizzy@FreeBSD.org>2024-08-24 12:32:01 +0200
committerDaniel Engberg <diizzy@FreeBSD.org>2024-08-24 12:36:02 +0200
commit8304729b55c5c307b0b6abfc737092a6004ba6ea (patch)
tree03f1bce56f77d83f68ceba2c63a1bdc12ae8c6d8 /databases/postgresql-libpqxx
parentaudio/liba52: Define USE_CSTD= gnu89 and remove GNU_CONFIGURE_MANPREFIX (diff)
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)
Diffstat (limited to 'databases/postgresql-libpqxx')
-rw-r--r--databases/postgresql-libpqxx/Makefile23
-rw-r--r--databases/postgresql-libpqxx/pkg-plist7
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