freebsd-ports/devel/pas2dox/Makefile
Dmitry Marakasov 38dd63e03e - Substitude DISTVERSION in MASTER_SITES
- Add LICENSE_FILE
- Simplify installation
- Remove legacy hack
2017-01-05 10:58:16 +00:00

35 lines
787 B
Makefile

# Created by: Andreas Kohn <andreas@syndrom23.de>
# $FreeBSD$
PORTNAME= pas2dox
DISTVERSION= 0.50rc1
CATEGORIES= devel converters
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${DISTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Preprocessor to use doxygen with Pascal sources
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
WRKSRC= ${WRKDIR}/${PORTNAME}
USES= gmake
ALL_TARGET= ${PORTNAME}
PLIST_FILES= bin/${PORTNAME}
post-patch:
@${REINPLACE_CMD} -e \
's|^LEX=|LEX?=| ; \
s|$${CC} $$<|$${CXX} $${CXXFLAGS} $$<|' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e \
's|yy_flex_realloc|yyrealloc|' ${WRKSRC}/${PORTNAME}.l
pre-build:
@${RM} ${WRKSRC}/${PORTNAME}.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>