Lines 1-6
Link Here
|
1 |
PORTNAME= mecrisp-stellaris |
1 |
PORTNAME= mecrisp-stellaris |
2 |
DISTVERSION= 2.5.9 |
2 |
PORTVERSION= 2.6.1 |
3 |
PORTREVISION= 1 |
|
|
4 |
CATEGORIES= lang |
3 |
CATEGORIES= lang |
5 |
MASTER_SITES= SF/mecrisp |
4 |
MASTER_SITES= SF/mecrisp |
6 |
|
5 |
|
Lines 10-58
COMMENT= Native code Forth system for ARM
Link Here
|
10 |
LICENSE= GPLv3+ |
9 |
LICENSE= GPLv3+ |
11 |
LICENSE_FILE= ${WRKSRC}/COPYING |
10 |
LICENSE_FILE= ${WRKSRC}/COPYING |
12 |
|
11 |
|
|
|
12 |
.if defined(QEMU_EMULATING) |
13 |
IGNORE_aarch64= fails to build with qemu-user-static: \ |
14 |
qemu-aarch64-static cannot execute armv7 binaries |
15 |
.endif |
16 |
IGNORE_FreeBSD_12_aarch64= OS too old to run armv7 binaries on arm64, upgrade to FreeBSD 13 |
17 |
ONLY_FOR_ARCHS= aarch64 armv6 armv7 |
18 |
ONLY_FOR_ARCHS_REASON= written in ARM assembly |
19 |
|
13 |
BUILD_DEPENDS= arm-none-eabi-binutils>2.25:devel/binutils@arm_none_eabi |
20 |
BUILD_DEPENDS= arm-none-eabi-binutils>2.25:devel/binutils@arm_none_eabi |
14 |
|
21 |
|
|
|
22 |
# stripping eats our hand-crafted ELF binaries, so don't do that |
23 |
# the binaries are free of symbols or stuff like that anyway |
24 |
STRIP= |
25 |
|
26 |
PKGMESSAGE= pkg-message-${ARCH} |
27 |
|
15 |
OPTIONS_DEFINE= EXTRAS |
28 |
OPTIONS_DEFINE= EXTRAS |
16 |
OPTIONS_DEFAULT= EXTRAS |
29 |
OPTIONS_DEFAULT= EXTRAS |
17 |
EXTRAS_DESC= Add disassembler and math library to Forth core |
30 |
EXTRAS_DESC= Add disassembler and math library to Forth core |
18 |
EXTRAS_VARS= PROGRAM=mecrisp-stellaris-freebsd-with-disassembler-and-math |
31 |
EXTRAS_VARS= PROGRAM=mecrisp-stellaris-freebsd-with-disassembler-and-math |
19 |
EXTRAS_VARS_OFF= PROGRAM=mecrisp-stellaris-freebsd |
32 |
EXTRAS_VARS_OFF= PROGRAM=mecrisp-stellaris-freebsd |
20 |
|
33 |
|
21 |
.include <bsd.port.pre.mk> |
34 |
BINSUFFIX_armv6= -armv6 |
22 |
|
35 |
BINSUFFIX= ${BINSUFFIX_${ARCH}} |
23 |
.if ${OSVERSION} < 1300000 |
|
|
24 |
ONLY_FOR_ARCHS= armv6 armv7 |
25 |
.else |
26 |
ONLY_FOR_ARCHS= aarch64 armv6 armv7 |
27 |
.endif |
28 |
ONLY_FOR_ARCHS_REASON= written in ARM assembly |
29 |
|
30 |
.if ${ARCH} == "aarch64" && defined(QEMU_EMULATING) |
31 |
IGNORE= fails to build with qemu-user-static: \ |
32 |
qemu-aarch64-static cannot execute armv7 binaries |
33 |
.endif |
34 |
|
35 |
PKGMESSAGE= pkg-message-${ARCH} |
36 |
|
37 |
AFLAGS.armv6= -march=armv6 --defsym m0core=1 |
38 |
MAKE_ENV+= AFLAGS="${AFLAGS.${ARCH}}" |
39 |
|
40 |
# stripping eats our hand-crafted ELF binaries, so don't do that |
41 |
# the binaries are free of symbols or stuff like that anyway |
42 |
STRIP= |
43 |
|
36 |
|
44 |
# Can't use the release script as it tries to build a bunch of stuff |
37 |
# Can't use the release script as it tries to build a bunch of stuff |
45 |
# that won't build correctly. This does the relevant parts manually. |
38 |
# that won't build correctly. This does the relevant parts manually. |
46 |
do-build: |
39 |
do-build: |
47 |
cd ${WRKSRC}/mecrisp-stellaris-source/freebsd-ra && ${SETENV} ${MAKE_ENV} ${SH} -v assemble |
40 |
cd ${WRKSRC}/mecrisp-stellaris-source/freebsd-ra && ${SH} -v assemble |
48 |
${CP} ${WRKSRC}/mecrisp-stellaris-source/freebsd-ra/mecrisp-stellaris-freebsd ${WRKSRC}/freebsd-ra/ |
41 |
${CP} ${WRKSRC}/mecrisp-stellaris-source/freebsd-ra/mecrisp-stellaris-freebsd${BINSUFFIX} \ |
49 |
cd ${WRKSRC}/freebsd-ra && ${SETENV} ${MAKE_ENV} ${SH} -v buildcore-freebsd |
42 |
${WRKSRC}/freebsd-ra/mecrisp-stellaris-freebsd |
|
|
43 |
cd ${WRKSRC}/freebsd-ra && ${SH} -v buildcore-freebsd |
50 |
|
44 |
|
51 |
do-install: |
45 |
do-install: |
52 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
46 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
53 |
${INSTALL_MAN} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} |
47 |
${INSTALL_MAN} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} |
54 |
${INSTALL_MAN} ${WRKSRC}/KNOWN-ISSUES ${STAGEDIR}${DOCSDIR} |
48 |
${INSTALL_MAN} ${WRKSRC}/KNOWN-ISSUES ${STAGEDIR}${DOCSDIR} |
55 |
cd ${WRKSRC}/common; ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} |
49 |
cd ${WRKSRC}/common && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} |
56 |
${INSTALL_PROGRAM} ${WRKSRC}/freebsd-ra/${PROGRAM} ${STAGEDIR}${PREFIX}/bin/mecrisp-stellaris |
50 |
${INSTALL_PROGRAM} ${WRKSRC}/freebsd-ra/${PROGRAM} ${STAGEDIR}${PREFIX}/bin/mecrisp-stellaris |
57 |
|
51 |
|
58 |
.include <bsd.port.post.mk> |
52 |
.include <bsd.port.mk> |