[mtlt] Add new port (#36105)

* add mtl library new port

* add mtl library new port

* add mtl library new port

* [mtl] new port

* Update version database

* Update version database

* Update version database

* Update ports/mtl/vcpkg.json

Co-authored-by: Kai Pastor <dg0yt@darc.de>

* Update ports/mtl/portfile.cmake

Co-authored-by: Kai Pastor <dg0yt@darc.de>

* add mlt-config.cmake autogen

* Update version database

* Quick Fix CE with MSVC compiler

* Update version database

* Update ports/mtl/portfile.cmake

Co-authored-by: Frank <65999885+FrankXie05@users.noreply.github.com>

* Update ports/mtl/usage

Co-authored-by: Frank <65999885+FrankXie05@users.noreply.github.com>

* Remove -DMTL-CMAKE-DIR macro because is not necessary

* Update version database

* Update ports/mtl/usage

Co-authored-by: Kai Pastor <dg0yt@darc.de>

* Update ports/mtl/portfile.cmake

Co-authored-by: Kai Pastor <dg0yt@darc.de>

* Update ports/mtl/portfile.cmake

Co-authored-by: Kai Pastor <dg0yt@darc.de>

* Update database version

* Remove white spaces and add line break

* Update database version

* end line

* version

* add new version of mtl

* Update database version

* Rename port name from mtl to mtlt (last 't' is tonitaga)

* Update database version

* Update database version

---------

Co-authored-by: Kai Pastor <dg0yt@darc.de>
Co-authored-by: Frank <65999885+FrankXie05@users.noreply.github.com>
Co-authored-by: Frank <1433351828@qq.com>
This commit is contained in:
Gubaydullin Nurislam 2024-01-19 23:00:27 +03:00 committed by GitHub
parent 564e69a906
commit 0e8929718e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 57 additions and 0 deletions

23
ports/mtlt/portfile.cmake Normal file
View File

@ -0,0 +1,23 @@
set(VCPKG_BUILD_TYPE release) # Header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO tonitaga/MTLT
REF 8e30e6636b06ad008082e22f37e0d79873142e1b
SHA512 2addaa4f84037a14431b20734fe5ca1ea11c4d9d1a0ddf82a16b9efaacbbac3873038bd16f93ba94288559585ae76d12884166931c91a214a3e3ed0cecea6b3b
HEAD_REF main
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME "mtlt" CONFIG_PATH "lib/cmake/mtlt")
vcpkg_fixup_pkgconfig()
vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

4
ports/mtlt/usage Normal file
View File

@ -0,0 +1,4 @@
The package mtlt provides CMake targets:
find_package(mtlt REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE mtlt::mtlt)

17
ports/mtlt/vcpkg.json Normal file
View File

@ -0,0 +1,17 @@
{
"name": "mtlt",
"version": "1.0.0",
"description": "Tonitaga 2024. MTLT is a header-only math matrix library that allows you to do compile-time calculations, perform atomic operations, and contains all the basic operations on matrices. The library is written in STL style, supports joint work with STL algorithms. Since C++11",
"homepage": "https://github.com/tonitaga/MTLT",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -5816,6 +5816,10 @@
"baseline": "1.0.2",
"port-version": 5
},
"mtlt": {
"baseline": "1.0.0",
"port-version": 0
},
"mujoco": {
"baseline": "2.3.2",
"port-version": 1

9
versions/m-/mtlt.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "8f0c1e8f63efeb1e1cd7c6484837539caa0dc1d1",
"version": "1.0.0",
"port-version": 0
}
]
}