aboutsummaryrefslogtreecommitdiffstats
path: root/audio/linux-f10-pulseaudio-libs/Makefile
blob: c86824ac60ded51d87800f776c90cdef2f8064bd (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
# Created by: avg
# $FreeBSD$

PORTNAME=   pulseaudio-libs
PORTVERSION=    0.9.14
CATEGORIES= audio linux
MASTER_SITES=   LOCAL
MASTER_SITE_SUBDIR= netchild/rpms/${LINUX_DIST}${LINUX_DIST_VER}
PKGNAMEPREFIX=  linux-f10-
DISTNAME=   ${PORTNAME}-${PORTVERSION}-${RPMVERSION}

MAINTAINER= emulation@FreeBSD.org
COMMENT=    Libraries for PulseAudio clients

ONLY_FOR_ARCHS= i386 amd64
USE_LINUX_RPM=  yes
LINUX_DIST_VER= 10
RPMVERSION= 4.fc10
SRC_DISTFILES=  ${PORTNAME:S/-libs//}-${PORTVERSION}-${RPMVERSION}${SRC_SUFX}
USE_LDCONFIG=   yes

CONF_FILE=  etc/pulse/client.conf

pre-patch:
    @${MV} ${WRKSRC}/${CONF_FILE} ${WRKSRC}/${CONF_FILE}-dist
post-patch:
    @${FIND} ${WRKSRC} -name "*.orig" -delete

post-install:
    @if [ ! -f ${PREFIX}/${CONF_FILE} ]; then \
        ${CP} -p ${STAGEDIR}${PREFIX}/${CONF_FILE}-dist ${STAGEDIR}${PREFIX}/${CONF_FILE} ; \
    fi

.include <bsd.port.mk>