blob: e8bc3f2407e98fa004e363e0f5e0528b4c2ea186 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
PORTNAME= hare
PORTVERSION= g20230719
CATEGORIES= devel
MASTER_SITES= https://git.sr.ht/~sircmpwn/${PORTNAME}/archive/
PKGNAMESUFFIX= -lang
DISTNAME= 0919412b
DIST_SUBDIR= hare
MAINTAINER= se@FreeBSD.org
COMMENT= Hare language build system and standard library
WWW= https://harelang.org/
LICENSE= MPL20 GPLv3
LICENSE_COMB= multi
LICENSE_FILE= ${WRKSRC}/COPYING
ONLY_FOR_ARCHS= amd64 # aarch64 riscv64
BUILD_DEPENDS= harec:lang/harec \
qbe:devel/qbe \
scdoc:textproc/scdoc
RUN_DEPENDS= harec:lang/harec
MAKE_ARGS= ARCH=${ARCH:S/^amd64$/x86_64/} PREFIX=${PREFIX}
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTNAME}
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000
BROKEN= pre-FreeBSD-13 assembler is not compatible with generated files
.endif
do-build:
${CP} ${WRKSRC}/config.example.mk ${WRKSRC}/config.mk
cd ${WRKSRC} && ${MAKE} ${MAKE_ARGS}
post-stage:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
${MV} ${STAGEDIR}${DATADIR}/src/hare/* ${STAGEDIR}${DATADIR}/
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/
${INSTALL_DATA} ${WRKSRC}/docs/*.md ${STAGEDIR}${DOCSDIR}/
do-test:
cd ${WRKSRC} && ${MAKE} ${MAKE_ARGS} check
.include <bsd.port.post.mk>
|