blob: d5b5412147d4ecec183800226d42900e79af35a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Created by: Andreas Kohn <andreas@syndrom23.de>
# $FreeBSD$
PORTNAME= pas2dox
DISTVERSION= 0.50rc1
CATEGORIES= devel converters
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-0.50rc1
MAINTAINER= ports@FreeBSD.org
COMMENT= Preprocessor to use doxygen with Pascal sources
LICENSE= GPLv2
WRKSRC= ${WRKDIR}/${PORTNAME}
USES= gmake
ALL_TARGET= ${PORTNAME}
PLIST_FILES= bin/${PORTNAME}
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 1000033
BUILD_DEPENDS+= flex>0:textproc/flex
MAKE_ENV+= LEX="${LOCALBASE}/bin/flex"
.endif
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} -f ${WRKSRC}/${PORTNAME}.cpp
do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} \
${STAGEDIR}${PREFIX}/bin)
.include <bsd.port.post.mk>
|