aboutsummaryrefslogtreecommitdiffstats
path: root/audio/freebirth/Makefile
blob: 25cceeed088eda3b2092272ba919034d8ff8e342 (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
# New ports collection makefile for:    freebirth
# Date created:             27 Dec 2001
# Whom:                 David Yeske <dyeske@yahoo.com>
#
# $FreeBSD$
#

PORTNAME=   freebirth
PORTVERSION=    0.3.2
CATEGORIES= audio
MASTER_SITES=   http://www.bitmechanic.com/projects/freebirth/

MAINTAINER= dyeske@yahoo.com

USE_GMAKE=  yes
USE_GTK=    yes
USE_X_PREFIX=   yes

pre-build:
    @${PERL} -pi -e 's@-g  -O6@${CFLAGS}@g; s@CC=gcc@CC=${CC}@g; \
            s@^all: freebirth@all: Makefile.deps freebirth @g; \
            s@gtk-config@${GTK_CONFIG}@g; \
            s@^LDFLAGS=@LDFLAGS=\$${LOADLIBES}@g' \
        ${WRKSRC}/Makefile
    @${PERL} -pi -e 's@^#define FB_SAMPLES "."@#define FB_SAMPLES "${PREFIX}/share/freebirth"@g;' \
        ${WRKSRC}/raw_wave.h

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/freebirth ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${WRKSRC}/fusebirth ${PREFIX}/bin
    @${MKDIR} ${PREFIX}/share/freebirth/raw
    ${INSTALL_DATA} ${WRKSRC}/raw/*.raw ${PREFIX}/share/freebirth/raw
    ${STRIP_CMD} ${PREFIX}/bin/freebirth
    ${STRIP_CMD} ${PREFIX}/bin/fusebirth

.include <bsd.port.mk>