Lines 1-46
Link Here
|
1 |
# New ports collection makefile for: liblastfm |
1 |
# Created by: Matt Tosto <datahead4@gmail.com> |
2 |
# Date created: Jun 7 2009 |
2 |
# $FreeBSD$ |
3 |
# Whom: Matt Tosto <datahead4@gmail.com> |
|
|
4 |
# |
5 |
# $FreeBSD: ports/audio/liblastfm/Makefile,v 1.16 2012/11/17 05:54:36 svnexp Exp $ |
6 |
# |
7 |
|
3 |
|
8 |
PORTNAME= liblastfm |
4 |
PORTNAME= liblastfm |
9 |
PORTVERSION= 0.3.3 |
5 |
PORTVERSION= 1.0.5 |
10 |
PORTREVISION= 4 |
|
|
11 |
CATEGORIES= audio |
6 |
CATEGORIES= audio |
12 |
MASTER_SITES= ${MASTER_SITE_LOCAL} |
7 |
MASTER_SITES= http://cdn.last.fm/client/Linux/ |
13 |
MASTER_SITE_SUBDIR= swills |
8 |
DISTNAME= Last.fm-2.1.30 |
14 |
DISTNAME= mxcl-${PORTNAME}-${PORTVERSION}-0-gf0b3239 |
|
|
15 |
|
9 |
|
16 |
MAINTAINER= datahead4@gmail.com |
10 |
MAINTAINER= datahead4@gmail.com |
17 |
COMMENT= Collection of libraries to help integrate Last.fm services |
11 |
COMMENT= Collection of libraries to help integrate Last.fm services |
18 |
|
12 |
|
19 |
LIB_DEPENDS= samplerate.1:${PORTSDIR}/audio/libsamplerate \ |
13 |
LIB_DEPENDS= samplerate:${PORTSDIR}/audio/libsamplerate \ |
20 |
fftw3:${PORTSDIR}/math/fftw3 \ |
14 |
fftw3:${PORTSDIR}/math/fftw3 \ |
21 |
fftw3f:${PORTSDIR}/math/fftw3-float |
15 |
fftw3f:${PORTSDIR}/math/fftw3-float |
22 |
|
16 |
|
23 |
USE_CSTD= gnu89 |
17 |
USE_BZIP2= yes |
24 |
USE_RUBY= yes |
18 |
USE_CMAKE= yes |
25 |
USE_GMAKE= yes |
19 |
USE_QT4= corelib xml network sql gui qtestlib dbus \ |
26 |
USE_QT4= corelib xml network sql gui qtestlib \ |
|
|
27 |
qmake_build moc_build rcc_build uic_build |
20 |
qmake_build moc_build rcc_build uic_build |
28 |
HAS_CONFIGURE= yes |
|
|
29 |
CONFIGURE_ARGS+= -release --prefix ${PREFIX} |
30 |
MAKE_JOBS_UNSAFE= yes |
21 |
MAKE_JOBS_UNSAFE= yes |
31 |
|
22 |
|
32 |
USE_LDCONFIG= yes |
23 |
USE_LDCONFIG= yes |
33 |
|
24 |
|
34 |
WRKSRC= ${WRKDIR}/mxcl-liblastfm-1c739eb |
25 |
OPTIONS_DEFINE= FINGERPRINT TESTS |
|
|
26 |
FINGERPRINT_DESC= Build the lastfm-fingerprint library |
27 |
TESTS_DESC= Build liblastfm tests |
28 |
|
29 |
OPTIONS_DEFAULT= FINGERPRINT |
30 |
|
31 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
32 |
|
33 |
.include <bsd.port.options.mk> |
34 |
|
35 |
.if ${PORT_OPTIONS:MFINGERPRINT} |
36 |
CMAKE_ARGS+= -DBUILD_FINGERPRINT=ON |
37 |
PLIST_SUB+= FINGERPRINT="" |
38 |
.else |
39 |
CMAKE_ARGS+= -DBUILD_FINGERPRINT=OFF |
40 |
PLIST_SUB+= FINGERPRINT="@comment " |
41 |
.endif |
42 |
|
43 |
.if ${PORT_OPTIONS:MTESTS} |
44 |
CMAKE_ARGS+= -DBUILD_TESTS=ON |
45 |
.else |
46 |
CMAKE_ARGS+= -DBUILD_TESTS=OFF |
47 |
.endif |
35 |
|
48 |
|
36 |
.include <bsd.port.pre.mk> |
49 |
.include <bsd.port.mk> |
37 |
post-extract: |
|
|
38 |
${REINPLACE_CMD} -e 's|#!/usr/bin/ruby|#!${RUBY_WITH_SUFFIX}|' ${WRKSRC}/configure |
39 |
${REINPLACE_CMD} -e 's|\`ruby |`${RUBY_WITH_SUFFIX} |' ${WRKSRC}/configure |
40 |
${REINPLACE_CMD} -e 's|__demos __tests||' ${WRKSRC}/admin/Makefile.rb |
41 |
${REINPLACE_CMD} -e '/QMAKE_CXXFLAGS_RELEASE.*/d' \ |
42 |
-e 's|linux:|unix:|' ${WRKSRC}/.qmake.cache |
43 |
${FIND} ${WRKSRC}/admin -type f | ${XARGS} \ |
44 |
${REINPLACE_CMD} -e 's|#!/usr/bin/ruby|#!${RUBY_WITH_SUFFIX}|' |
45 |
|
46 |
.include <bsd.port.post.mk> |