math/libbraiding: Improve port

* Use upstream release archive (removes USES= autoreconf and patch file)
* Change USES= compiler:c++11-lang to compiler:c++17-lang
* Use USE_CXXSTD helper instead of CXXFLAGS
* Remove USES= pathfix (doesn't work)
* Use --with-pkgconfigdir configure switch

PR:		284092
Approved by:	portmgr (maintainer timeout, 2+ weeks)
This commit is contained in:
Daniel Engberg
2025-02-02 19:47:25 +01:00
parent 64cb3ca557
commit 8bcbee5fff
3 changed files with 13 additions and 19 deletions
+10 -9
View File
@@ -1,6 +1,7 @@
PORTNAME= libbraiding
PORTVERSION= 1.3.1
DISTVERSION= 1.3.1
CATEGORIES= math
MASTER_SITES= https://github.com/miguelmarco/${PORTNAME}/releases/download/${DISTVERSION}/
MAINTAINER= thierry@FreeBSD.org
COMMENT= C++ library for computations on braid groups
@@ -8,14 +9,14 @@ WWW= https://github.com/jeanluct/braidlab
LICENSE= GPLv3
USE_GITHUB= yes
GH_ACCOUNT= miguelmarco
USES= autoreconf compiler:c++11-lang libtool pathfix pkgconfig
CXXFLAGS+= -std=c++17
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USES= compiler:c++17-lang libtool pkgconfig
USE_CXXSTD= c++17
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-pkgconfigdir=${PREFIX}/libdata/pkgconfig
INSTALL_TARGET= install-strip
.include <bsd.port.mk>
+3 -3
View File
@@ -1,3 +1,3 @@
TIMESTAMP = 1736966252
SHA256 (miguelmarco-libbraiding-1.3.1_GH0.tar.gz) = c0910b342fe6ecee20759617263c20cf45d827abc6eac83ffd84d4565633ce3c
SIZE (miguelmarco-libbraiding-1.3.1_GH0.tar.gz) = 43662
TIMESTAMP = 1736994521
SHA256 (libbraiding-1.3.1.tar.gz) = d1738c3ad64a90ca0ad968d2e3c9069b0de08abcf37fb44a151a229d88203950
SIZE (libbraiding-1.3.1.tar.gz) = 393142
@@ -1,7 +0,0 @@
--- configure.ac.orig 2024-11-06 18:51:29 UTC
+++ configure.ac
@@ -8,4 +8,3 @@ AC_OUTPUT
LT_INIT
AC_CONFIG_FILES([Makefile lib/Makefile libbraiding.pc])
AC_OUTPUT
-s