Tue Jun 16 16:18:02 2020 UTC ()
include examples in default package


(scole)
diff -r1.2 -r1.3 pkgsrc/devel/RE-flex/options.mk

cvs diff -r1.2 -r1.3 pkgsrc/devel/RE-flex/options.mk (switch to unified diff)

--- pkgsrc/devel/RE-flex/options.mk 2020/06/16 16:08:01 1.2
+++ pkgsrc/devel/RE-flex/options.mk 2020/06/16 16:18:02 1.3
@@ -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
3PKG_OPTIONS_VAR= PKG_OPTIONS.RE_flex 3PKG_OPTIONS_VAR= PKG_OPTIONS.RE_flex
4PKG_SUPPORTED_OPTIONS= cpu-optimization doxygen examples 4PKG_SUPPORTED_OPTIONS= cpu-optimization doxygen examples
5PKG_SUGGESTED_OPTIONS= cpu-optimization 5PKG_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)
11CONFIGURE_ARGS+= --disable-avx 11CONFIGURE_ARGS+= --disable-avx
12CONFIGURE_ARGS+= --disable-sse2 12CONFIGURE_ARGS+= --disable-sse2
13CONFIGURE_ARGS+= --disable-neon 13CONFIGURE_ARGS+= --disable-neon
14.endif 14.endif
15 15
16# build and install html docs 16# build and install html docs
17PLIST_VARS+= doxygen 17PLIST_VARS+= doxygen
18.if !empty(PKG_OPTIONS:Mdoxygen) 18.if !empty(PKG_OPTIONS:Mdoxygen)
19PLIST.doxygen= yes 19PLIST.doxygen= yes
20INSTALLATION_DIRS+= share/RE-flex/html 20INSTALLATION_DIRS+= share/RE-flex/html
21TOOL_DEPENDS+= doxygen-[0-9]*:../../devel/doxygen 21TOOL_DEPENDS+= doxygen-[0-9]*:../../devel/doxygen
22 22
23post-configure: 23post-configure:
24 cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} doc/html 24 cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} doc/html
25 25
26post-install-doxygen: 26post-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
31post-install-doxygen: 31post-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
36PLIST_VARS+= examples 36PLIST_VARS+= examples
37.if !empty(PKG_OPTIONS:Mexamples) 37.if !empty(PKG_OPTIONS:Mexamples)
38PLIST.examples= yes 38PLIST.examples= yes
39INSTALLATION_DIRS+= share/RE-flex/examples 39INSTALLATION_DIRS+= share/RE-flex/examples
40DEPENDS+= bison-[0-9]*:../../devel/bison 40DEPENDS+= bison-[0-9]*:../../devel/bison
41 41
42post-install-examples: 42post-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
53post-install-examples: 53post-install-examples:
54 # do nothing 54 # do nothing
55.endif 55.endif