2006-03-19 22:43:05 +00:00
|
|
|
# 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
|
2007-01-17 01:24:35 +00:00
|
|
|
PORTREVISION= 1
|
2006-03-19 22:43:05 +00:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
2006-07-23 02:45:24 +00:00
|
|
|
MAINTAINER= acm@FreeBSD.org
|
2006-03-19 22:43:05 +00:00
|
|
|
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
|
|
|
|
|
2007-02-01 02:42:05 +00:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2007-01-17 01:24:35 +00:00
|
|
|
USE_XLIB= yes
|
2006-03-19 22:43:05 +00:00
|
|
|
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>
|