freebsd-ports/devel/gpsim/Makefile
Jean-Yves Lefort 6bb0d30e1b Add gpsim.
gpsim is a full-featured software simulator for Microchip PIC microcontrollers
distributed under the GNU General Public License.

gpsim has been designed to be as accurate as possible. Accuracy includes the
entire PIC - from the core to the I/O pins and including ALL of the internal
peripherals. Thus it's possible to create stimuli and tie them to the I/O pins
and test the PIC the same PIC the same way you would in the real world.

gpsim has been designed to be as fast as possible. Real time simulation speeds
of 20Mhz pics are possible. A 'goto $' program runs at the same speed as a
25Mhz pic when simulated on my 400Mhz PII Linux Box. Of course, as you add
stimuli and begin interacting with peripherals, the performance drops. But
it's still fast!

gpsim has been designed to be as useful as possible (at least that's the
intent - honest). The standard simulation paradigm including breakpoints,
single stepping, disassembling, memory inspect & change, and so on has been
implemented. In addition, gpsim supports many debugging features that are only
available with in-circuit emulators. For example, a continuous trace buffer
tracks every action of the simulator (whether you want it or not). Also, it's
possible to set read and write break points on values (e.g. break if a
specific value is read from or written to a register).

WWW: http://www.dattalo.com/gnupic/gpsim.html

PR:		ports/94436
Submitted by:	Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-03-19 22:43:05 +00:00

47 lines
1.2 KiB
Makefile

# New ports collection makefile for: gpsim
# Date created: 2006-03-13
# Whom: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
#
# $FreeBSD$
#
PORTNAME= gpsim
PORTVERSION= 0.21.11
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= acardenas@bsd.org.pe
COMMENT= A software simulator for Microchip PIC microcontrollers
LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt \
gtkextra-x11-2.0.1:${PORTSDIR}/x11-toolkits/gtkextra2
RUN_DEPENDS= gpasm:${PORTSDIR}/devel/gputils
USE_X_PREFIX= yes
GNU_CONFIGURE= yes
USE_GCC= 3.4+
INSTALLS_SHLIB= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
EXTRA_PATCHES= ${FILESDIR}/4patch-*
.endif
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for FILE in AUTHORS ChangeLog PROCESSORS README* doc/gpsim.pdf
${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
.endif
${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC}/examples && \
${FIND} * -type d -exec ${MKDIR} "${EXAMPLESDIR}/{}" \; && \
${FIND} -E * -type f -iregex ".*\.(asm|stc|inc)" -exec ${INSTALL_DATA} "{}" "${EXAMPLESDIR}/{}" \;
.include <bsd.port.post.mk>