blob: 68a39f722ff5ef66c7fa1767ae926637468a1de9 (
plain) (
blame)
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
43
44
45
46
47
48
49
50
51
52
|
# Created by: ijliao
# $FreeBSD$
PORTNAME= ragel
PORTVERSION= 6.8
CATEGORIES= devel
MASTER_SITES= http://www.complang.org/ragel/
MAINTAINER= danilogondolfo@gmail.com
COMMENT= Compile regular languages into executable C/C++ code
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
USE_GMAKE= yes
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= yes
MAN1= ${PORTNAME}.1
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
USE_TEX= latex:build
CONFIGURE_ARGS+= --enable-manual
BUILD_DEPENDS+= fig2dev:${PORTSDIR}/print/transfig
PLIST_SUB+= DOCS=""
.else
PLIST_SUB+= DOCS="@comment "
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
PLIST_SUB+= EXAMPLES=""
.else
PLIST_SUB+= EXAMPLES="@comment "
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ragel/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 ${MANPREFIX}/man/man1
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
@(cd ${WRKSRC}/test; ${COPYTREE_SHARE} . ${EXAMPLESDIR})
.endif
.include <bsd.port.mk>
|