2007-01-16 12:50:36 +01:00
|
|
|
# $NetBSD: Makefile,v 1.6 2007/01/16 11:50:36 netcap Exp $
|
2005-04-27 17:51:36 +02:00
|
|
|
#
|
|
|
|
|
2007-01-16 11:19:56 +01:00
|
|
|
DISTNAME= soundtouch-1.3.1
|
|
|
|
PKGNAME= libSoundTouch-1.3.1
|
2005-04-27 17:51:36 +02:00
|
|
|
CATEGORIES= audio
|
2007-01-16 11:19:56 +01:00
|
|
|
MASTER_SITES= http://www.surina.net/soundtouch/
|
2005-04-27 17:51:36 +02:00
|
|
|
|
2006-05-19 18:51:13 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2006-05-01 03:31:58 +02:00
|
|
|
HOMEPAGE= http://www.surina.net/soundtouch/
|
2005-04-27 17:51:36 +02:00
|
|
|
COMMENT= Audio Processing Library
|
|
|
|
|
2007-01-16 11:19:56 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/
|
|
|
|
USE_TOOLS+= gmake automake pkg-config
|
|
|
|
USE_LIBTOOL= yes
|
2006-09-14 20:25:48 +02:00
|
|
|
USE_LANGUAGES= c c++
|
2005-04-27 17:51:36 +02:00
|
|
|
USE_PKGLOCALEDIR= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2007-01-16 11:19:56 +01:00
|
|
|
# For some reason this library contains a config/ directory with
|
|
|
|
# lots of broken symlinks. Remove them here and add new one using
|
|
|
|
# patches/patch-ac. Files were taken from Audacity, which is
|
|
|
|
# distributed with it's own version of SoundTouch. The patch was
|
|
|
|
# taken from FreeBSD Ports.
|
|
|
|
# Note: Probably we should split patch-ac or create it from scratch,
|
|
|
|
# but it would be a lot better if it was fixed upstream.
|
|
|
|
pre-patch:
|
|
|
|
${RM} -rf ${WRKSRC}/config/*
|
|
|
|
|
2007-01-16 12:50:36 +01:00
|
|
|
post-patch:
|
2007-01-16 11:19:56 +01:00
|
|
|
${SED} -e 's|-O3|${CFLAGS:M*:Q}|; s|$$(prefix)/doc|$$(datadir)/doc|' \
|
|
|
|
${WRKSRC}/source/example/bpm/Makefile.in \
|
|
|
|
${WRKSRC}/source/example/SoundStretch/Makefile.in \
|
|
|
|
${WRKSRC}/source/SoundTouch/Makefile.in \
|
|
|
|
${WRKSRC}/include/Makefile.in ${WRKSRC}/Makefile.in
|
|
|
|
# Fix for GCC 4.x
|
|
|
|
${SED} -e 's|SoundTouch::||' ${WRKSRC}/include/SoundTouch.h
|
|
|
|
${CHMOD} +rx ${WRKSRC}/config/install-sh
|
|
|
|
|
2005-04-27 17:51:36 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|