38dd63e03e
- Add LICENSE_FILE - Simplify installation - Remove legacy hack
35 lines
787 B
Makefile
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>
|