blob: e1a34966f9fe08ccfc03aafc9acb82ca1464d3f0 (
plain) (
blame)
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
|
# New ports collection makefile for: last.fm
# Date created: February 5th, 2007
# Whom: Michael Nottebrock <lofi@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= last.fm
PORTVERSION= 1.3.0.58
CATEGORIES= audio net
MASTER_SITES= http://static.last.fm/client/Linux/
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
MAINTAINER= lofi@FreeBSD.org
COMMENT= Official last.fm radio player
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
SUB_FILES= pkg-install pkg-deinstall
USE_BZIP2= yes
USE_QT_VER= 4
QT_COMPONENTS= gui imageformats moc network qmake rcc sql uic xml
HAS_CONFIGURE= yes
CONFIGURE_ENV+= X11BASE=${X11BASE}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
post-build:
cd ${WRKSRC}/src/output/RtAudio && \
${QMAKE} -spec freebsd-g++ && make
${REINPLACE_CMD} -e 's|`dirname $$0`|${DATADIR}|g' \
${WRKSRC}/bin/last.fm
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/bin/last.fm ${PREFIX}/bin/last.fm
${MKDIR} ${PREFIX}/share/services
${INSTALL_DATA} ${FILESDIR}/lastfm.protocol ${PREFIX}/share/services
${MKDIR} ${DATADIR}
${CP} -Rp ${WRKSRC}/bin/* ${DATADIR}/
post-install:
.if !defined(PACKAGE_BUILDING)
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.endif
.include <bsd.port.mk>
|