openbsd-ports/lang/zig/Makefile
naddy c0f5554a06 remove useless CONFIGURE_STYLE=none
If a port should not attempt to run a configure script, simply don't
set CONFIGURE_STYLE at all.

The perl and pyton modules use CONFIGURE_STYLE=none for their own
purposes.  Also, some ports use it to disable a default provided
by Makefile.inc.  Apart from that, CONFIGURE_STYLE=none has no meaning.

ok semarie@ ajacoutot@ kn@ sthen@
2022-11-13 22:24:51 +00:00

67 lines
1.5 KiB
Makefile

# should be fine for ${LLVM_ARCHS}, but it needs insane amount of datasize
ONLY_FOR_ARCHS = amd64 arm64 powerpc64
BROKEN-amd64 = allocation failed
BROKEN-arm64 = generated binary segfault
BROKEN-powerpc64 = ld: error: undefined symbol: __subkf3 (and others)
COMMENT = zig compiler and toolchain
DISTNAME = zig-0.9.1
# see https://github.com/ziglang/zig/tree/0.9.x
ZIG_VERSION = 0.9.1
ZIG_COMMIT = 6d44a6222d6eba600deb7f16c124bfa30628fb60
CATEGORIES = lang
HOMEPAGE = https://ziglang.org/
MAINTAINER = Sebastien Marie <semarie@online.fr>
# MIT
PERMIT_PACKAGE = Yes
WANTLIB = ${COMPILER_LIBCXX} c m
MASTER_SITES = https://github.com/ziglang/zig/archive/
DISTFILES += zig-${ZIG_VERSION}-${ZIG_COMMIT:C/(........).*/\1/}${EXTRACT_SUFX}{${ZIG_COMMIT}${EXTRACT_SUFX}}
# C++11
COMPILER = base-clang ports-gcc
# link with static-libs of llvm
BUILD_DEPENDS += devel/llvm>=13,<14
BUILD_DEPENDS += devel/cmake \
devel/ninja
SEPARATE_BUILD = Yes
MAKE_ENV += CXXFLAGS="${CXXFLAGS}" \
MAKE_JOBS="${MAKE_JOBS}" \
WRKSRC="${WRKSRC}" \
WRKBUILD="${WRKBUILD}"
# command to build/install/test
BUILDCMD = cd ${WRKBUILD} && exec ${SETENV} ${MAKE_ENV} \
sh "${.CURDIR}/files/build.sh" \
"${ZIG_VERSION}+${ZIG_COMMIT:C/(.........).*/\1/}"
post-extract:
mkdir -p ${WRKSRC}
mv ${WRKDIR}/zig-${ZIG_COMMIT} ${WRKSRC}/zig
do-build:
${BUILDCMD} build
do-install:
${BUILDCMD} install
find ${PREFIX}/lib/zig -name '*.orig' -delete
do-test:
${BUILDCMD} test
.include <bsd.port.mk>