1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/devel/gpsim/Makefile
Dmitry Marakasov 3534261def - Switch to USES=localbase
- Switch to options helpers
2017-07-05 10:23:34 +00:00

61 lines
1.6 KiB
Makefile

# Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
# $FreeBSD$
PORTNAME= gpsim
PORTVERSION= 0.29.0
PORTREVISION= 1
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:devel/gputils
LIB_DEPENDS= libpopt.so:devel/popt
RUN_DEPENDS= gpasm:devel/gputils
USES= gmake libtool localbase:ldflags pathfix pkgconfig readline
USE_GNOME= glib20
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
OPTIONS_DEFINE= DOCS EXAMPLES GTK2
OPTIONS_DEFAULT= GTK2
OPTIONS_SUB= yes
GTK2_LIB_DEPENDS= libgtkextra-x11-2.0.so:x11-toolkits/gtkextra2
GTK2_USE= gnome=gtk20
GTK2_CONFIGURE_ENABLE= gui
GTK2_DESKTOP_ENTRIES= "GPSim" "" "" "gpsim" "Development;GTK;" ""
post-patch:
.for i in gpsim/Makefile.in modules/Makefile.in
@${REINPLACE_CMD} -e \
's|-lstdc++||' ${WRKSRC}/${i}
.endfor
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in AUTHORS ChangeLog PROCESSORS README* doc/gpsim.pdf
(cd ${WRKSRC} && ${INSTALL_DATA} ${i} \
${STAGEDIR}${DOCSDIR})
.endfor
post-install-EXAMPLES-on:
.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>