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