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

PORTNAME=   spiralsynth
PORTVERSION=    0.1.7
CATEGORIES= audio
MASTER_SITES=   http://www.pawfal.org/SpiralSynth/dload/
DISTNAME=   SpiralSynth-${PORTVERSION}

MAINTAINER= trevor@FreeBSD.org

LIB_DEPENDS=    fltk.1:${PORTSDIR}/x11-toolkits/fltk

USE_X_PREFIX=   yes
MAKE_ENV=   PTHREAD_LIBS="${PTHREAD_LIBS}" \
        PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
GNU_CONFIGURE=  yes

WRKSRC=     ${WRKDIR}/${DISTNAME}

DOC_FILES=  CHANGES COPYING README

post-patch:
    ${PERL} -pi -e 's|-O3|${PTHREAD_CFLAGS}|g ; \
            s|CFLAGS =|CFLAGS +=|g ; \
            s|CXXFLAGS=|CXXFLAGS+=|g ; \
            s|-lm|${PTHREAD_LIBS} -lm|g ; \
            s|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/Makefile.in

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/SpiralSynth ${PREFIX}/bin
.if !defined(NOPORTDOCS)
    ${MKDIR} ${PREFIX}/share/doc/spiralsynth
.for i in ${DOC_FILES}
    ${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/spiralsynth
.endfor
.endif
.include <bsd.port.mk>