aboutsummaryrefslogtreecommitdiff
path: root/ports/vs-yasm
diff options
context:
space:
mode:
authorAlexander Neumann <30894796+Neumann-A@users.noreply.github.com>2020-05-08 22:55:11 +0200
committerGitHub <noreply@github.com>2020-05-08 13:55:11 -0700
commit18ab20050cc8580a3f47aeaa5d35f24f3a87bd76 (patch)
treecd0e6d358b8715c3f3f78f4eca30a1bba53225c4 /ports/vs-yasm
parentce65b330babfedd3bd7bd0dda6123bf7a7128b19 (diff)
downloadvcpkg-18ab20050cc8580a3f47aeaa5d35f24f3a87bd76.tar.gz
vcpkg-18ab20050cc8580a3f47aeaa5d35f24f3a87bd76.zip
[gmp,nettle,hogweed] Add new ports (#10613)
* add new function vcpkg_fixup_pkgconfig * make message with changed files a debug_message * add two more cases to the debug *.pc files * comment out prefix. use --define-variable=prefix=INSTALL_PATH * changed the comment header. * add missing word * finish vcpkg_fixup_pkgconfig.cmake * Update vcpkg_fixup_pkgconfig.cmake Note: since CMake is run in script mode the description of VCPKG_FIXUP_PKGCONFIG_CALLED cannot be viewed * transfer changes from x windows pr * fix typo in regex * add port for vs yasm integration within VCPKG * add gmp * add nettle * add missing windows flag in control * CI workaround CI seems to not pass env YASMPATH correctly to cl. Since YASM is on PATH -> remove $(VCInstallDir) as the default for YasmPath * overwrite correct import. * If CI does not give logs just display some extra info * target replacement was mising * apply same replacements for nettle * remove unnecessary status message * remove unnecessary platform code * update supports field for vs-yasm * apply replacement also to libhogweed * fix static builds * remove not working code * remove debug/release options * add additional replacement for the case the SOURCE dir has already been patched within VCPKG * add triplet selection to vcpkg_install_msbuild * fix missing ; in patches * remove gmp dependency in static builds since they are not required * cleanup portfiles * add missing vcpkg_fixup_pkgconfig() call
Diffstat (limited to 'ports/vs-yasm')
-rw-r--r--ports/vs-yasm/CONTROL5
-rw-r--r--ports/vs-yasm/portfile.cmake19
2 files changed, 24 insertions, 0 deletions
diff --git a/ports/vs-yasm/CONTROL b/ports/vs-yasm/CONTROL
new file mode 100644
index 000000000..68f7328a9
--- /dev/null
+++ b/ports/vs-yasm/CONTROL
@@ -0,0 +1,5 @@
+Source: vs-yasm
+Version: 0.5.0
+Homepage: https://github.com/ShiftMediaProject/VSYASM
+Description: Provides Visual Studio integration for the YASM assembler.
+Supports: windows & !arm \ No newline at end of file
diff --git a/ports/vs-yasm/portfile.cmake b/ports/vs-yasm/portfile.cmake
new file mode 100644
index 000000000..341f66ca5
--- /dev/null
+++ b/ports/vs-yasm/portfile.cmake
@@ -0,0 +1,19 @@
+set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO ShiftMediaProject/VSYASM
+ REF deb50d9f18e8461538468339d508cdf240e64897 #v0.5
+ SHA512 04627546020d33e5ea91f74b09c5ce3b817dce5f6ae4548c3b4148daa82fbd837c81675ac8730d3ca1cdf91fefa8bb23eec76d1bcd02c03dda1203d0c261178d
+ HEAD_REF master
+)
+
+set(_files yasm.props yasm.targets yasm.xml)
+foreach(_file ${_files})
+ file(INSTALL "${SOURCE_PATH}/${_file}" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/")
+endforeach()
+set(_file "${CURRENT_PACKAGES_DIR}/share/${PORT}/yasm.props")
+file(READ "${_file}" _contents)
+string(REPLACE "$(VCInstallDir)" "" _contents "${_contents}")
+file(WRITE "${_file}" "${_contents}")
+
+configure_file("${SOURCE_PATH}/COPYING" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY) \ No newline at end of file