pkgsrc-wip/libSoundTouch/Makefile

41 lines
1.4 KiB
Makefile
Raw Normal View History

2007-01-16 12:50:36 +01:00
# $NetBSD: Makefile,v 1.6 2007/01/16 11:50:36 netcap Exp $
#
2007-01-16 11:19:56 +01:00
DISTNAME= soundtouch-1.3.1
PKGNAME= libSoundTouch-1.3.1
CATEGORIES= audio
2007-01-16 11:19:56 +01:00
MASTER_SITES= http://www.surina.net/soundtouch/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.surina.net/soundtouch/
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++
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
.include "../../mk/bsd.pkg.mk"