| @@ -1,50 +1,51 @@ | | | @@ -1,50 +1,51 @@ |
1 | # $NetBSD: Makefile,v 1.48 2020/08/02 21:20:33 tnn Exp $ | | 1 | # $NetBSD: Makefile,v 1.49 2020/08/02 21:22:29 tnn Exp $ |
2 | | | 2 | |
3 | DISTNAME= avrdude-6.3 | | 3 | DISTNAME= avrdude-6.3 |
4 | PKGREVISION= 2 | | 4 | PKGREVISION= 2 |
5 | CATEGORIES= cross | | 5 | CATEGORIES= cross |
6 | MASTER_SITES= http://download.savannah.gnu.org/releases/avrdude/ | | 6 | MASTER_SITES= http://download.savannah.gnu.org/releases/avrdude/ |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= https://www.nongnu.org/avrdude/ | | 9 | HOMEPAGE= https://www.nongnu.org/avrdude/ |
10 | COMMENT= Downloader/uploader for Atmel AVR 8-bit RISC microcontrollers | | 10 | COMMENT= Downloader/uploader for Atmel AVR 8-bit RISC microcontrollers |
11 | LICENSE= gnu-gpl-v2 | | 11 | LICENSE= gnu-gpl-v2 |
12 | | | 12 | |
13 | | | 13 | |
14 | .include "../../mk/bsd.prefs.mk" | | 14 | .include "../../mk/bsd.prefs.mk" |
15 | | | 15 | |
16 | GNU_CONFIGURE= yes | | 16 | GNU_CONFIGURE= yes |
17 | TEXINFO_REQD= 4.9 | | 17 | USE_TOOLS+= autoconf automake autoreconf lex yacc |
18 | USE_TOOLS+= autoconf automake autoreconf lex makeinfo texi2html yacc | | | |
19 | # Upstream does not documentat that GNU make is required, but BSD make | | 18 | # Upstream does not documentat that GNU make is required, but BSD make |
20 | # leads to inexplicable errors about libavrdude. | | 19 | # leads to inexplicable errors about libavrdude. |
21 | # \todo Resolve and/or discuss with upstream. | | 20 | # \todo Resolve and/or discuss with upstream. |
22 | USE_TOOLS+= gmake | | 21 | USE_TOOLS+= gmake |
23 | USE_LIBTOOL= yes | | 22 | USE_LIBTOOL= yes |
24 | INFO_FILES= yes | | 23 | INFO_FILES= yes |
25 | EGDIR= ${PREFIX}/share/examples/avrdude | | 24 | EGDIR= ${PREFIX}/share/examples/avrdude |
26 | CONF_FILES_PERMS= ${EGDIR}/avrdude.conf ${PKG_SYSCONFDIR}/avrdude.conf \ | | 25 | CONF_FILES_PERMS= ${EGDIR}/avrdude.conf ${PKG_SYSCONFDIR}/avrdude.conf \ |
27 | ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 644 | | 26 | ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 644 |
28 | | | 27 | |
29 | PKG_OPTIONS_VAR= PKG_OPTIONS.avrdude | | 28 | PKG_OPTIONS_VAR= PKG_OPTIONS.avrdude |
30 | PKG_SUPPORTED_OPTIONS= doc | | 29 | PKG_SUPPORTED_OPTIONS= doc |
31 | PKG_SUGGESTED_OPTIONS= doc | | 30 | PKG_SUGGESTED_OPTIONS= doc |
32 | | | 31 | |
33 | .include "../../mk/bsd.options.mk" | | 32 | .include "../../mk/bsd.options.mk" |
34 | | | 33 | |
35 | PLIST_VARS+= doc | | 34 | PLIST_VARS+= doc |
36 | .if !empty(PKG_OPTIONS:Mdoc) | | 35 | .if !empty(PKG_OPTIONS:Mdoc) |
37 | PLIST.doc= yes | | 36 | PLIST.doc= yes |
| | | 37 | TEXINFO_REQD= 4.9 |
| | | 38 | USE_TOOLS+= texi2html makeinfo |
38 | BUILD_DEPENDS+= dvipsk-[0-9]*:../../print/dvipsk | | 39 | BUILD_DEPENDS+= dvipsk-[0-9]*:../../print/dvipsk |
39 | BUILD_DEPENDS+= tex-latex-fonts-[0-9]*:../../fonts/tex-latex-fonts | | 40 | BUILD_DEPENDS+= tex-latex-fonts-[0-9]*:../../fonts/tex-latex-fonts |
40 | BUILD_DEPENDS+= tex-pdftex-[0-9]*:../../print/tex-pdftex | | 41 | BUILD_DEPENDS+= tex-pdftex-[0-9]*:../../print/tex-pdftex |
41 | # DragonFly has stripped makeinfo in the base - without texi2dvi. | | 42 | # DragonFly has stripped makeinfo in the base - without texi2dvi. |
42 | . if ${OPSYS} == "DragonFly" | | 43 | . if ${OPSYS} == "DragonFly" |
43 | BUILD_DEPENDS+= gtexinfo-[0-9]*:../../devel/gtexinfo | | 44 | BUILD_DEPENDS+= gtexinfo-[0-9]*:../../devel/gtexinfo |
44 | . endif | | 45 | . endif |
45 | CONFIGURE_ARGS+= --enable-doc | | 46 | CONFIGURE_ARGS+= --enable-doc |
46 | .else | | 47 | .else |
47 | CONFIGURE_ARGS+= --disable-doc | | 48 | CONFIGURE_ARGS+= --disable-doc |
48 | .endif | | 49 | .endif |
49 | | | 50 | |
50 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} | | 51 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} |