apotocki/perl 5.44.0 (r1, windows)
- Library
- perl
- Variant
- windows, target windows
- Channel
- stable
- Published
- 2026-11-07
- Recipe source
- https://github.com/otok-dev/recipes.git
32756a87cf5bd189ca4c9825159bf0713ea8cf5einrecipes/perl/5.44/windows/ - Recipe SHA-256
e3d060348e980cbf3b7c29716bcc0e8060f50b829e15b5b2cca652e81370aae3
Recipe files changed
Inputs
| source.sha256 | 505cf43912e9480495c344c70260452e32aa2a73c546a026b3f100053b23ce91 |
|---|---|
| source.url | https://www.cpan.org/src/5.0/perl-5.44.0.tar.xz |
Platforms
windows
Recipe files
build.lua
-- win32/Makefile with nmake of Visual Studio, in the source tree, where it works. The architecture is the slice's, not
-- that of the environment's PROCESSOR_ARCHITECTURE; no settings of the registry (HKCU/HKLM\Software\Perl), and no
-- version directories in the prefix. nmake takes no MAKEFLAGS of make (the jobserver's). perl.exe finds its lib\ beside
-- its bin\, so the prefix may move.
function build(slice, options, deps)
local prefix = slice.prefix:gsub("/", "\\")
local args = { "nmake", "-nologo", "CCTYPE=MSVC145", "INST_TOP=" .. prefix, "INST_VER=", "INST_ARCH=",
"USE_NO_REGISTRY=define", "PROCESSOR_ARCHITECTURE=" .. (slice.arch == "arm64" and "ARM64" or "AMD64") }
local win32 = slice.source .. "/win32"
local env = { MAKEFLAGS = false, MFLAGS = false }
otok.run(args, { cwd = win32, env = env })
table.insert(args, "install")
otok.run(args, { cwd = win32, env = env })
return { programs = { perl = slice.prefix .. "/bin/perl.exe" } }
end
recipe.toml
# The otok recipe of Perl (https://github.com/apotocki/otok): the perl interpreter for the builds of other recipes, which
# name it as their toolchain (`perl = { default-recipe = "apotocki/perl" }`), on Windows: built from the release archive
# with MSVC and the nmake makefile of win32/, a native perl as OpenSSL's VC- targets need (MSYS2's is a Unix one).
[recipe]
api = 1
library = "perl"
name = "perl"
version = "5.44.0"
revision = 1
license = "Artistic-1.0-Perl OR GPL-1.0-or-later"
license-files = ["Artistic", "Copying"]
homepage = "https://www.perl.org"
description = "Perl 5, built from source."
keywords = ["perl", "interpreter", "tool"]
[tool]
programs = ["perl"]
[source]
url = "https://www.cpan.org/src/5.0/perl-5.44.0.tar.xz"
sha256 = "505cf43912e9480495c344c70260452e32aa2a73c546a026b3f100053b23ce91"
[platforms]
supported = ["windows"]
build-on = ["windows/msvc"]