freebsd-ports/audio/liba52/Makefile

80 lines
2 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: liba52
# Date created: Tue Oct 16 10:43:56 BRST 2001
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= liba52
2002-08-07 02:12:48 +02:00
PORTVERSION= 0.7.4
PORTREVISION= 2
CATEGORIES= audio
MASTER_SITES= http://liba52.sourceforge.net/files/
DISTNAME= a52dec-${PORTVERSION:S/.b/b/}
MAINTAINER= multimedia@FreeBSD.org
2003-02-23 20:58:35 +01:00
COMMENT= A free library for decoding ATSC A/52 streams, aka AC-3
2010-06-13 12:52:39 +02:00
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
2010-12-04 08:34:27 +01:00
USE_AUTOTOOLS= libtool
USE_GMAKE= yes
MAKE_JOBS_SAFE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-oss --enable-shared
USE_LDCONFIG= yes
.if !defined(WITHOUT_DJBFFT) && !defined(PACKAGE_BUILDING)
BUILD_DEPENDS+= ${LOCALBASE}/lib/libdjbfft.a:${PORTSDIR}/math/djbfft
2002-05-16 04:16:24 +02:00
RUN_DEPENDS+= ${LOCALBASE}/lib/libdjbfft.a:${PORTSDIR}/math/djbfft
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS+= --enable-djbfft
.endif
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64" || ${ARCH} == "powerpc"
CFLAGS+= -fPIC
.endif
MAN1= a52dec.1 extract_a52.1
HEADER_FILES= liba52/a52_internal.h
pre-everything::
.ifndef(WITH_OPTIMIZED_CFLAGS)
@${ECHO_MSG} ">>>"
@${ECHO_MSG} ">>> You can enable extra optimizations by defining WITH_OPTIMIZED_CFLAGS."
@${ECHO_MSG} ">>> For example, 'make WITH_OPTIMIZED_CFLAGS=yes'"
@${ECHO_MSG} ">>>"
.endif
.ifndef(WITHOUT_DJBFFT)
@${ECHO_MSG} '>>>'
@${ECHO_MSG} '>>> You can disable djbfft optimized FFT routines by defining WITHOUT_DJBFFT.'
@${ECHO_MSG} ">>> For example, 'make WITHOUT_DJBFFT=yes'"
@${ECHO_MSG} '>>>'
.endif
2002-01-20 19:56:47 +01:00
post-patch:
.ifndef(WITH_OPTIMIZED_CFLAGS)
2002-07-03 19:33:24 +02:00
@${REINPLACE_CMD} -E -e 's!-O3!${CFLAGS}!' -e 's!-mcpu=[^"]+"!"!' \
2002-01-20 19:56:47 +01:00
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
.endif
.ifndef(WITHOUT_DJBFFT)
2002-07-03 19:33:24 +02:00
@${REINPLACE_CMD} -E -e 's|(fftc4.h)|djbfft/\1|' ${WRKSRC}/liba52/imdct.c
.endif
2002-01-20 19:56:47 +01:00
post-install:
.ifndef(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/doc/liba52.txt ${DOCSDIR}
.endif
.for file in ${HEADER_FILES}
@${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/include/a52dec
.endfor
.include <bsd.port.post.mk>