aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--math/petiga/Makefile22
-rw-r--r--math/petiga/distinfo6
-rw-r--r--math/petiga/files/patch-CMakeLists.txt14
-rw-r--r--math/petiga/pkg-plist21
4 files changed, 33 insertions, 30 deletions
diff --git a/math/petiga/Makefile b/math/petiga/Makefile
index 0c04774aa0e3..6d19c0024d60 100644
--- a/math/petiga/Makefile
+++ b/math/petiga/Makefile
@@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= petiga
-DISTVERSION= g20200316
+DISTVERSION= g20210307
CATEGORIES= math python
MASTER_SITES= https://bitbucket.org/${BB_ACCOUNT}/${BB_PROJECT}/get/${BB_COMMIT}.tar.gz?dummy=/
@@ -11,30 +11,26 @@ COMMENT= Framework for High Performance Isogeometric Analysis
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.rst
-BROKEN= fails to configure
-
LIB_DEPENDS= libblas.so:math/blas \
liblapack.so:math/lapack \
libmpich.so:net/mpich \
libpetsc.so:science/PETSc
-USES= cmake compiler:c++14-lang fortran xorg
-USE_XORG= x11
+USES= gmake compiler:c++14-lang fortran
USE_LDCONFIG= yes
+MAKEFILE= makefile
+
+MAKE_ENV= PETSC_DIR=${LOCALBASE}
+MAKE_ARGS= PREFIX=${STAGEDIR}${PREFIX} # https://bitbucket.org/dalcinl/petiga/issues/6/installs-into-prefix-tmp-petiga-instead-of
+
BB_ACCOUNT= dalcinl
BB_PROJECT= ${PORTNAME}
-BB_COMMIT= 90677fb7b777
+BB_COMMIT= 063a0ad5f450
WRKSRC= ${WRKDIR}/${BB_ACCOUNT}-${BB_PROJECT}-${BB_COMMIT}
-PLIST_FILES= include/petiga.h \
- lib/libpetiga.so \
- lib/petiga/conf/rules \
- lib/petiga/conf/test \
- lib/petiga/conf/variables
-
post-install:
- @cd ${STAGEDIR}${PREFIX}/include && ${RMDIR} petiga/cxx petiga/fad petiga
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpetiga.so
.include <bsd.port.mk>
diff --git a/math/petiga/distinfo b/math/petiga/distinfo
index 94bc92f6d32e..eeb0d9d7f10f 100644
--- a/math/petiga/distinfo
+++ b/math/petiga/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1588284033
-SHA256 (petiga-g20200316.tar.gz) = 4cfc054dc92bea6c8124a76c4a05a58b4fcba52d06bd9143bed0bf946e3ca5a3
-SIZE (petiga-g20200316.tar.gz) = 191291
+TIMESTAMP = 1617136913
+SHA256 (petiga-g20210307.tar.gz) = 39f7a1924bc80e9697d6ed9daa7e26e20f0a8872d38e5073de3462ba6f4be750
+SIZE (petiga-g20210307.tar.gz) = 189378
diff --git a/math/petiga/files/patch-CMakeLists.txt b/math/petiga/files/patch-CMakeLists.txt
deleted file mode 100644
index ab1e97998fdf..000000000000
--- a/math/petiga/files/patch-CMakeLists.txt
+++ /dev/null
@@ -1,14 +0,0 @@
---- CMakeLists.txt.orig 2019-08-20 07:57:51 UTC
-+++ CMakeLists.txt
-@@ -67,8 +67,8 @@ if (BUILD_STATIC_LIBS)
- endif ()
-
- install (DIRECTORY include/ DESTINATION include FILES_MATCHING PATTERN "*.h" )
--install (DIRECTORY ${PETSC_ARCH}/include/ DESTINATION include FILES_MATCHING PATTERN "*.h" )
--install (DIRECTORY ${PETSC_ARCH}/include/ DESTINATION include FILES_MATCHING PATTERN "*.mod" )
-+#install (DIRECTORY ${PETSC_ARCH}/include/ DESTINATION include FILES_MATCHING PATTERN "*.h" )
-+#install (DIRECTORY ${PETSC_ARCH}/include/ DESTINATION include FILES_MATCHING PATTERN "*.mod" )
- install (DIRECTORY lib/petiga/conf/ DESTINATION lib/petiga/conf)
--install (CODE "execute_process(COMMAND sed -i.arch -e s/$\(PETSC_ARCH\).//g \"${CMAKE_INSTALL_PREFIX}/lib/petiga/conf/variables\")")
-+#install (CODE "execute_process(COMMAND sed -i.arch -e s/$\(PETSC_ARCH\).//g \"${CMAKE_INSTALL_PREFIX}/lib/petiga/conf/variables\")")
- install (CODE "file(REMOVE \"${CMAKE_INSTALL_PREFIX}/lib/petiga/conf/variables.arch\")")
diff --git a/math/petiga/pkg-plist b/math/petiga/pkg-plist
new file mode 100644
index 000000000000..7cee64884eeb
--- /dev/null
+++ b/math/petiga/pkg-plist
@@ -0,0 +1,21 @@
+include/petiga.h
+include/petiga.mod
+include/petiga/cxx/function.hpp
+include/petiga/cxx/iefunction.hpp
+include/petiga/cxx/iejacobian.hpp
+include/petiga/cxx/ifunction.hpp
+include/petiga/cxx/ijacobian.hpp
+include/petiga/cxx/jacobian.hpp
+include/petiga/cxx/lookup.hpp
+include/petiga/cxx/system.hpp
+include/petiga/fad/adtype.hpp
+include/petiga/fad/iejacobian.hpp
+include/petiga/fad/ijacobian.hpp
+include/petiga/fad/jacobian.hpp
+include/petiga/petiga.hpp
+lib/libpetiga.so
+lib/petiga/conf/arch
+lib/petiga/conf/petsc
+lib/petiga/conf/rules
+lib/petiga/conf/test
+lib/petiga/conf/variables