| @@ -1,68 +1,69 @@ | | | @@ -1,68 +1,69 @@ |
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} |
51 | CONFIGURE_ENV+= DEFAULT_SER_PORT=${DEFAULT_SERIAL_DEVICE} | | 52 | CONFIGURE_ENV+= DEFAULT_SER_PORT=${DEFAULT_SERIAL_DEVICE} |
52 | PLIST_SUBST+= DISTNAME=${DISTNAME} | | 53 | PLIST_SUBST+= DISTNAME=${DISTNAME} |
53 | | | 54 | |
54 | # The autotools used by this pkg are older than what's in pkgsrc | | 55 | # The autotools used by this pkg are older than what's in pkgsrc |
55 | # currently. This makes the diffs huge. | | 56 | # currently. This makes the diffs huge. |
56 | pre-configure: | | 57 | pre-configure: |
57 | cd ${WRKSRC} && autoreconf -vif | | 58 | cd ${WRKSRC} && autoreconf -vif |
58 | | | 59 | |
59 | | | 60 | |
60 | .include "../../devel/libftdi/buildlink3.mk" | | 61 | .include "../../devel/libftdi/buildlink3.mk" |
61 | .include "../../devel/libhid/buildlink3.mk" | | 62 | .include "../../devel/libhid/buildlink3.mk" |
62 | .include "../../devel/libftdi1/buildlink3.mk" | | 63 | .include "../../devel/libftdi1/buildlink3.mk" |
63 | .include "../../mk/libusb.buildlink3.mk" | | 64 | .include "../../mk/libusb.buildlink3.mk" |
64 | .include "../../devel/libusb1/buildlink3.mk" | | 65 | .include "../../devel/libusb1/buildlink3.mk" |
65 | # elf_getshdrstrndx | | 66 | # elf_getshdrstrndx |
66 | .include "../../devel/libelf/buildlink3.mk" | | 67 | .include "../../devel/libelf/buildlink3.mk" |
67 | .include "../../devel/readline/buildlink3.mk" | | 68 | .include "../../devel/readline/buildlink3.mk" |
68 | .include "../../mk/bsd.pkg.mk" | | 69 | .include "../../mk/bsd.pkg.mk" |