| @@ -1,34 +1,40 @@ | | | @@ -1,34 +1,40 @@ |
1 | # $NetBSD: Makefile,v 1.230 2020/12/04 04:55:42 riastradh Exp $ | | 1 | # $NetBSD: Makefile,v 1.230.2.1 2021/01/10 19:25:18 bsiegert Exp $ |
2 | | | 2 | |
3 | DISTNAME= mpd-0.22.3 | | 3 | DISTNAME= mpd-0.22.3 |
4 | PKGNAME= ${DISTNAME:S/mpd/musicpd/} | | 4 | PKGNAME= ${DISTNAME:S/mpd/musicpd/} |
5 | PKGREVISION= 1 | | 5 | PKGREVISION= 1 |
6 | CATEGORIES= audio | | 6 | CATEGORIES= audio |
7 | MASTER_SITES= https://www.musicpd.org/download/mpd/0.22/ | | 7 | MASTER_SITES= https://www.musicpd.org/download/mpd/0.22/ |
8 | EXTRACT_SUFX= .tar.xz | | 8 | EXTRACT_SUFX= .tar.xz |
9 | | | 9 | |
10 | MAINTAINER= pkgsrc-users@NetBSD.org | | 10 | MAINTAINER= pkgsrc-users@NetBSD.org |
11 | HOMEPAGE= https://www.musicpd.org/ | | 11 | HOMEPAGE= https://www.musicpd.org/ |
12 | COMMENT= Remote controllable audio player | | 12 | COMMENT= Remote controllable audio player |
13 | LICENSE= gnu-gpl-v2 | | 13 | LICENSE= gnu-gpl-v2 |
14 | | | 14 | |
15 | CONFLICTS= mpd-[0-9]* | | 15 | CONFLICTS= mpd-[0-9]* |
16 | | | 16 | |
17 | USE_TOOLS+= pkg-config | | 17 | USE_TOOLS+= pkg-config |
18 | USE_LANGUAGES= c c++ | | 18 | USE_LANGUAGES= c c++ |
19 | | | 19 | |
20 | # c++17 | | 20 | # The upstream changelog recommends gcc8, but it compiles fine with 7.5.0 |
21 | GCC_REQD+= 8 | | 21 | # (NetBSD 9.1) using -std=c++17. |
| | | 22 | # |
| | | 23 | # Please be cautious of raising this requirement - mpd seems to adopt new C++ |
| | | 24 | # standards quickly. Notably, gcc8 from pkgsrc doesn't have support for |
| | | 25 | # NetBSD/earmv7hf. gcc10 should, but fails for other reasons (TODO: |
| | | 26 | # investigate). |
| | | 27 | GCC_REQD+= 7 |
22 | | | 28 | |
23 | MESON_ARGS+= -Ddocumentation=enabled | | 29 | MESON_ARGS+= -Ddocumentation=enabled |
24 | | | 30 | |
25 | # worrying libraries with limited maintainance: | | 31 | # worrying libraries with limited maintainance: |
26 | # - audiofile, many CVEs, no activity since 2016 | | 32 | # - audiofile, many CVEs, no activity since 2016 |
27 | # using sndfile instead | | 33 | # using sndfile instead |
28 | # - mad, no release since 2004 | | 34 | # - mad, no release since 2004 |
29 | # using mpg123 instead | | 35 | # using mpg123 instead |
30 | MESON_ARGS+= -Dmad=disabled | | 36 | MESON_ARGS+= -Dmad=disabled |
31 | MESON_ARGS+= -Daudiofile=disabled | | 37 | MESON_ARGS+= -Daudiofile=disabled |
32 | | | 38 | |
33 | # not available in pkgsrc? | | 39 | # not available in pkgsrc? |
34 | MESON_ARGS+= -Dnfs=disabled | | 40 | MESON_ARGS+= -Dnfs=disabled |