aboutsummaryrefslogtreecommitdiffstats
path: root/audio/opmixer/Makefile
blob: 4ea2ceaa6a8d18a9202e172fa680dfc55e3acbd0 (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
# New ports collection makefile for:    opmixer
# Date created:             2000-12-29
# Whom:                 trevor
#
# $FreeBSD$
#

PORTNAME=   opmixer
PORTVERSION=    0.70
PORTREVISION=   1
CATEGORIES= audio
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= optronic

MAINTAINER= trevor@FreeBSD.org

LIB_DEPENDS=    gtkmm.2:${PORTSDIR}/x11-toolkits/gtk-- \
        intl.4:${PORTSDIR}/devel/gettext

DOCDIR=     share/doc/${PORTNAME}
USE_BZIP2=  yes
USE_X_PREFIX=   yes
PLIST=      ${WRKDIR}/pkg-plist
WRKSRC=     ${WRKDIR}/opmixer

pre-install:
    ${ECHO_CMD} "bin/opmixer" > ${PLIST}
    ${ECHO_CMD} "bin/opmixer-load" >> ${PLIST}
    ${ECHO_CMD} "bin/volset" >> ${PLIST}
.if !defined(NOPORTDOCS)
    ${ECHO_CMD} ${DOCDIR}/README >> ${PLIST}
    ${ECHO_CMD} @dirrm ${DOCDIR} >> ${PLIST}
.endif

do-patch:
.if exists(/usr/include/machine/soundcard.h)
    ${PERL} -pi -e "s=sys/soundca=machine/soundca=g" ${WRKSRC}/ossmixer.hh
.endif

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/opmixer ${WRKSRC}/opmixer-load \
        ${WRKSRC}/volset ${PREFIX}/bin
.if !defined(NOPORTDOCS)
    ${MKDIR} ${PREFIX}/${DOCDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/${DOCDIR}
.endif

.include <bsd.port.mk>