pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Add partio version 1.17.1 to pkgsrc-wip C++ library for handling various particle formats (GEO, BGEO, PTC, PDB, PDA).
Module Name: pkgsrc-wip
Committed By: Niclas Rosenvik <nros%pkgsrc.org@localhost>
Pushed By: nros
Date: Tue Nov 7 11:29:16 2023 +0100
Changeset: 95d41b9e99445dd12b1b43b89ae0363aafbe3ef9
Modified Files:
Makefile
Added Files:
partio/DESCR
partio/Makefile
partio/PLIST
partio/buildlink3.mk
partio/distinfo
partio/patches/patch-CMakeLists.txt
Log Message:
Add partio version 1.17.1 to pkgsrc-wip
C++ library for handling various particle formats (GEO, BGEO, PTC, PDB, PDA).
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=95d41b9e99445dd12b1b43b89ae0363aafbe3ef9
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
partio/DESCR | 1 +
partio/Makefile | 28 ++++++++++++++++++++++++++++
partio/PLIST | 7 +++++++
partio/buildlink3.mk | 13 +++++++++++++
partio/distinfo | 6 ++++++
partio/patches/patch-CMakeLists.txt | 32 ++++++++++++++++++++++++++++++++
7 files changed, 88 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 9e80c88110..5ff3572e56 100644
--- a/Makefile
+++ b/Makefile
@@ -2842,6 +2842,7 @@ SUBDIR+= paraview
SUBDIR+= parcellite
SUBDIR+= parole
SUBDIR+= parted
+SUBDIR+= partio
SUBDIR+= partonevolution
SUBDIR+= passepartout
SUBDIR+= passphrase-git
diff --git a/partio/DESCR b/partio/DESCR
new file mode 100644
index 0000000000..8f9ef33b1d
--- /dev/null
+++ b/partio/DESCR
@@ -0,0 +1 @@
+C++ library for handling various particle formats (GEO, BGEO, PTC, PDB, PDA).
diff --git a/partio/Makefile b/partio/Makefile
new file mode 100644
index 0000000000..906fe148b2
--- /dev/null
+++ b/partio/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD$
+
+DISTNAME= partio-1.17.1
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_GITHUB:=wdas/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://www.disneyanimation.com/open-source/partio/
+COMMENT= Library for handling standard particle formats
+LICENSE= modified-bsd
+
+USE_LANGUAGES= c c++
+USE_CXX_FEATURES= c++14
+
+CMAKE_CONFIGURE_ARGS+= -DPARTIO_BUILD_SHARED_LIBS:BOOL=ON
+
+# https://github.com/wdas/partio/issues/104
+# https://github.com/wdas/partio/issues/17
+# see files src/tools/part*.py in the distfile
+NO_SRC_ON_CDROM= ${RESTRICTED}
+NO_SRC_ON_FTP= ${RESTRICTED}
+
+.include "../../devel/cmake/build.mk"
+
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/partio/PLIST b/partio/PLIST
new file mode 100644
index 0000000000..ec31d6128a
--- /dev/null
+++ b/partio/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD$
+include/Partio.h
+include/PartioAttribute.h
+include/PartioIterator.h
+include/PartioVec3.h
+lib/libpartio.so
+lib/libpartio.so.1
diff --git a/partio/buildlink3.mk b/partio/buildlink3.mk
new file mode 100644
index 0000000000..e4086926cc
--- /dev/null
+++ b/partio/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD$
+
+BUILDLINK_TREE+= partio
+
+.if !defined(PARTIO_BUILDLINK3_MK)
+PARTIO_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.partio+= partio>=1.17.1
+BUILDLINK_PKGSRCDIR.partio?= ../../wip/partio
+
+.endif # PARTIO_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -partio
diff --git a/partio/distinfo b/partio/distinfo
new file mode 100644
index 0000000000..1fd031c8b1
--- /dev/null
+++ b/partio/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (partio-1.17.1.tar.gz) = f0db32ffc432da3bc2b537cc495ece05716606f85c21d55d3a8607d1d3e372c6
+SHA512 (partio-1.17.1.tar.gz) = 5dbbd988c76a26ac6f3024e29ed12f37f7995daf211e065b9ffaf185c6203be7d9de48bd62b5955d2f5444af72fb3306ea5a0f3501cb0a49a26f157bb09ec6bc
+Size (partio-1.17.1.tar.gz) = 338461 bytes
+SHA1 (patch-CMakeLists.txt) = 1ce993c14887ca6d1434364f18cc6e4167306e8f
diff --git a/partio/patches/patch-CMakeLists.txt b/partio/patches/patch-CMakeLists.txt
new file mode 100644
index 0000000000..dcc7f45255
--- /dev/null
+++ b/partio/patches/patch-CMakeLists.txt
@@ -0,0 +1,32 @@
+$NetBSD$
+
+Don't build python bindings and tools.
+Don't look for the dependencies needed by
+the things not built.
+
+--- CMakeLists.txt.orig 2023-07-02 02:16:37.000000000 +0000
++++ CMakeLists.txt
+@@ -119,10 +119,6 @@ set(OpenGL_GL_PREFERENCE GLVND)
+
+ ## Search for useful libraries
+ find_package(Threads REQUIRED)
+-find_package(GLUT REQUIRED)
+-find_package(OpenGL REQUIRED)
+-find_package(PythonInterp REQUIRED)
+-find_package(PythonLibs REQUIRED)
+ find_package(ZLIB)
+ if (ZLIB_FOUND)
+ add_definitions(-DPARTIO_USE_ZLIB)
+@@ -135,9 +131,9 @@ set(PARTIO_LIBRARIES partio ${ZLIB_LIBRA
+
+ ## Traverse subdirectories
+ add_subdirectory(src/lib)
+-add_subdirectory(src/tools)
+-add_subdirectory(src/py)
+-add_subdirectory(src/doc)
++#add_subdirectory(src/tools)
++#add_subdirectory(src/py)
++#add_subdirectory(src/doc)
+
+ if (${PARTIO_GTEST_ENABLED})
+ set(GTEST_LOCATION "/usr" CACHE STRING "gtest installation prefix")
Home |
Main Index |
Thread Index |
Old Index