1373b new port request: despotify - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Porting New Software

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

Reply
 
Thread Tools Display Modes
  #1  
Old July 15th, 2011, 05:30
b7j0c b7j0c is offline
Junior Member
 
Join Date: Mar 2009
Posts: 42
Thanks: 3
Thanked 4 Times in 4 Posts
Default new port request: despotify

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
Reply With Quote
  #2  
Old July 15th, 2011, 11:21
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,713
Thanks: 47
Thanked 2,022 Times in 1,861 Posts
Default

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

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

Porter's handbook
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #3  
Old July 15th, 2011, 16:06
b7j0c b7j0c is offline
Junior Member
 
Join Date: Mar 2009
Posts: 42
Thanks: 3
Thanked 4 Times in 4 Posts
Default

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
Reply With Quote
  #4  
Old July 15th, 2011, 16:12
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,713
Thanks: 47
Thanked 2,022 Times in 1,861 Posts
Default

Patches to the source can be applied in a port. Just diff the files and put the patches in the files/ 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.
Reply With Quote
  #5  
Old July 15th, 2011, 18:12
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,715
Thanks: 432
Thanked 1,759 Times in 1,457 Posts
Default

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.
Reply With Quote
  #6  
Old January 28th, 2012, 14:47
Ogham Ogham is offline
Junior Member
 
Join Date: Jan 2012
Posts: 23
Thanks: 1
Thanked 3 Times in 3 Posts
Default Basic build instructions

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 gmake install as of yet. When I get time I will see if I can put a decent port together.

Install required libs (as superuser):
Code:
portmaster audio/libvorbis audio/mpg123
Checked out revision 517:
Code:
svn co https://despotify.svn.sourceforge.net/svnroot/despotify despotify
Create Makefile.local.mk from Makefile.local.mk.dist:
Code:
--- 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:
gmake
HTH some of you desperates! Sorry to necro-firstpost

Last edited by DutchDaemon; January 28th, 2012 at 18:35.
Reply With Quote
  #7  
Old January 10th, 2013, 09:22
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Member
 
Join Date: Nov 2008
Location: Eindhoven, Netherlands
Posts: 794
Thanks: 19
Thanked 123 Times in 93 Posts
Default

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.
Reply With Quote
  #8  
Old January 10th, 2013, 10:33
mix_room mix_room is offline
Member
 
Join Date: Aug 2009
Posts: 499
Thanks: 9
Thanked 39 Times in 36 Posts
Default

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
Reply With Quote
The Following User Says Thank You to mix_room For This Useful Post:
Carpetsmoker (January 10th, 2013)
  #9  
Old January 10th, 2013, 14:51
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Member
 
Join Date: Nov 2008
Location: Eindhoven, Netherlands
Posts: 794
Thanks: 19
Thanked 123 Times in 93 Posts
Default

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.
Reply With Quote
  #10  
Old January 10th, 2013, 20:26
cpu82's Avatar
cpu82 cpu82 is offline
Member
 
Join Date: Jul 2011
Location: Granada, ES
Posts: 865
Thanks: 173
Thanked 303 Times in 234 Posts
Default

Is announced in last revision that API not longer supported.
Quote:
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.

Last edited by cpu82; January 10th, 2013 at 22:04.
Reply With Quote
  #11  
Old January 11th, 2013, 10:32
mix_room mix_room is offline
Member
 
Join Date: Aug 2009
Posts: 499
Thanks: 9
Thanked 39 Times in 36 Posts
Default

Quote:
Originally Posted by Carpetsmoker View Post
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] request: Retroshare zspider Porting New Software 19 February 12th, 2012 14:12
Request Tracker 3.8.x kev4bsd Installation and Maintenance of FreeBSD Ports or Packages 1 July 15th, 2011 15:38
Request: Firebird 1.5.6 port indul Porting New Software 0 January 10th, 2011 12:42
Request: YPOPs! Seeker Porting New Software 14 March 11th, 2010 12:28


All times are GMT +1. The time now is 09:49.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0