summaryrefslogtreecommitdiff
path: root/audio/liblastfm/Makefile
blob: 1f40a2a7a9f66948913d9616d30be29a731331f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# $NetBSD: Makefile,v 1.1.1.1 2010/02/15 15:51:55 wiz Exp $
#

DISTNAME=	liblastfm-0.3.0
PKGREVISION=	2
CATEGORIES=	audio net
MASTER_SITES=	http://cdn.last.fm/src/
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://github.com/mxcl/liblastfm/tree/master
COMMENT=	Library for accessing last.fm
LICENSE=	gnu-gpl-v2

BUILD_DEPENDS+=	ruby-[0-9]*:../../lang/ruby

PKG_DESTDIR_SUPPORT=	user-destdir

USE_LANGUAGES=		c c++
USE_LIBTOOL=		yes
USE_TOOLS+=		bash gmake perl pkg-config
PREPEND_PATH+=		${QTDIR}/bin

HAS_CONFIGURE=		yes
CONFIGURE_ARGS+=	--prefix ${PREFIX}
#CONFIGURE_ARGS+=	--release
#CPPFLAGS+=		-fPIC
CONFIG_SHELL=		ruby

REPLACE_PERL=		admin/findsrc
REPLACE_INTERPRETER+=	ruby
REPLACE.ruby.old=	.*ruby
REPLACE.ruby.new=	${LOCALBASE}/bin/ruby
REPLACE_FILES.ruby+=	admin/which_qmake.rb
REPLACE_FILES.ruby+=	admin/lastfm.h.rb
REPLACE_FILES.ruby+=	admin/Makefile.rb
REPLACE_FILES.ruby+=	admin/platform.rb
REPLACE_FILES.ruby+=	admin/utils.rb

.include "../../audio/libsamplerate/buildlink3.mk"
.include "../../math/fftwf/buildlink3.mk"
.include "../../x11/qt4-libs/buildlink3.mk"
.include "../../x11/qt4-tools/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"