ion> FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
path: root/audio/xmms-jack/Makefile
blob: 87c04f2b288bfb24fe3ea7f6b0ad4827c4242c31 (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
# New ports collection makefile for:    xmms-jack
# Date created:             13 Mar 2004
# Whom:                 David Yeske <dyeske@gmail.com>
#
# $FreeBSD$

PORTNAME=   xmms-jack
PORTVERSION=    0.19
CATEGORIES= audio
MASTER_SITES=   SF

MAINTAINER= ports@FreeBSD.org
COMMENT=    XMMS plugin for jack

LIB_DEPENDS=    xmms.4:${PORTSDIR}/multimedia/xmms \
        jack.0:${PORTSDIR}/audio/jack \
        samplerate.1:${PORTSDIR}/audio/libsamplerate

WRKSRC=     ${WRKDIR}/${PORTNAME}

USE_GNOME=  gtk12
USE_GMAKE=  yes
USE_AUTOTOOLS=  libtool:22
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"

PLIST_FILES=    lib/xmms/Output/libjackout.so

CPPFLAGS=   -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS=    -L${LOCALBASE}/lib ${PTHREAD_LIBS}

.include <bsd.port.pre.mk>

post-patch:
    @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
         s|-ldl||g' ${WRKSRC}/configure

do-install:
    cd ${WRKSRC}/.libs \
        && ${INSTALL_DATA} libjackout.so ${PREFIX}/lib/xmms/Output

.include <bsd.port.post.mk>