Update audio/qjackctl to version 0.6.2
[dports.git] / audio / faad / Makefile
1 # Created by: Sean McGovern <sean@sfarc.net>
2 # $FreeBSD$
3
4 PORTNAME=       faad2
5 PORTVERSION=    2.8.8
6 PORTEPOCH=      1
7 CATEGORIES=     audio
8 MASTER_SITES=   SF/faac/${PORTNAME}-src/${PORTNAME}-${PORTVERSION:R}.0
9
10 MAINTAINER=     multimedia@FreeBSD.org
11 COMMENT=        MPEG-2 and MPEG-4 AAC audio decoder
12
13 LICENSE=        GPLv2+
14 LICENSE_FILE=   ${WRKSRC}/COPYING
15
16 USES=           autoreconf gmake libtool localbase:ldflags
17 INSTALL_TARGET= install-strip
18
19 GNU_CONFIGURE=  yes
20 LDFLAGS+=       -lpthread
21 USE_LDCONFIG=   yes
22
23 post-extract:
24         @${LN} -sf faad.man ${WRKSRC}/frontend/faad.1
25
26 post-patch:
27         @${REINPLACE_CMD} -e 's|faad.man|faad.1|g' \
28                 ${WRKSRC}/frontend/Makefile.am
29         @${REINPLACE_CMD} -e 's|^AM_CFLAGS|AM_CPPFLAGS|g ; \
30                  s|-iquote |-I|g' ${WRKSRC}/libfaad/Makefile.am
31         @${REINPLACE_CMD} -e 's|= -DUSE_|= -fPIC -DPIC -DUSE_|g' \
32                 ${WRKSRC}/common/mp4ff/Makefile.am
33         @${ECHO_CMD} "SUBDIRS = libfaad common frontend" > \
34                 ${WRKSRC}/Makefile.am
35         @${REINPLACE_CMD} -E -e 's|(FAAD2_VERSION +)"unknown"|\1"${PORTVERSION:R}"|' \
36                 ${WRKSRC}/include/neaacdec.h
37
38 post-configure:
39         @${REINPLACE_CMD} "s/444/644/g" ${WRKSRC}/common/mp4ff/Makefile
40
41 .include <bsd.port.mk>