aboutsummaryrefslogtreecommitdiffstats
path: root/audio/opmixer/Makefile
blob: 70c2317dc15f29f75d7bbf464ee7112cd997f8e8 (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
55
56
57
58
59
60
# New ports collection makefile for:    opmixer
# Date created:             2000-12-29
# Whom:                 trevor
#
# $FreeBSD$
#

PORTNAME=   opmixer
PORTVERSION=    0.75
PORTREVISION=   3
CATEGORIES= audio
MASTER_SITES=   SF/optronic/opMixer/${PORTVERSION}
DISTNAME=   opMixer-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Adjusts a mixer

DEPRECATED= No more upstream
EXPIRATION_DATE=    2011-09-01

LIB_DEPENDS=    gtkmm-1.2.2:${PORTSDIR}/x11-toolkits/gtkmm12

USE_BZIP2=  yes
USE_GNOME=  gtk12 gnometarget
GNU_CONFIGURE=  yes

PORTDOCS=   README
PLIST_FILES=    ${BIN_PROGRAMS:S/^/bin\//}

BIN_PROGRAMS=   opmixer opmixer-load volset

.include <bsd.port.pre.mk>

post-patch:
    @${REINPLACE_CMD} -e  \
        's|(VScale \*)|VScale *|g ; \
         s|(Adjustment \*)|Adjustment *|g ; \
         s|(CheckButton \*)|CheckButton *|g' ${WRKSRC}/src/gui.cc
    @${REINPLACE_CMD} -e  \
        's|<string\.h>|<cstring>|g ; \
         s|<iostream\.h>|<iostream>|g ; \
         s|(LineInfo \*)|LineInfo *|g ; \
         s| cout| std::cout|g ; \
         s| endl| std::endl|g' ${WRKSRC}/src/ossmixer.cc
    @${REINPLACE_CMD} -e  \
        's|<stdlib\.h>|<cstdlib>|g ; \
         s|<stdio\.h>|<cstdio>|g' ${WRKSRC}/src/ossmixer.hh
    @${REINPLACE_CMD} -e  \
        's| endl| std::endl|g' ${WRKSRC}/src/volset.cc

do-install:
.for file in ${BIN_PROGRAMS}
    ${INSTALL_PROGRAM} ${WRKSRC}/src/${file} ${PREFIX}/bin
.endfor
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif

.include <bsd.port.post.mk>