blob: 827bc8f69ae7f5c0846dda0f31945af66f9a37d2 (
plain)
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
|
PORTNAME= mecrisp-stellaris
PORTVERSION= 2.6.3
CATEGORIES= lang
MASTER_SITES= SF/mecrisp
MAINTAINER= fuz@fuz.su
COMMENT= Native code Forth system for ARM
WWW= http://mecrisp.sourceforge.net
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
.if defined(QEMU_EMULATING)
IGNORE_aarch64= fails to build with qemu-user-static: \
qemu-aarch64-static cannot execute armv7 binaries
.endif
IGNORE_FreeBSD_12_aarch64= OS too old to run armv7 binaries on arm64, upgrade to FreeBSD 13
ONLY_FOR_ARCHS= aarch64 armv6 armv7
ONLY_FOR_ARCHS_REASON= written in ARM assembly
BUILD_DEPENDS= arm-none-eabi-binutils>2.25:devel/binutils@arm_none_eabi
# stripping eats our hand-crafted ELF binaries, so don't do that
# the binaries are free of symbols or stuff like that anyway
STRIP=
PKGMESSAGE= pkg-message-${ARCH}
BINSUFFIX_armv6= -armv6
BINSUFFIX= ${BINSUFFIX_${ARCH}}
# Can't use the release script as it tries to build a bunch of stuff
# that won't build correctly. This does the relevant parts manually.
do-build:
cd ${WRKSRC}/mecrisp-stellaris-source/freebsd-ra && ${SH} -v assemble
${CP} ${WRKSRC}/mecrisp-stellaris-source/freebsd-ra/mecrisp-stellaris-freebsd${BINSUFFIX} \
${WRKSRC}/freebsd-ra/mecrisp-stellaris-freebsd
cd ${WRKSRC}/freebsd-ra && ${SH} -v buildcore-freebsd
do-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/KNOWN-ISSUES ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/common && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
${INSTALL_PROGRAM} ${WRKSRC}/freebsd-ra/mecrisp-stellaris-freebsd-with-disassembler-and-math \
${STAGEDIR}${PREFIX}/bin/mecrisp-stellaris
.include <bsd.port.mk>
|