summaryrefslogtreecommitdiffstats
path: root/audio/idjc/Makefile
blob: 777e4c31bff61da5a5b3fa9e5eacae552aafd618 (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
# Created by: Sean Bruno <sbruno@freebsd.org>
# $FreeBSD$

PORTNAME=	idjc
PORTVERSION=	0.8.16
PORTREVISION=	4
CATEGORIES=	audio python
MASTER_SITES=	SF/idjc/idjc/0.8

MAINTAINER=	sbruno@FreeBSD.org
COMMENT=	Shoutcast/Icecast DJ Console

LICENSE=	LGPL20

LIB_DEPENDS=	libavcodec.so:multimedia/ffmpeg \
		libavutil.so:multimedia/ffmpeg \
		libjack.so:audio/jack \
		libtwolame.so:audio/twolame \
		libspeex.so:audio/speex \
		libsndfile.so:audio/libsndfile \
		libmpg123.so:audio/mpg123 \
		libFLAC.so:audio/flac \
		libmp3lame.so:audio/lame \
		libvorbis.so:audio/libvorbis \
		libsamplerate.so:audio/libsamplerate \
		libshout-idjc.so:audio/shout-idjc
RUN_DEPENDS=	oggenc:audio/vorbis-tools \
		${PYTHON_PKGNAMEPREFIX}mutagen>=0:audio/py-mutagen \
		${PYTHON_PKGNAMEPREFIX}dbus>=0.8:devel/py-dbus

OPTIONS_DEFINE=	DOCS NLS
OPTIONS_SUB=	YES

USES=		compiler:nestedfct desktop-file-utils gettext gmake \
		libtool pathfix pkgconfig python:2.7
LDFLAGS+=	-L${LOCALBASE}/lib
NLS_USES=	gettext
NLS_CONFIGURE_OFF=	--disable-nls
MAKE_JOBS_UNSAFE=	yes
GNU_CONFIGURE=		yes
USE_PYTHON=		pythonprefix
USE_GNOME=		glib20 pygtk2

BROKEN_powerpc64=	Does not build

PLIST_SUB+=		PORTVERSION="${PORTVERSION}"

DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}

post-patch:
	${REINPLACE_CMD} 's,PYTHON=python,PYTHON=${PYTHON_CMD},' ${WRKSRC}/py-compile

pre-install:
	${REINPLACE_CMD} 's|libvorbis.so.0|libvorbis.so|' \
		${WRKSRC}/python/format.py
	${REINPLACE_CMD} 's|#! /usr/local/bin/python2.72.7|#\!${PYTHON_CMD}|' \
		${WRKSRC}/idjc

.include <bsd.port.mk>
OpenPOWER on IntegriCloud