diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/vs-yasm | |
Diffstat (limited to 'vcpkg/ports/vs-yasm')
| -rw-r--r-- | vcpkg/ports/vs-yasm/fix_paths.patch | 23 | ||||
| -rw-r--r-- | vcpkg/ports/vs-yasm/portfile.cmake | 17 | ||||
| -rw-r--r-- | vcpkg/ports/vs-yasm/vcpkg.json | 8 |
3 files changed, 48 insertions, 0 deletions
diff --git a/vcpkg/ports/vs-yasm/fix_paths.patch b/vcpkg/ports/vs-yasm/fix_paths.patch new file mode 100644 index 0000000..8b74a3a --- /dev/null +++ b/vcpkg/ports/vs-yasm/fix_paths.patch @@ -0,0 +1,23 @@ +diff --git a/yasm.props b/yasm.props
+index 06efe7a..10f6309 100644
+--- a/yasm.props
++++ b/yasm.props
+@@ -6,15 +6,15 @@
+ <YASMAfterTargets>CustomBuild</YASMAfterTargets>
+ </PropertyGroup>
+ <PropertyGroup>
+- <YasmPath Condition= "'$(YASMPATH)' == ''">$(VCInstallDir)</YasmPath>
++ <YasmPath Condition= "'$(YasmPath)' == ''">$(VCInstallDir)</YasmPath>
+ </PropertyGroup>
+ <ItemDefinitionGroup>
+ <YASM>
+ <Preprocessor>0</Preprocessor>
+ <Parser>0</Parser>
+ <ObjectFileName>$(IntDir)%(FileName).obj</ObjectFileName>
+- <CommandLineTemplate Condition="'$(Platform)' == 'Win32'">"$(YasmPath)"yasm.exe -Xvc -f win32 [AllOptions] [AdditionalOptions] "%(FullPath)"</CommandLineTemplate>
+- <CommandLineTemplate Condition="'$(Platform)' == 'x64'">"$(YasmPath)"yasm.exe -Xvc -f win64 [AllOptions] [AdditionalOptions] "%(FullPath)"</CommandLineTemplate>
++ <CommandLineTemplate Condition="'$(Platform)' == 'Win32'">"$(YasmPath)" -Xvc -f win32 [AllOptions] [AdditionalOptions] "%(FullPath)"</CommandLineTemplate>
++ <CommandLineTemplate Condition="'$(Platform)' == 'x64'">"$(YasmPath)" -Xvc -f win64 [AllOptions] [AdditionalOptions] "%(FullPath)"</CommandLineTemplate>
+ <CommandLineTemplate Condition="'$(Platform)' != 'Win32' and '$(Platform)' != 'x64'">echo YASM not supported on this platform
+ exit 1</CommandLineTemplate>
+ <ExecutionDescription>%(Identity)</ExecutionDescription>
diff --git a/vcpkg/ports/vs-yasm/portfile.cmake b/vcpkg/ports/vs-yasm/portfile.cmake new file mode 100644 index 0000000..fc291c2 --- /dev/null +++ b/vcpkg/ports/vs-yasm/portfile.cmake @@ -0,0 +1,17 @@ +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
+ PATCHES
+ fix_paths.patch
+)
+
+set(_files yasm.props yasm.targets yasm.xml)
+foreach(_file ${_files})
+ file(INSTALL "${SOURCE_PATH}/${_file}" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
+endforeach()
+
+configure_file("${SOURCE_PATH}/COPYING" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
diff --git a/vcpkg/ports/vs-yasm/vcpkg.json b/vcpkg/ports/vs-yasm/vcpkg.json new file mode 100644 index 0000000..3a9192b --- /dev/null +++ b/vcpkg/ports/vs-yasm/vcpkg.json @@ -0,0 +1,8 @@ +{ + "name": "vs-yasm", + "version": "0.5.0", + "port-version": 2, + "description": "Provides Visual Studio integration for the YASM assembler.", + "homepage": "https://github.com/ShiftMediaProject/VSYASM", + "supports": "windows & !arm" +} |