FreeBSD Bugzilla – Attachment 169028 Details for
Bug 208475
[new port]: devel/simavr Simulator for several Atmel AVR chips
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
the devel/simavr port (fixed)
simavr.shar (text/plain), 12.24 KB, created by
Felix Palmen
on 2016-04-06 09:12:13 UTC
(
hide
)
Description:
the devel/simavr port (fixed)
Filename:
MIME Type:
Creator:
Felix Palmen
Created:
2016-04-06 09:12:13 UTC
Size:
12.24 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># simavr ># simavr/Makefile ># simavr/distinfo ># simavr/files ># simavr/files/patch-examples_Makefile.opengl ># simavr/files/patch-examples_parts_uart__pty.c ># simavr/files/patch-simavr_Makefile ># simavr/pkg-descr ># simavr/pkg-plist ># >echo c - simavr >mkdir -p simavr > /dev/null 2>&1 >echo x - simavr/Makefile >sed 's/^X//' >simavr/Makefile << 'e8e0d9f1eec53edf3c4aace4cc438db8' >X# Created by: Felix Palmen <felix@palmen-it.de> >X# $FreeBSD$ >X >XPORTNAME= simavr >XPORTVERSION= 1.3 >XCATEGORIES= devel >X >XPATCH_DIST_STRIP= -p1 >X >XMAINTAINER= felix@palmen-it.de >XCOMMENT= Simulator for several Atmel AVR chips >X >XLICENSE= GPLv3 >X >XBUILD_DEPENDS= avr-gcc:devel/avr-gcc \ >X bash:shells/bash \ >X ${LOCALBASE}/avr/lib/libc.a:devel/avr-libc >X >XUSE_GITHUB= yes >XGH_ACCOUNT= buserror >XGH_TAGNAME= v${PORTVERSION} >X >XUSES= gmake pkgconfig >XALL_TARGET= build-simavr >XMAKE_ARGS= "RELEASE=1 PREFIX=${PREFIX} DESTDIR=${STAGEDIR}${PREFIX}" >X >XUSE_LDCONFIG= yes >X >XOPTIONS_DEFINE= DOCS EXAMPLES THREADSAFE >XTHREADSAFE_DESC= Add a patch to make debugging output thread-safe >X >XDOCS_ALL_TARGET= doc >XDOCS_USE= tex=latex:build tex=pdftex:build tex=texmf:build >X >XEXAMPLES_ALL_TARGET= build-examples >XEXAMPLES_USE= xorg=xdamage xorg=xcb xorg=xext xorg=xfixes \ >X xorg=xrandr gl=glut >X >XTHREADSAFE_PATCH_SITES= https://github.com/zirias/simavr/commit/ >XTHREADSAFE_PATCHFILES= 4b7c8c5245e1bbb8cac04948564622f47178b5f0.diff >X >XAVR_STRIP_CMD?= avr-strip >XDUMPMACHINE= ${CC} -dumpmachine >XOBJDIRNAME= obj-$$(${DUMPMACHINE}) >X >Xpost-install: >X ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/simavr >X ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libsimavr.so.1 >X >Xpost-install-DOCS-on: >X ${MKDIR} ${STAGEDIR}${DOCSDIR} >X ${INSTALL_MAN} ${WRKSRC}/doc/manual/manual.pdf ${STAGEDIR}${DOCSDIR} >X ${INSTALL_MAN} ${WRKSRC}/doc/simavr_callgraph.pdf ${STAGEDIR}${DOCSDIR} >X >Xpost-install-EXAMPLES-on: >X.for BOARDELF in hd77480,charlcd i2ctest ledramp simduino ssd1306,ssd1306demo timer_64led >X BOARDELF=${BOARDELF}; \ >X BOARD=$${BOARDELF%%,*}; \ >X ELF=$${BOARDELF##*,}; \ >X ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/board_$${BOARD}; \ >X ${INSTALL_PROGRAM} \ >X ${WRKSRC}/examples/board_$${BOARD}/${OBJDIRNAME}/$${ELF}.elf \ >X ${STAGEDIR}${EXAMPLESDIR}/board_$${BOARD}/$${ELF}; \ >X ${INSTALL_DATA} ${WRKSRC}/examples/board_$${BOARD}/*.[aihc]* \ >X ${WRKSRC}/examples/board_$${BOARD}/README \ >X ${WRKSRC}/examples/board_$${BOARD}/Makefile \ >X ${STAGEDIR}${EXAMPLESDIR}/board_$${BOARD}/ >X.endfor >X.for AXF in \ >X hd77480/atmega48_charlcd \ >X i2ctest/atmega1280_i2ctest \ >X ledramp/atmega48_ledramp \ >X ssd1306/atmega32_ssd1306 \ >X timer_64led/atmega168_timer_64led >X ${AVR_STRIP_CMD} ${STAGEDIR}${EXAMPLESDIR}/board_${AXF}.axf >X.endfor >X.for EXDIR in parts shared >X ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/${EXDIR} >X ${INSTALL_DATA} ${WRKSRC}/examples/${EXDIR}/*.[hc] \ >X ${STAGEDIR}${EXAMPLESDIR}/${EXDIR} >X.endfor >X ${INSTALL_DATA} ${WRKSRC}/Makefile.common ${STAGEDIR}${EXAMPLESDIR} >X ${INSTALL_DATA} ${WRKSRC}/examples/Makefile ${STAGEDIR}${EXAMPLESDIR} >X ${INSTALL_DATA} ${WRKSRC}/examples/Makefile.opengl \ >X ${STAGEDIR}${EXAMPLESDIR} >X >X.include <bsd.port.mk> >e8e0d9f1eec53edf3c4aace4cc438db8 >echo x - simavr/distinfo >sed 's/^X//' >simavr/distinfo << '923554f08b24a4a27969c551810ae20c' >XSHA256 (buserror-simavr-1.3-v1.3_GH0.tar.gz) = ddaaf9745b62b0c032a773365375a6f1b12c50ff4a89ae4d531e7b516846e357 >XSIZE (buserror-simavr-1.3-v1.3_GH0.tar.gz) = 741336 >XSHA256 (4b7c8c5245e1bbb8cac04948564622f47178b5f0.diff) = 0bb3af41d9a64a372b64d2849bcfb9da00a685f54a31ee70fd7caf26d7db9c6c >XSIZE (4b7c8c5245e1bbb8cac04948564622f47178b5f0.diff) = 1551 >923554f08b24a4a27969c551810ae20c >echo c - simavr/files >mkdir -p simavr/files > /dev/null 2>&1 >echo x - simavr/files/patch-examples_Makefile.opengl >sed 's/^X//' >simavr/files/patch-examples_Makefile.opengl << '97e71e3c4878600bb6be898e85de2330' >X--- examples/Makefile.opengl.orig 2016-01-19 09:41:55 UTC >X+++ examples/Makefile.opengl >X@@ -11,8 +11,8 @@ else >X ifeq (${shell uname -o}, Msys) >X LDFLAGS += -mwindows -lopengl32 -lfreeglut >X else >X-CPPFLAGS += ${shell pkg-config --cflags glu glut} -DFREEBSD=1 >X-LDFLAGS += ${shell pkg-config --libs glu glut} >X+CPPFLAGS += ${shell pkg-config --cflags glu} -DFREEBSD=1 >X+LDFLAGS += ${shell pkg-config --libs glu} -lglut >X endif >X endif >X endif >97e71e3c4878600bb6be898e85de2330 >echo x - simavr/files/patch-examples_parts_uart__pty.c >sed 's/^X//' >simavr/files/patch-examples_parts_uart__pty.c << 'a429edaa1db0a8f7fa7c84d032130c6a' >X--- examples/parts/uart_pty.c.orig 2016-01-19 09:41:55 UTC >X+++ examples/parts/uart_pty.c >X@@ -30,8 +30,15 @@ >X #ifdef __APPLE__ >X #include <util.h> >X #else >X+#ifdef FREEBSD >X+#include <sys/types.h> >X+#include <sys/ioctl.h> >X+#include <termios.h> >X+#include <libutil.h> >X+#else >X #include <pty.h> >X #endif >X+#endif >X >X #include "uart_pty.h" >X #include "avr_uart.h" >a429edaa1db0a8f7fa7c84d032130c6a >echo x - simavr/files/patch-simavr_Makefile >sed 's/^X//' >simavr/files/patch-simavr_Makefile << '3fd6291f184cabdcd2b3b9d8f93698b9' >X--- simavr/Makefile.orig 2016-01-19 09:41:55 UTC >X+++ simavr/Makefile >X@@ -73,12 +73,9 @@ ${OBJ}/libsimavr.so : ${OBJ}/libsimavr. >X ln -sf libsimavr.so.1 $@ >X >X libsimavr : config ${OBJ}/libsimavr.a >X-# shared library won't work that easily on non-linux >X-ifeq (${shell uname}, Linux) >X libsimavr : ${OBJ}/libsimavr.so >X-endif >X >X-${OBJ}/${target}.elf : ${OBJ}/${target}.o >X+${OBJ}/${target}.elf : ${OBJ}/${target}.o | libsimavr >X >X ${target} : ${OBJ}/${target}.elf >X >X@@ -103,15 +100,13 @@ install : all >X $(INSTALL) -m644 sim/avr/*.h $(DESTDIR)/include/simavr/avr/ >X $(MKDIR) $(DESTDIR)/lib >X $(INSTALL) ${OBJ}/libsimavr.a $(DESTDIR)/lib/ >X- $(MKDIR) $(DESTDIR)/lib/pkgconfig/ >X+ $(MKDIR) $(DESTDIR)/libdata/pkgconfig/ >X sed -e "s|PREFIX|${PREFIX}|g" -e "s|VERSION|${SIMAVR_VERSION}|g" \ >X- simavr-avr.pc >$(DESTDIR)/lib/pkgconfig/simavr-avr.pc >X+ simavr-avr.pc >$(DESTDIR)/libdata/pkgconfig/simavr-avr.pc >X sed -e "s|PREFIX|${PREFIX}|g" -e "s|VERSION|${SIMAVR_VERSION}|g" \ >X- simavr.pc >$(DESTDIR)/lib/pkgconfig/simavr.pc >X-ifeq (${shell uname}, Linux) >X+ simavr.pc >$(DESTDIR)/libdata/pkgconfig/simavr.pc >X $(INSTALL) ${OBJ}/libsimavr.so.1 $(DESTDIR)/lib/ >X ln -sf libsimavr.so.1 $(DESTDIR)/lib/libsimavr.so >X-endif >X $(MKDIR) $(DESTDIR)/bin >X $(INSTALL) ${OBJ}/${target}.elf $(DESTDIR)/bin/simavr >X >3fd6291f184cabdcd2b3b9d8f93698b9 >echo x - simavr/pkg-descr >sed 's/^X//' >simavr/pkg-descr << '9cb35d1c8873cdfd47a3059c6009b74e' >XThis is a port of simavr, an AVR simulator using avr-gcc's register >Xdefinitions. >X >XWWW: https://github.com/buserror/simavr >9cb35d1c8873cdfd47a3059c6009b74e >echo x - simavr/pkg-plist >sed 's/^X//' >simavr/pkg-plist << 'd5bca008827c365a850f4f1931a22d04' >Xbin/simavr >Xinclude/simavr/avr/avr_mcu_section.h >Xinclude/simavr/avr_adc.h >Xinclude/simavr/avr_bitbang.h >Xinclude/simavr/avr_eeprom.h >Xinclude/simavr/avr_extint.h >Xinclude/simavr/avr_flash.h >Xinclude/simavr/avr_ioport.h >Xinclude/simavr/avr_lin.h >Xinclude/simavr/avr_spi.h >Xinclude/simavr/avr_timer.h >Xinclude/simavr/avr_twi.h >Xinclude/simavr/avr_uart.h >Xinclude/simavr/avr_usb.h >Xinclude/simavr/avr_watchdog.h >Xinclude/simavr/fifo_declare.h >Xinclude/simavr/sim_avr.h >Xinclude/simavr/sim_avr_types.h >Xinclude/simavr/sim_core.h >Xinclude/simavr/sim_core_config.h >Xinclude/simavr/sim_core_decl.h >Xinclude/simavr/sim_cycle_timers.h >Xinclude/simavr/sim_elf.h >Xinclude/simavr/sim_gdb.h >Xinclude/simavr/sim_hex.h >Xinclude/simavr/sim_interrupts.h >Xinclude/simavr/sim_io.h >Xinclude/simavr/sim_irq.h >Xinclude/simavr/sim_network.h >Xinclude/simavr/sim_regbit.h >Xinclude/simavr/sim_time.h >Xinclude/simavr/sim_vcd_file.h >Xlib/libsimavr.a >Xlib/libsimavr.so >Xlib/libsimavr.so.1 >Xlibdata/pkgconfig/simavr-avr.pc >Xlibdata/pkgconfig/simavr.pc >X%%PORTDOCS%%%%DOCSDIR%%/manual.pdf >X%%PORTDOCS%%%%DOCSDIR%%/simavr_callgraph.pdf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Makefile >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Makefile.common >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Makefile.opengl >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_hd77480/Makefile >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_hd77480/README >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_hd77480/atmega48_charlcd.axf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_hd77480/atmega48_charlcd.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_hd77480/avr_hd44780.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_hd77480/avr_hd44780.h >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_hd77480/avr_hd44780_conf.h >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_hd77480/charlcd >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_hd77480/charlcd.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_hd77480/font.h >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_i2ctest/Makefile >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_i2ctest/README >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_i2ctest/atmega1280_i2ctest.axf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_i2ctest/atmega1280_i2ctest.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_i2ctest/i2ctest >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_i2ctest/i2ctest.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_ledramp/Makefile >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_ledramp/README >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_ledramp/atmega48_ledramp.axf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_ledramp/atmega48_ledramp.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_ledramp/ledramp >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_ledramp/ledramp.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_simduino/ATmegaBOOT_168_atmega328.ihex >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_simduino/Makefile >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_simduino/README >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_simduino/atmega328p_dummy_blinky.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_simduino/atmega328p_dummy_blinky.hex >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_simduino/simduino >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_simduino/simduino.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_ssd1306/Makefile >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_ssd1306/README >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_ssd1306/atmega32_ssd1306.axf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_ssd1306/atmega32_ssd1306.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_ssd1306/images.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_ssd1306/images.h >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_ssd1306/ssd1306.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_ssd1306/ssd1306.h >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_ssd1306/ssd1306demo >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_ssd1306/ssd1306demo.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_timer_64led/Makefile >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_timer_64led/README >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_timer_64led/atmega168_timer_64led.axf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_timer_64led/atmega168_timer_64led.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_timer_64led/atmega168_timer_64led.h >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_timer_64led/timer_64led >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/board_timer_64led/timer_64led.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parts/ac_input.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parts/ac_input.h >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parts/button.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parts/button.h >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parts/hc595.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parts/hc595.h >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parts/hd44780.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parts/hd44780.h >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parts/hd44780_glut.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parts/hd44780_glut.h >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parts/i2c_eeprom.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parts/i2c_eeprom.h >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parts/ssd1306_glut.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parts/ssd1306_glut.h >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parts/ssd1306_virt.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parts/ssd1306_virt.h >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parts/uart_pty.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parts/uart_pty.h >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parts/uart_udp.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parts/uart_udp.h >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parts/vhci_usb.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/parts/vhci_usb.h >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/shared/arduidiot_pins.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/shared/arduidiot_pins.h >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/shared/avr_twi_master.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/shared/avr_twi_master.h >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/shared/twimaster.c >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/shared/twimaster.h >d5bca008827c365a850f4f1931a22d04 >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 208475
:
168913
| 169028