aboutsummaryrefslogtreecommitdiffstats
path: root/audio/tta/Makefile
blob: dd5f0eecdac6a9ba259c7f0485d5edad5fd45ba3 (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
# New ports collection makefile for:    TTA encoder
# Date created:             10 Aug 2004
# Whom:         Martin Dieringer <Martin.Dieringer@t-online.de>
#
# $FreeBSD$
#

PORTNAME=   tta
PORTVERSION=    3.4.1
CATEGORIES= audio
MASTER_SITES=   SF
DISTNAME=   ${PORTNAME}enc-${PORTVERSION}-src
EXTRACT_SUFX=   .tgz

MAINTAINER= danfe@FreeBSD.org
COMMENT=    The True Audio Encoder, lossless (de)compressor

PROGRAM=    ttaenc

PORTDOCS=   README
PLIST_FILES=    bin/ttaenc

post-patch:
    @${REINPLACE_CMD} -e '/ifdef _BIG_ENDIAN/s|ifdef|if _BYTE_ORDER ==|' \
        ${WRKSRC}/${PROGRAM}.h

do-build:
    ${CC} ${CFLAGS} ${LDFLAGS} -o ${WRKSRC}/${PROGRAM} \
        ${WRKSRC}/${PROGRAM}.c

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PROGRAM} ${PREFIX}/bin

.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
.endif

.include <bsd.port.mk>