aboutsummaryrefslogtreecommitdiffstats
path: root/audio/sbagen/Makefile
blob: 40671c6f28001b7f17ea8582f01a2e4441d00c0c (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
# New ports collection makefile for:   sbagen
# Date created:        08 June 2001
# Whom:                greid
#
# $FreeBSD$
#

PORTNAME=   sbagen
PORTVERSION=    1.4.4
CATEGORIES= audio
MASTER_SITES=   SF
EXTRACT_SUFX=   .tgz

MAINTAINER= ports@FreeBSD.org
COMMENT=    A sequenced binaural wave generator

DOC_FILES=  ChangeLog.txt README.txt SBAGEN.txt TODO.txt focus.txt \
        focus2.txt holosync.txt theory.txt theory2.txt wave.txt

post-patch:
    @${REINPLACE_CMD} -e 's,linux/soundcard.h,sys/soundcard.h,g' \
        ${WRKSRC}/sbagen.c

do-build:
    (cd ${WRKSRC} && ${CC} ${CFLAGS} -DT_LINUX ${PTHREAD_LIBS} -lm sbagen.c -o sbagen)

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/sbagen ${PREFIX}/bin
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for file in ${DOC_FILES}
    ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
.if !defined(NOPORTEXAMPLES)
    @${MKDIR} ${EXAMPLESDIR}
    (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
.endif

.include <bsd.port.mk>