1373b
![]() |
|
|
|
|
|||||||
| Porting New Software Having trouble or general questions about porting software to FreeBSD? Ask here. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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. |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
||||
|
||||
|
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. |
|
#5
|
||||
|
||||
|
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.
|
|
#6
|
|||
|
|||
|
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 Code:
svn co https://despotify.svn.sourceforge.net/svnroot/despotify despotify 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
+
Code:
gmake
Last edited by DutchDaemon; January 28th, 2012 at 18:35. |
|
#7
|
||||
|
||||
|
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. |
|
#8
|
|||
|
|||
|
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 |
| The Following User Says Thank You to mix_room For This Useful Post: | ||
Carpetsmoker (January 10th, 2013) | ||
|
#9
|
||||
|
||||
|
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. |
|
#10
|
||||
|
||||
|
Is announced in last revision that API not longer supported.
Quote:
Last edited by cpu82; January 10th, 2013 at 22:04. |
|
#11
|
|||
|
|||
|
Quote:
Will probably have to wait to a new despotify-type client. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |