2013-06-15 00:38:23 +02:00
|
|
|
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
2001-10-16 15:21:53 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= liba52
|
2002-08-07 02:12:48 +02:00
|
|
|
PORTVERSION= 0.7.4
|
2014-07-25 15:32:02 +02:00
|
|
|
PORTREVISION= 3
|
2001-10-16 15:21:53 +02:00
|
|
|
CATEGORIES= audio
|
|
|
|
MASTER_SITES= http://liba52.sourceforge.net/files/
|
|
|
|
DISTNAME= a52dec-${PORTVERSION:S/.b/b/}
|
|
|
|
|
2007-04-01 09:57:39 +02:00
|
|
|
MAINTAINER= multimedia@FreeBSD.org
|
2013-06-15 00:38:23 +02:00
|
|
|
COMMENT= Free library for decoding ATSC A/52 streams, aka AC-3
|
2001-10-16 15:21:53 +02:00
|
|
|
|
2010-06-13 12:52:39 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2014-07-25 15:32:02 +02:00
|
|
|
USES= gmake libtool
|
2001-10-16 15:21:53 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --disable-oss --enable-shared
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_LDCONFIG= yes
|
2001-10-16 15:21:53 +02:00
|
|
|
|
2013-06-15 00:38:23 +02:00
|
|
|
OPTIONS_DEFINE= DJBFFT OPTIMIZED_CFLAGS DOCS
|
|
|
|
DJBFFT_DESC= djb fft support
|
2002-05-16 00:54:33 +02:00
|
|
|
|
2016-04-01 15:29:15 +02:00
|
|
|
DJBFFT_BUILD_DEPENDS= ${LOCALBASE}/lib/libdjbfft.a:math/djbfft
|
|
|
|
DJBFFT_RUN_DEPENDS= ${LOCALBASE}/lib/libdjbfft.a:math/djbfft
|
2013-06-15 00:38:23 +02:00
|
|
|
DJBFFT_CFLAGS= -I${LOCALBASE}/include
|
|
|
|
DJBFFT_LDFLAGS= -L${LOCALBASE}/lib
|
|
|
|
DJBFFT_CONFIGURE_ON= --enable-djbfft
|
2002-05-16 00:54:33 +02:00
|
|
|
|
2001-10-26 18:13:20 +02:00
|
|
|
HEADER_FILES= liba52/a52_internal.h
|
|
|
|
|
2017-09-28 21:32:49 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} '/-prefer-non-pic/d' ${WRKSRC}/configure
|
|
|
|
|
2015-08-19 15:29:59 +02:00
|
|
|
post-patch-OPTIMIZED_CFLAGS-off:
|
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}
|
2015-08-19 15:29:59 +02:00
|
|
|
post-patch-DJBFFT-on:
|
2002-07-03 19:33:24 +02:00
|
|
|
@${REINPLACE_CMD} -E -e 's|(fftc4.h)|djbfft/\1|' ${WRKSRC}/liba52/imdct.c
|
2002-01-20 19:56:47 +01:00
|
|
|
|
2001-10-16 15:21:53 +02:00
|
|
|
post-install:
|
2013-10-19 01:49:55 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/liba52.txt ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/liba52/a52_internal.h ${STAGEDIR}${PREFIX}/include/a52dec
|
2014-05-06 08:57:32 +02:00
|
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/liba52.so.0.*
|
2001-10-16 15:21:53 +02:00
|
|
|
|
2014-05-06 08:57:32 +02:00
|
|
|
.include <bsd.port.mk>
|