openbsd-ports/lang/tcc/Makefile
bcallah 66145b6c16 Update to latest tcc.
Most notable updates are .gnu_hash support and outputting DWARF debug info.
2022-11-29 14:08:04 +00:00

38 lines
929 B
Makefile

ONLY_FOR_ARCHS = amd64 arm64 armv7 i386 riscv64
COMMENT = tiny C compiler
DISTNAME = tcc-0.9.27.20221129
CATEGORIES = lang
# 0.9.27 release pre-dates OpenBSD support; use GH_COMMIT
GH_ACCOUNT = TinyCC
GH_PROJECT = tinycc
GH_COMMIT = afcdaf121a952e4d2d0d710d69f78b3177720539
HOMEPAGE = https://bellard.org/tcc/
MAINTAINER = Brian Callahan <bcallah@openbsd.org>
# LGPLv2.1+
# stdatomic.h: Apache 2.0 with LLVM exceptions
# dwarf.h: LGPLv3+ or GPLv2+
PERMIT_PACKAGE = Yes
WANTLIB += c m pthread
# --with-selinux (misnomer for mmap/mprotect) required for -run
CONFIGURE_STYLE = simple
CONFIGURE_ARGS = --cc="${CC}" \
--config-pie \
--docdir="${PREFIX}/share/doc/tcc" \
--dwarf=5 \
--extra-cflags="${CFLAGS} ${GIT_HASH}" \
--infodir="${PREFIX}/info" \
--mandir="${PREFIX}/man" \
--with-selinux
USE_GMAKE = Yes
GIT_HASH = -DTCC_GITHASH='\\\"mob:`echo ${GH_COMMIT} | cut -c1-7`\\\"'
.include <bsd.port.mk>