1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/audio/ecasound/Makefile
Joe Marcus Clarke 9e5632dd66 Apply a big libtool patch to allow porters to use the libtool installed by
the libtoolX ports instead of the one included with each port.  Ports that
set USE_LIBTOOL_VER=X will now use the ports version of libtool instead of
the included version.  To restore previous behavior, use the new macro,
USE_INC_LIBTOOL_VER.  Both macros accept the same argument: a libtool version.

For example, to use the ports version of libtool-1.5, add the following to
your Makefile:

USE_LIBTOOL_VER=        15

To use the included version of libtool with extra hacks provided by
libtool-1.5, add the following to your Makefile:

USE_INC_LIBTOOL_VER=    15

With this change, ports that had to add additional libtool hacks to prevent
.la files from being installed or to fix certain threading issues can now
delete those hacks (after appropriate testing, of course).

PR:		63944
Based on work by:eik and marcus
Approved by:	ade (autotools maintainer)
Tested by:	kris on pointyhat
Bound to be hidden problems:	You bet
2004-07-09 17:43:11 +00:00

85 lines
2.2 KiB
Makefile

# New ports collection makefile for: ecasound
# Date created: 22 dec 2000
# Whom: The Anarcat <anarcat@anarcat.dyndns.org>
#
# $FreeBSD$
#
PORTNAME= ecasound
PORTVERSION= 2.2.3
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= http://ecasound.seul.org/download/
MAINTAINER= anarcat@anarcat.ath.cx
COMMENT= Multitrack audio processing software
USE_GMAKE= yes
USE_AUTOMAKE_VER=14
USE_AUTOCONF_VER=213
USE_INC_LIBTOOL_VER= 13
USE_REINPLACE= yes
INSTALLS_SHLIB= yes
MAKE_ENV+= ${CONFIGURE_ENV}
.if defined(WITH_MPG123)
RUN_DEPENDS+= mpg123:${PORTSDIR}/audio/mpg123
.endif
.if defined(WITH_LAME)
RUN_DEPENDS+= lame:${PORTSDIR}/audio/lame
.endif
.if defined(WITH_MIKMOD)
RUN_DEPENDS+= mikmod:${PORTSDIR}/audio/mikmod
.endif
.if defined(WITH_AUDIOFILE)
# very crappy hack to detect audiofile properly
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include ${CPPFLAGS}" \
LDFLAGS="-L${LOCALBASE}/lib ${LDFLAGS}" \
CFLAGS="-I${LOCALBASE}/include ${CFLAGS}" \
CXXFLAGS="-I${LOCALBASE}/include ${CXXFLAGS}"
LIB_DEPENDS+= audiofile.0:${PORTSDIR}/audio/libaudiofile
.else
CONFIGURE_ARGS+= --disable-audiofile
.endif
#.if defined(WITH_PYECASOUND)
#USE_PYTHON= yes
#PLIST_SUB+= WITH_PYECASOUND=""
#.else
CONFIGURE_ARGS+= --disable-pyecasound
PLIST_SUB+= WITH_PYECASOUND="@comment "
#.endif
.if !defined(WITH_OPTIMIZED_CFLAGS)
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-configure.in-optimizations
.endif
MAN1= ecasound-iam.1 ecasound.1 ecatools.1 ecaconvert.1 \
ecafixdc.1 ecalength.1 ecamonitor.1 ecanormalize.1 \
ecaplay.1 ecasignalview.1
MAN5= ecasoundrc.5
pre-everything::
.if !defined(WITH_OPTIMIZED_CFLAGS)
@${ECHO_MSG} "You can enable additional compilation optimizations"
@${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS"
.endif
.if !defined(WITH_AUDIOFILE)
@${ECHO_MSG} "You can enable AUDIOFILE support by defining WITH_AUDIOFILE."
.endif
post-patch:
.if !defined(WITH_OPTIMIZED_CFLAGS)
@${REINPLACE_CMD} -e 's!-O2 -ffast-math!!' ${WRKSRC}/kvutils/Makefile.am
.endif
# ${STRIP_CMD} ${PREFIX}/bin/ecaconvert ${PREFIX}/bin/ecafixdc \
#${PREFIX}/bin/ecanormalize ${PREFIX}/bin/ecaplay ${PREFIX}/bin/ecasignalview \
#${PREFIX}/bin/ecasound ${PREFIX}/bin/ecasound-config ${PREFIX}/bin/ecasoundc-config
.include <bsd.port.mk>