new port request: despotify

Having trouble or general questions about porting software to FreeBSD? Ask here.

new port request: despotify

Postby b7j0c » 15 Jul 2011, 04:30

I'd like to put in a request for despotify, an open spotify lib. The homepage is here:

http://despotify.se/source-code/

There is a svn repo with a tarball download features.

I'm doing okay hacking around with the source a bit, but I don't think I have the full expertise to forge a proper port out of this. I'd be happy to help a more experienced porter.

thanks!
brad
b7j0c
Junior Member
 
Posts: 43
Joined: 21 Mar 2009, 03:43

Postby SirDice » 15 Jul 2011, 10:21

Porting is relatively easy. We even have a handbook for that too.

It's fixing the code itself that's sometimes quite challanging :e

Porter's handbook
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16185
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby b7j0c » 15 Jul 2011, 15:06

Yes, in this case there is a little bit of code triage that needs to be done. The code doesn't compile without modification, and there isn't autotools support, just a Makefile

thanks
brad
b7j0c
Junior Member
 
Posts: 43
Joined: 21 Mar 2009, 03:43

Postby SirDice » 15 Jul 2011, 15:12

Patches to the source can be applied in a port. Just diff the files and put the patches in the [file]files/[/file] directory of the port. The porter's handbook also explains this.
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16185
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby wblock@ » 15 Jul 2011, 17:12

The Porter's Handbook is good, but you can also learn a lot from looking at an existing port that's similar to the new one.
User avatar
wblock@
Old Fart
 
Posts: 10207
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy

Basic build instructions

Postby Ogham » 28 Jan 2012, 13:47

Hi,

I wanted to get the 'simple' despotify client running on my FreeBSD machine, especially for the ability to listen for remote commands.

Here is a basic guide to build, I haven't looked into [FILE]gmake install[/FILE] as of yet. When I get time I will see if I can put a decent port together.

Install required libs (as superuser):
Code: Select all
portmaster audio/libvorbis audio/mpg123


Checked out revision 517:
Code: Select all
svn co https://despotify.svn.sourceforge.net/svnroot/despotify despotify


Create Makefile.local.mk from Makefile.local.mk.dist:
Code: Select all
--- Makefile.local.mk.dist      2012-01-28 13:27:27.000000000 +0000
+++ Makefile.local.mk   2012-01-28 13:30:41.000000000 +0000
@@ -14,7 +14,7 @@
        # MAEMO4 = 1

        ## Install prefix
-       # INSTALL_PREFIX = /usr
+       # INSTALL_PREFIX = /usr/local

        ## Specify ncurses include path explicitly. (should contain curses.h)
        # NCURSES_INCLUDE = /usr/local/include/ncursesw
@@ -33,3 +33,8 @@
        ## via 'port install ..', try uncommenting these lines
        # CFLAGS += -I/opt/local/include
        # LDFLAGS += -L/opt/local/lib
+
+       ## FreeBSD
+       CFLAGS += -I/usr/local/include
+       LDFLAGS += -lpthread -L/usr/local/lib
+


and..
Code: Select all
gmake


HTH some of you desperates! Sorry to necro-firstpost :e
Ogham
Junior Member
 
Posts: 23
Joined: 28 Jan 2012, 13:09

Postby Carpetsmoker » 10 Jan 2013, 08:22

Has anyone got some reasonable success with this? I built it successfully, but it segfaults all over the place.
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
User avatar
Carpetsmoker
Member
 
Posts: 905
Joined: 16 Nov 2008, 19:07
Location: Eindhoven, Netherlands

Postby mix_room » 10 Jan 2013, 09:33

I had despotify running earlier, it didn't segfault then. I haven't used it for a while, but it seems to segfault a lot for me aswell.

EDIT: It seems as though there are underlying troubles with the version of despotify: http://www.raspberrypi.org/phpBB3/viewtopic.php?t=13443
mix_room
Member
 
Posts: 562
Joined: 07 Aug 2009, 16:31

Postby Carpetsmoker » 10 Jan 2013, 13:51

Thanks.

In the meanwhile, I got the Windows client running with Wine. While not perfect, it does play music :)

P.S.
I also tried the Linux version, but this requires QT4. Apparently there's no linux-qt4 in ports?
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
User avatar
Carpetsmoker
Member
 
Posts: 905
Joined: 16 Nov 2008, 19:07
Location: Eindhoven, Netherlands

Postby cpm » 10 Jan 2013, 19:26

Is announced in last revision that API not longer supported.
Mark DEPRECATED with a timeout of one month. The spotify API changed and is no longer supported.

Confirmed by: author via IRC


Read svn commit: r309929.
cpm
Senior Member
 
Posts: 1353
Joined: 30 Jul 2011, 20:10

Postby mix_room » 11 Jan 2013, 09:32

Carpetsmoker wrote:In the meanwhile, I got the Windows client running with Wine. While not perfect, it does play music :)


I'm going to assume that you haven't tried, but ask anyway, did you by any change get Wine-Spotify integrated into musicpd? That was my original reason for wanting to have despotify. It was fantastic to be able to play all kinds of music from different sources, with a lot of possibilities to control it, etc etc.

Will probably have to wait to a new despotify-type client.
mix_room
Member
 
Posts: 562
Joined: 07 Aug 2009, 16:31


Return to Porting New Software

Who is online

Users browsing this forum: No registered users and 0 guests