aboutsummaryrefslogtreecommitdiffstats
path: root/audio/trommler/Makefile
blob: 19c3318b3dd144371cac7a6364fbf1cba28a05e6 (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
# Created by: David Yeske <dyeske@gmail.com>
# $FreeBSD$

PORTNAME=   trommler
PORTVERSION=    3.8
PORTREVISION=   4
CATEGORIES= audio
MASTER_SITES=   http://muth.org/Robert/Trommler/
DISTNAME=   ${PORTNAME}.${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    GTK+2 based drum machine

LICENSE=    GPLv2

USES=       gmake
USE_GNOME=  gtk20

WRKSRC=     ${WRKDIR}/Trommler

post-patch:
# The third edit replaces the contents of a comment, so CC can be respected
    @${REINPLACE_CMD} -e 's|-O9|${CFLAGS}| ; s|-Werror|| ; \
        s|^# Makefile|CC=${CC}|' ${WRKSRC}/Makefile

    @${REINPLACE_CMD} -e 's|"/Drums"|"${PREFIX}/share/trommler/Drums"|' \
        ${WRKSRC}/gui.c

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/playsample ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${WRKSRC}/trommler ${PREFIX}/bin
    ${INSTALL_PROGRAM} ${WRKSRC}/wav2smp ${PREFIX}/bin
    @${MKDIR} ${PREFIX}/share/trommler/Drums
    @${MKDIR} ${PREFIX}/share/trommler/Songs
    ${INSTALL_DATA} ${WRKSRC}/Drums/*.smp ${PREFIX}/share/trommler/Drums
    ${INSTALL_DATA} ${WRKSRC}/Songs/*.sng ${PREFIX}/share/trommler/Songs

.include <bsd.port.mk>