1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/devel/gpsim/Makefile
John Marino c02a62088f devel/gpsim: Upgrade version 0.22.0 => 0.27.0 and stage
PR:		191815
Submitted by:	Ports Fury
2014-07-30 21:51:14 +00:00

66 lines
1.7 KiB
Makefile

# Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
# $FreeBSD$
PORTNAME= gpsim
PORTVERSION= 0.27.0
CATEGORIES= devel
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Software simulator for Microchip PIC microcontrollers
LICENSE= GPLv2 LGPL21
LICENSE_COMB= multi
BUILD_DEPENDS= gpasm:${PORTSDIR}/devel/gputils
LIB_DEPENDS= libpopt.so:${PORTSDIR}/devel/popt
RUN_DEPENDS= gpasm:${PORTSDIR}/devel/gputils
USES= libtool pathfix pkgconfig
USE_GNOME= glib20
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= DOCS EXAMPLES GTK2
OPTIONS_DEFAULT= GTK2
OPTIONS_SUB= yes
GTK2_LIB_DEPENDS= libgtkextra-x11-2.0.so:${PORTSDIR}/x11-toolkits/gtkextra2
GTK2_USE= gnome=gtk20
GTK2_CONFIGURE_ENABLE= gui
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGTK2}
DESKTOP_ENTRIES="GPSim" "" "" "gpsim" "Development;GTK;" ""
.endif
post-patch:
.for i in gpsim/Makefile.in modules/Makefile.in
@${REINPLACE_CMD} -e \
's|-lstdc++||' ${WRKSRC}/${i}
.endfor
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in AUTHORS ChangeLog PROCESSORS README* doc/gpsim.pdf
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} \
${STAGEDIR}${DOCSDIR})
.endfor
.for i in led_test logic_test mod_test usart_gui usart_test
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/modules/${i}
(cd ${WRKSRC}/examples/modules/${i} && ${INSTALL_DATA} *.asm *.stc \
${STAGEDIR}${EXAMPLESDIR}/modules/${i})
.endfor
.for i in digital_stim p16f628_test stack_test
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/projects/${i}
(cd ${WRKSRC}/examples/projects/${i} && ${INSTALL_DATA} *.asm *.stc \
${STAGEDIR}${EXAMPLESDIR}/projects/${i})
.endfor
.include <bsd.port.mk>