aboutsummaryrefslogtreecommitdiffstats
path: root/audio/alac/Makefile
blob: e12212a440cc85dff259a4f49c0acc475312d2c4 (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:    alac
# Date created:     2005-03-08
# Whom:         Michael Johnson <ahze@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   alac
PORTVERSION=    0.2.0
CATEGORIES= audio
MASTER_SITES=   http://craz.net/programs/itunes/files/
DISTNAME=   ${PORTNAME}_decoder-${PORTVERSION}
EXTRACT_SUFX=   .tgz

MAINTAINER= multimedia@FreeBSD.org
COMMENT=    Basic decoder for Apple Lossless Audio Codec files (ALAC)

WRKSRC=     ${WRKDIR}/${PORTNAME}_decoder
ALL_TARGET= alac

PLIST_FILES=    bin/alac
PORTDOCS=   README

post-patch:
.if !defined(WITH_DEBUG)
    @${REINPLACE_CMD} -e 's|-ggdb||' \
        ${WRKSRC}/${MAKEFILE}
.endif
    @${REINPLACE_CMD} -e 's|gcc|${CC}|; s|-O3|${CFLAGS}|' \
        ${WRKSRC}/${MAKEFILE}

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/alac ${PREFIX}/bin/
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif

.include <bsd.port.mk>