blob: f957b828ebfd9bb014329b138a376d5066967a69 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# $NetBSD: Makefile,v 1.155 2017/11/30 16:45:15 adam Exp $
DISTNAME= mpd-0.20.12
PKGNAME= ${DISTNAME:S/mpd/musicpd/}
PKGREVISION= 1
CATEGORIES= audio
MASTER_SITES= http://www.musicpd.org/download/mpd/0.20/
#MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=musicpd/}
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://musicpd.org/
COMMENT= Remote controllable audio player
LICENSE= gnu-gpl-v2
CONFLICTS= mpd-[0-9]*
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config
USE_LANGUAGES= c c++
# c++14
GCC_REQD+= 4.9
# MacOS X audio output is no longer enabled by default.
CONFIGURE_ARGS.Darwin+= --enable-osx
CPPFLAGS.SunOS+= -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
.include "options.mk"
EGDIR= ${PREFIX}/share/examples/mpd
CONF_FILES= ${EGDIR}/mpd.conf ${PKG_SYSCONFDIR}/mpd.conf
RCD_SCRIPTS= mpd
FILES_SUBST+= DEVOSSAUDIO=${DEVOSSAUDIO:Q}
SUBST_CLASSES+= paths
SUBST_STAGE.paths= post-patch
SUBST_FILES.paths= mpd.conf
SUBST_SED.paths= -e 's,@DEVOSSAUDIO@,${DEVOSSAUDIO},'
LDFLAGS+= ${LIBOSSAUDIO}
INSTALLATION_DIRS= ${EGDIR}
post-extract:
${CP} ${FILESDIR}/mpd.conf ${WRKSRC}/mpd.conf
post-install:
${INSTALL_DATA} ${WRKSRC}/mpd.conf ${DESTDIR}${EGDIR}
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../textproc/icu/buildlink3.mk"
.include "../../audio/libmad/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|