Lines 1-17
Link Here
|
1 |
# Created by: Felix Palmen <felix@palmen-it.de> |
1 |
# Created by: Felix Palmen <felix@palmen-it.de> |
2 |
|
2 |
|
3 |
PORTNAME= simavr |
3 |
PORTNAME= simavr |
4 |
PORTVERSION= 1.6 |
4 |
PORTVERSION= 1.7 |
5 |
PORTREVISION= 2 |
|
|
6 |
DISTVERSIONPREFIX= v |
5 |
DISTVERSIONPREFIX= v |
7 |
CATEGORIES= devel emulators |
6 |
CATEGORIES= devel emulators |
8 |
DIST_SUBDIR= ${PORTNAME} |
|
|
9 |
|
10 |
PATCH_DIST_STRIP= -p1 |
11 |
PATCH_SITES= https://github.com/buserror/simavr/commit/ |
12 |
PATCHFILES= 86264ad6d0b6b921130e293769d8ebaec512eecd.diff \ |
13 |
e5ea627259daae64ddbe67402b6d121e0143cd21.diff \ |
14 |
082939e64e1632d8ea0b1d6ebea93ca832c9e762.diff |
15 |
|
7 |
|
16 |
MAINTAINER= felix@palmen-it.de |
8 |
MAINTAINER= felix@palmen-it.de |
17 |
COMMENT= Simulator for several Atmel AVR chips |
9 |
COMMENT= Simulator for several Atmel AVR chips |
Lines 31-37
GH_ACCOUNT= buserror
Link Here
|
31 |
USE_LDCONFIG= yes |
23 |
USE_LDCONFIG= yes |
32 |
|
24 |
|
33 |
ALL_TARGET= build-parts |
25 |
ALL_TARGET= build-parts |
34 |
MAKE_ARGS= "RELEASE=1 PREFIX=${PREFIX} DESTDIR=${STAGEDIR}${PREFIX}" |
26 |
DESTDIRNAME= DUMMYDESTDIR |
|
|
27 |
# Avoid default DESTDIR handling, so we can set a custom |
28 |
# one that includes PREFIX, as required by unusual upstream |
29 |
# install targets |
30 |
MAKE_ARGS= RELEASE=1 PREFIX=${PREFIX} DESTDIR=${STAGEDIR}${PREFIX} |
31 |
MAKE_ENV= SIMAVR_VERSION=v${PORTVERSION} |
35 |
|
32 |
|
36 |
OPTIONS_DEFINE= DOCS EXAMPLES |
33 |
OPTIONS_DEFINE= DOCS EXAMPLES |
37 |
|
34 |
|
Lines 42-47
AVR_STRIP_CMD?= avr-strip
Link Here
|
42 |
DUMPMACHINE= ${CC} -dumpmachine |
39 |
DUMPMACHINE= ${CC} -dumpmachine |
43 |
OBJDIRNAME= obj-$$(${DUMPMACHINE}) |
40 |
OBJDIRNAME= obj-$$(${DUMPMACHINE}) |
44 |
|
41 |
|
|
|
42 |
post-patch: |
43 |
${REINPLACE_CMD} -e 's:Linux:FreeBSD:' \ |
44 |
-e 's:unknown:v${PORTVERSION}:' \ |
45 |
${WRKSRC}/simavr/Makefile \ |
46 |
${WRKSRC}/examples/parts/Makefile |
47 |
|
45 |
post-install: |
48 |
post-install: |
46 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/simavr |
49 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/simavr |
47 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libsimavr.so.1 |
50 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libsimavr.so.1 |
Lines 53-59
post-install-DOCS-on:
Link Here
|
53 |
${INSTALL_DATA} ${WRKSRC}/doc/simavr_callgraph.pdf ${STAGEDIR}${DOCSDIR} |
56 |
${INSTALL_DATA} ${WRKSRC}/doc/simavr_callgraph.pdf ${STAGEDIR}${DOCSDIR} |
54 |
|
57 |
|
55 |
post-install-EXAMPLES-on: |
58 |
post-install-EXAMPLES-on: |
56 |
.for BOARDELF in ds1338,ds1338demo hd44780,charlcd i2ctest ledramp simduino ssd1306,ssd1306demo timer_64led |
59 |
.for BOARDELF in ds1338,ds1338demo hd44780,charlcd i2ctest ledramp rotenc,rotenc_test simduino ssd1306,ssd1306demo timer_64led |
57 |
BOARDELF=${BOARDELF}; \ |
60 |
BOARDELF=${BOARDELF}; \ |
58 |
BOARD=$${BOARDELF%%,*}; \ |
61 |
BOARD=$${BOARDELF%%,*}; \ |
59 |
ELF=$${BOARDELF##*,}; \ |
62 |
ELF=$${BOARDELF##*,}; \ |
Lines 73-78
post-install-EXAMPLES-on:
Link Here
|
73 |
hd44780/atmega48_charlcd \ |
76 |
hd44780/atmega48_charlcd \ |
74 |
i2ctest/atmega1280_i2ctest \ |
77 |
i2ctest/atmega1280_i2ctest \ |
75 |
ledramp/atmega48_ledramp \ |
78 |
ledramp/atmega48_ledramp \ |
|
|
79 |
rotenc/atmega32_rotenc_test \ |
76 |
ssd1306/atmega32_ssd1306 \ |
80 |
ssd1306/atmega32_ssd1306 \ |
77 |
timer_64led/atmega168_timer_64led |
81 |
timer_64led/atmega168_timer_64led |
78 |
${AVR_STRIP_CMD} ${STAGEDIR}${EXAMPLESDIR}/board_${AXF}.axf |
82 |
${AVR_STRIP_CMD} ${STAGEDIR}${EXAMPLESDIR}/board_${AXF}.axf |