# Created by: jmz # $FreeBSD: head/lang/p2c/Makefile 410087 2016-03-04 06:46:27Z wen $ PORTNAME= p2c PORTVERSION= 2.01 CATEGORIES= lang MASTER_SITES= https://schneider.ncifcrf.gov/p2c/ MAINTAINER= ports@FreeBSD.org COMMENT= Pascal to C translator LICENSE= GPLv2 WRKSRC_SUBDIR= src USES= perl5 shebangfix SHEBANG_FILES= p2cc.perl perl_OLD_CMD= /bin/perl USE_PERL5= run ALL_TARGET= all p2cc pre-build: @${RM} -f ${WRKSRC}/p2c.man.inst post-build: @${LN} -sf p2c.man.inst ${WRKSRC}/p2c.1 do-install: (cd ${WRKSRC} && ${INSTALL_PROGRAM} p2c \ ${STAGEDIR}${PREFIX}/bin) (cd ${WRKSRC} && ${INSTALL_SCRIPT} p2cc \ ${STAGEDIR}${PREFIX}/bin) (cd ${WRKSRC} && ${INSTALL_DATA} libp2c.a \ ${STAGEDIR}${PREFIX}/lib) @${MKDIR} ${STAGEDIR}${PREFIX}/include/p2c (cd ${WRKSRC} && ${INSTALL_DATA} p2c.h \ ${STAGEDIR}${PREFIX}/include/p2c) @${MKDIR} ${STAGEDIR}${PREFIX}/lib/p2c (cd ${WRKSRC} && ${INSTALL_DATA} sys.p2crc \ ${STAGEDIR}${PREFIX}/lib/p2c/p2crc) .for i in loc.p2crc system.imp system.m2 turbo.imp string.pas (cd ${WRKSRC} && ${INSTALL_DATA} ${i} \ ${STAGEDIR}${PREFIX}/lib/p2c) .endfor (cd ${WRKSRC} && ${INSTALL_MAN} p2c.1 \ ${STAGEDIR}${MANPREFIX}/man/man1) .include