aboutsummaryrefslogtreecommitdiff
path: root/audio/akode-plugins-pulseaudio/Makefile
blob: 44b4fdaf12b37c2c2b2b92f00bf62cb3d77bd452 (plain) (blame)
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
# New ports collection makefile for:	akode-plugins-pulseaudio
# Date created:				March 03 2008
# Whom:					Scot W. Hetzel <swhetzel@gmail.com>
#
# $FreeBSD$
#

PORTNAME=	akode-plugins-${PORTNAMESUFX}
PORTVERSION=	2.0.2
PORTREVISION=	3
CATEGORIES=	audio kde
MASTER_SITES=	${MASTER_SITE_GENTOO}
MASTER_SITE_SUBDIR=distfiles
DISTNAME=	30375-akode-${PORTVERSION}.tar.bz2
EXTRACT_SUFX=	# none

MAINTAINER=	swhetzel@gmail.com
COMMENT=	Pulseaudio output plugin for akode

LIB_DEPENDS=	pulse-simple:${PORTSDIR}/audio/pulseaudio

CONFLICTS=	kdemultimedia-3.[1-3]* akode-plugins-polypaudio-[0-9]*

PLUGIN=		polyp_sink
PORTNAMESUFX=	pulseaudio

USE_AUTOTOOLS=	libltdl
USE_AUTOTOOLS=	libtool:22
USE_BZIP2=	yes
USE_GMAKE=	yes
WRKSRC=		${WRKDIR}/akode-${PORTVERSION}
USE_LDCONFIG=	yes

PLIST_FILES=	lib/libakode_polyp_sink.a lib/libakode_polyp_sink.la \
		lib/libakode_polyp_sink.so

CONFIGURE_ENV+=	LDFLAGS=-L${WRKSRC}/akode/lib/.libs
CONFIGURE_ARGS+=--with-extra-libs=${LOCALBASE}/lib \
		--with-extra-includes=${LOCALBASE}/include

post-patch:
	@${SETENV} TZ=UTC \
	${TOUCH} -t 200607222217.01 ${WRKSRC}/akode/lib/akode_export.h.in

pre-configure:
	@${REINPLACE_CMD} -e 's@%%SUBDIRS%%@${PLUGIN}@g' ${WRKSRC}/akode/plugins/Makefile.in

do-build:
	cd ${WRKSRC}/akode && ${GMAKE}

do-install:
	cd ${WRKSRC}/akode/plugins/${PLUGIN} && ${GMAKE} install

.include <bsd.port.mk>