summaryrefslogtreecommitdiff
path: root/audio/darkice/Makefile
blob: 2a1aeac4924c4f5301410ef0df89d192760b8ae9 (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
# $NetBSD: Makefile,v 1.24 2020/08/18 17:57:35 leot Exp $
#

DISTNAME=	darkice-1.2
PKGREVISION=	1
CATEGORIES=	audio
MASTER_SITES=	https://darkice.googlecode.com/files/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://darkice.tyrell.hu/
COMMENT=	IceCast, IceCast2 and ShoutCast live audio streamer
LICENSE=	gnu-gpl-v3

GNU_CONFIGURE=		yes
USE_LANGUAGES=		c c++
USE_TOOLS+=		gmake

CHECK_PORTABILITY_SKIP+=	configure.in

CONFIGURE_ARGS+=	--with-vorbis-prefix=${BUILDLINK_PREFIX.libvorbis}
CONFIGURE_ARGS+=	--with-lame-prefix=${BUILDLINK_PREFIX.lame}
CONFIGURE_ARGS+=	--with-twolame-prefix=${BUILDLINK_PREFIX.twolame}
CONFIGURE_ARGS+=	--with-faac-prefix=${BUILDLINK_PREFIX.faac}
CONFIGURE_ARGS+=	--without-jack
LIBS+=			${LIBOSSAUDIO:Q}

EGDIR=		${PREFIX}/share/examples/darkice
HTMLDIR=	${PREFIX}/share/doc/darkice

CONF_FILES=	${EGDIR}/darkice.conf ${PKG_SYSCONFDIR}/darkice.conf

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man5

do-install:
	${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
	${INSTALL_DATA_DIR} ${DESTDIR}${HTMLDIR}
	${INSTALL_DATA} ${WRKSRC}/darkice.cfg \
		${DESTDIR}${EGDIR}/darkice.conf
	${INSTALL_PROGRAM} ${WRKSRC}/src/darkice ${DESTDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/man/darkice.1 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
	${INSTALL_MAN} ${WRKSRC}/man/darkice.cfg.5 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man5/darkice.conf.5

.include "../../audio/faac/buildlink3.mk"
.include "../../audio/lame/buildlink3.mk"
.include "../../audio/libvorbis/buildlink3.mk"
.include "../../audio/twolame/buildlink3.mk"

.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"