b2fd75e438
* kill devel/libtool and move to devel/libtool13, upgrading to 1.3.5 * upgrade repo-copied devel/libtool14 to 1.4.3 * break out libltdl into its own separate port * move to version-numbered binaries/scripts (ie: there is *no* 'libtool' any more -- USE_LIBTOOL and USE_LIBTOOL_VER are your friends) Approved by: portmgr (kris) - for the bsd.port.mk hooks Tested by: bento 4-exp builds (repeatedly)
73 lines
2.0 KiB
Makefile
73 lines
2.0 KiB
Makefile
# 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
|
|
PORTVERSION= 0.7.4
|
|
CATEGORIES= audio
|
|
MASTER_SITES= http://liba52.sourceforge.net/files/
|
|
DISTNAME= a52dec-${PORTVERSION:S/.b/b/}
|
|
|
|
MAINTAINER= lioux@FreeBSD.org
|
|
COMMENT= A free library for decoding ATSC A/52 streams, aka AC-3
|
|
|
|
USE_GMAKE= yes
|
|
USE_REINPLACE= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --disable-oss --enable-shared
|
|
USE_LIBTOOL= yes
|
|
INSTALLS_SHLIB= yes
|
|
|
|
.if !defined(WITHOUT_DJBFFT) && !defined(PACKAGE_BUILDING)
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libdjbfft.a:${PORTSDIR}/math/djbfft
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/libdjbfft.a:${PORTSDIR}/math/djbfft
|
|
|
|
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
|
|
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
|
|
CONFIGURE_ARGS+= --enable-djbfft
|
|
.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
|
|
|
|
post-patch:
|
|
.ifndef(WITH_OPTIMIZED_CFLAGS)
|
|
@${REINPLACE_CMD} -E -e 's!-O3!${CFLAGS}!' -e 's!-mcpu=[^"]+"!"!' \
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
|
.endif
|
|
.ifndef(WITHOUT_DJBFFT)
|
|
@${REINPLACE_CMD} -E -e 's|(fftc4.h)|djbfft/\1|' ${WRKSRC}/liba52/imdct.c
|
|
.endif
|
|
|
|
post-configure:
|
|
@${LN} -sf ${LIBTOOL} ${WRKSRC}/libtool
|
|
|
|
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.mk>
|