blob: e936d4819f2ff9cd728113e1b4c292fe4ccedf66 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# Created by: Michael Nottebrock <lofi@FreeBSD.org>
# $FreeBSD$
PORTNAME= last.fm
PORTVERSION= 1.5.4.26862
DISTVERSIONSUFFIX= .src
PORTREVISION= 2
CATEGORIES= audio net
MASTER_SITES= http://cdn.last.fm/client/src/
MAINTAINER= ports@FreeBSD.org
COMMENT= Official last.fm radio player
LICENSE= GPLv2
LIB_DEPENDS= libasound.so:${PORTSDIR}/audio/alsa-lib \
libgpod.so:${PORTSDIR}/audio/libgpod \
libmad.so:${PORTSDIR}/audio/libmad \
libsamplerate.so:${PORTSDIR}/audio/libsamplerate \
libfftw3f.so:${PORTSDIR}/math/fftw3-float
WRKSRC= ${WRKDIR}/last.fm-${PORTVERSION}
USE_BZIP2= yes
USES= dos2unix qmake:norecursive
DOS2UNIX_GLOB= *.h *.cpp
USE_QT4= moc_build rcc_build uic_build \
gui network sql xml imageformats_run
QMAKE_SOURCE_PATH= ${WRKSRC}/LastFM.pro
USE_LDCONFIG= yes
SUB_FILES= pkg-install pkg-deinstall
post-patch:
@${REINPLACE_CMD} -e \
's|linux\*|unix|g' ${WRKSRC}/src/src.pro
@${REINPLACE_CMD} -e \
's|/usr/include/gpod|${LOCALBASE}/include/gpod| ; \
s|/usr/include/glib|${LOCALBASE}/include/glib| ; \
s|linux|freebsd|' ${WRKSRC}/src/mediadevices/ipod/ipod.pro
@${REINPLACE_CMD} -e \
's|^RUNDIR.*|RUNDIR=${PREFIX}/lib/last.fm|' \
${WRKSRC}/bin/last.fm.sh
@${REINPLACE_CMD} -e \
's|glib/.*\.h>|glib.h>|g' \
${WRKSRC}/src/mediadevices/ipod/IpodDevice.cpp
pre-build:
@${MKDIR} ${WRKSRC}/build/fplib/release
post-build:
@(cd ${WRKSRC}/src/output/RtAudio \
&& ${SETENV} ${CONFIGURE_ENV} ${QMAKE} ${QMAKE_ARGS} \
&& ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS})
@${SED} -e 's|/usr/local/share/|${PREFIX}/lib/|' \
${FILESDIR}/last.fm.desktop > ${WRKDIR}/last.fm.desktop
do-install:
(cd ${WRKSRC}/bin && ${INSTALL_SCRIPT} last.fm.sh \
${STAGEDIR}${PREFIX}/bin/last.fm)
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/last.fm
(cd ${WRKSRC}/bin && ${INSTALL_PROGRAM} last.fm \
${STAGEDIR}${PREFIX}/lib/last.fm)
.for i in libLastFmFingerprint libLastFmTools libMoose
(cd ${WRKSRC}/bin && ${INSTALL_LIB} ${i}.so.1.0.0 \
${STAGEDIR}${PREFIX}/lib/last.fm)
${LN} -sf ${i}.so.1.0.0 ${STAGEDIR}${PREFIX}/lib/last.fm/${i}.so.1.0
${LN} -sf ${i}.so.1.0.0 ${STAGEDIR}${PREFIX}/lib/last.fm/${i}.so.1
${LN} -sf ${i}.so.1.0.0 ${STAGEDIR}${PREFIX}/lib/last.fm/${i}.so
.endfor
@(cd ${WRKSRC}/bin && ${COPYTREE_SHARE} data \
${STAGEDIR}${PREFIX}/lib/last.fm)
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/last.fm/services
(cd ${WRKSRC}/bin/services && ${INSTALL_LIB} *.so \
${STAGEDIR}${PREFIX}/lib/last.fm/services)
(cd ${WRKDIR} && ${INSTALL_DATA} last.fm.desktop \
${STAGEDIR}${DESKTOPDIR})
@${MKDIR} ${STAGEDIR}${PREFIX}/share/services
(cd ${FILESDIR} && ${INSTALL_DATA} lastfm.protocol \
${STAGEDIR}${PREFIX}/share/services)
.include <bsd.port.mk>
|