| @@ -1,55 +1,55 @@ | | | @@ -1,55 +1,55 @@ |
1 | # $NetBSD: options.mk,v 1.2 2020/06/16 16:08:01 scole Exp $ | | 1 | # $NetBSD: options.mk,v 1.3 2020/06/16 16:18:02 scole Exp $ |
2 | | | 2 | |
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.RE_flex | | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.RE_flex |
4 | PKG_SUPPORTED_OPTIONS= cpu-optimization doxygen examples | | 4 | PKG_SUPPORTED_OPTIONS= cpu-optimization doxygen examples |
5 | PKG_SUGGESTED_OPTIONS= cpu-optimization | | 5 | PKG_SUGGESTED_OPTIONS= cpu-optimization examples |
6 | | | 6 | |
7 | .include "../../mk/bsd.options.mk" | | 7 | .include "../../mk/bsd.options.mk" |
8 | | | 8 | |
9 | # XXX don't build with cpu optimizations detected during configure | | 9 | # XXX don't build with cpu optimizations detected during configure |
10 | .if empty(PKG_OPTIONS:Mcpu-optimization) | | 10 | .if empty(PKG_OPTIONS:Mcpu-optimization) |
11 | CONFIGURE_ARGS+= --disable-avx | | 11 | CONFIGURE_ARGS+= --disable-avx |
12 | CONFIGURE_ARGS+= --disable-sse2 | | 12 | CONFIGURE_ARGS+= --disable-sse2 |
13 | CONFIGURE_ARGS+= --disable-neon | | 13 | CONFIGURE_ARGS+= --disable-neon |
14 | .endif | | 14 | .endif |
15 | | | 15 | |
16 | # build and install html docs | | 16 | # build and install html docs |
17 | PLIST_VARS+= doxygen | | 17 | PLIST_VARS+= doxygen |
18 | .if !empty(PKG_OPTIONS:Mdoxygen) | | 18 | .if !empty(PKG_OPTIONS:Mdoxygen) |
19 | PLIST.doxygen= yes | | 19 | PLIST.doxygen= yes |
20 | INSTALLATION_DIRS+= share/RE-flex/html | | 20 | INSTALLATION_DIRS+= share/RE-flex/html |
21 | TOOL_DEPENDS+= doxygen-[0-9]*:../../devel/doxygen | | 21 | TOOL_DEPENDS+= doxygen-[0-9]*:../../devel/doxygen |
22 | | | 22 | |
23 | post-configure: | | 23 | post-configure: |
24 | cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} doc/html | | 24 | cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} doc/html |
25 | | | 25 | |
26 | post-install-doxygen: | | 26 | post-install-doxygen: |
27 | ${INSTALL_DATA} ${WRKSRC}/doc/html/* \ | | 27 | ${INSTALL_DATA} ${WRKSRC}/doc/html/* \ |
28 | ${DESTDIR}${PREFIX}/share/RE-flex/html | | 28 | ${DESTDIR}${PREFIX}/share/RE-flex/html |
29 | | | 29 | |
30 | .else | | 30 | .else |
31 | post-install-doxygen: | | 31 | post-install-doxygen: |
32 | # do nothing | | 32 | # do nothing |
33 | .endif | | 33 | .endif |
34 | | | 34 | |
35 | # copy example sources to .../share directory | | 35 | # copy example sources to .../share directory |
36 | PLIST_VARS+= examples | | 36 | PLIST_VARS+= examples |
37 | .if !empty(PKG_OPTIONS:Mexamples) | | 37 | .if !empty(PKG_OPTIONS:Mexamples) |
38 | PLIST.examples= yes | | 38 | PLIST.examples= yes |
39 | INSTALLATION_DIRS+= share/RE-flex/examples | | 39 | INSTALLATION_DIRS+= share/RE-flex/examples |
40 | DEPENDS+= bison-[0-9]*:../../devel/bison | | 40 | DEPENDS+= bison-[0-9]*:../../devel/bison |
41 | | | 41 | |
42 | post-install-examples: | | 42 | post-install-examples: |
43 | .for f in Make Makefile.am Makefile.in README.md | | 43 | .for f in Make Makefile.am Makefile.in README.md |
44 | ${INSTALL_DATA} ${WRKSRC}/examples/${f} \ | | 44 | ${INSTALL_DATA} ${WRKSRC}/examples/${f} \ |
45 | ${DESTDIR}${PREFIX}/share/RE-flex/examples | | 45 | ${DESTDIR}${PREFIX}/share/RE-flex/examples |
46 | .endfor | | 46 | .endfor |
47 | .for f in cpp json l lxx test y yaml yxx | | 47 | .for f in cpp json l lxx test y yaml yxx |
48 | ${INSTALL_DATA} ${WRKSRC}/examples/*\.${f} \ | | 48 | ${INSTALL_DATA} ${WRKSRC}/examples/*\.${f} \ |
49 | ${DESTDIR}${PREFIX}/share/RE-flex/examples | | 49 | ${DESTDIR}${PREFIX}/share/RE-flex/examples |
50 | .endfor | | 50 | .endfor |
51 | | | 51 | |
52 | .else | | 52 | .else |
53 | post-install-examples: | | 53 | post-install-examples: |
54 | # do nothing | | 54 | # do nothing |
55 | .endif | | 55 | .endif |