diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2009-03-24 00:35:23 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2009-03-24 00:35:23 +0000 |
commit | f9bc8ada53d352900b81417a1d9e55ead2d654ef (patch) | |
tree | 9cef714e2a48747c9a1624061010d3da1bd61da6 | |
parent | 03a40f14d656c80310f6027186e7183189eec284 (diff) | |
download | ports-f9bc8ada53d352900b81417a1d9e55ead2d654ef.tar.gz ports-f9bc8ada53d352900b81417a1d9e55ead2d654ef.zip |
Notes
-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 |