diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2009-03-24 08:35:23 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2009-03-24 08:35:23 +0800 |
commit | e5efae2cd0577d283c26933e11707446f7f459d3 (patch) | |
tree | 6b9523949b953232b23e88085388f4e588c932fe /audio/last.fm | |
parent | 3007bfa5b8bfb8e44727e9cd01b913e2d897b957 (diff) | |
download | freebsd-ports-gnome-e5efae2cd0577d283c26933e11707446f7f459d3.tar.gz freebsd-ports-gnome-e5efae2cd0577d283c26933e11707446f7f459d3.tar.zst freebsd-ports-gnome-e5efae2cd0577d283c26933e11707446f7f459d3.zip |
- Fix dynamic loading problem
- Add new version of last.fm script
PR: 127368
Submitted by: "Carlos A. M. dos Santos" <unixmania at gmail dot com>
Diffstat (limited to 'audio/last.fm')
-rw-r--r-- | audio/last.fm/Makefile | 7 | ||||
-rw-r--r-- | audio/last.fm/files/last.fm | 13 | ||||
-rw-r--r-- | audio/last.fm/pkg-plist | 1 |
3 files changed, 16 insertions, 5 deletions
diff --git a/audio/last.fm/Makefile b/audio/last.fm/Makefile index e51902225bf9..0d6a84432f9c 100644 --- a/audio/last.fm/Makefile +++ b/audio/last.fm/Makefile @@ -7,7 +7,7 @@ PORTNAME= last.fm PORTVERSION= 1.3.2.14 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= audio net MASTER_SITES= http://cdn.last.fm/client/src/ DISTNAME= ${PORTNAME}-${PORTVERSION}.src @@ -37,17 +37,16 @@ post-patch: -E -e 's|(.*"CONFIG-=debug")|\1 ${QMAKEFLAGS}|g' \ -e 's|function header|header()|g' \ -e 's|function middle|middle()|g' \ + -e 's|-pthread|-pthread -R/usr/local/share/last.fm|g' \ ${WRKSRC}/configure ${REINPLACE_CMD} -e 's|linux\*|unix|g' ${WRKSRC}/src/src.pro post-build: cd ${WRKSRC}/src/output/RtAudio && \ ${SETENV} ${CONFIGURE_ENV} ${QMAKE} ${QMAKEFLAGS} && 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 + ${INSTALL_SCRIPT} ${FILESDIR}/last.fm ${PREFIX}/bin/last.fm ${MKDIR} ${PREFIX}/share/applications ${PREFIX}/share/services ${INSTALL_DATA} ${FILESDIR}/last.fm.desktop ${PREFIX}/share/applications ${INSTALL_DATA} ${FILESDIR}/lastfm.protocol ${PREFIX}/share/services diff --git a/audio/last.fm/files/last.fm b/audio/last.fm/files/last.fm new file mode 100644 index 000000000000..56a3560451ec --- /dev/null +++ b/audio/last.fm/files/last.fm @@ -0,0 +1,13 @@ +#!/bin/sh +# executes all *nix variants of Last.fm executable --mxcl + +RUNDIR=/usr/local/share/last.fm +LD_LIBRARY_PATH=$RUNDIR; export LD_LIBRARY_PATH + +if [ -f $RUNDIR/last.fm.app ]; then + exec $RUNDIR/last.fm.app $* +elif [ -f $RUNDIR/last.fm.app_debug ]; then + exec $RUNDIR/last.fm.app_debug $* +elif [ -d $RUNDIR/Last.fm.app ]; then + exec $RUNDIR/Last.fm_debug $* +fi diff --git a/audio/last.fm/pkg-plist b/audio/last.fm/pkg-plist index 0cd9a9a8ae8c..073b7699bfb0 100644 --- a/audio/last.fm/pkg-plist +++ b/audio/last.fm/pkg-plist @@ -99,7 +99,6 @@ bin/last.fm %%DATADIR%%/data/wizard_mac.png %%DATADIR%%/last.fm %%DATADIR%%/last.fm.app -%%DATADIR%%/last.fm.bak %%DATADIR%%/libLastFmTools.so %%DATADIR%%/libLastFmTools.so.1 %%DATADIR%%/libLastFmTools.so.1.0 |