aboutsummaryrefslogtreecommitdiffstats
path: root/audio/autozen/Makefile
blob: 2ae12c38b861004f2763732d0940ff7721aed466 (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
# New ports collection makefile for:    autozen
# Date created:             2000-09-16
# Whom:                 Trevor Johnson <trevor@jpj.net>
#
# $FreeBSD$
#

PORTNAME=   autozen
PORTVERSION=    1.2.1
CATEGORIES= audio
MASTER_SITES=   http://www.linuxlabs.com/software/download/
DISTNAME=   AutoZen-${PORTVERSION}

MAINTAINER= trevor@FreeBSD.org

WRKSRC=     ${WRKDIR}/${PORTNAME}-1.2

USE_X_PREFIX=   yes
USE_GTK=    yes

DOC_FILES=  CHANGES COPYING
DATA_FILES= deep-relax.seq relax.seq test.seq test2.seq test3.seq

post-patch:
    @if [ -f /usr/include/sys/soundcard.h ]; then \
        ${PERL} -pi -e "s=linux/soundcard.h=sys/soundcard.h=g" \
            ${WRKSRC}/autozen.c; \
    else \
        ${PERL} -pi -e "s=linux/soundcard.h=machine/soundcard.h=g" \
            ${WRKSRC}/autozen.c; \
    fi
    @${PERL} -pi -e "s=X11BASE=${X11BASE}=g" ${WRKSRC}/autozen.c
    cd ${WRKSRC} && ${RM} autozen seq2wav

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/autozen ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${WRKSRC}/seq2wav ${PREFIX}/bin
    ${MKDIR} ${PREFIX}/share/autozen
.for i in ${DATA_FILES}
    ${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/autozen
.endfor
.if !defined(NOPORTDOCS)
    ${MKDIR} ${PREFIX}/share/doc/autozen
.for i in ${DOC_FILES}
    ${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/autozen
.endfor
.endif

.include <bsd.port.mk>