mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Add optional libmtp support, and fix the build when it is enabled.
PR: 131712 Submitted by: "Junji NAKANISHI" <jun-g@daemonfreaks.com> (build fix)
This commit is contained in:
parent
7acda58eca
commit
cd0729d229
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=228486
@ -50,6 +50,7 @@ OPTIONS= DAAP "Enable iTunes music sharing" off \
|
||||
NOTIFY "Enable libnotify support" on \
|
||||
VORBIS "Enable Ogg/Vorbis support" on \
|
||||
LIRC "Enable Infrared syncing support" off \
|
||||
MTP "Enable Microsoft's Media Transfer Protocol support" off \
|
||||
GECKO_PLUGIN "Enable iTunes browser plugin" on
|
||||
# GDA "Enable GDA database storage" off
|
||||
|
||||
@ -83,6 +84,15 @@ CONFIGURE_ARGS+=--disable-lirc
|
||||
PLIST_SUB+= LIRC="@comment "
|
||||
.endif
|
||||
|
||||
.if defined(WITH_MTP)
|
||||
LIB_DEPENDS+= mtp.8:${PORTSDIR}/audio/libmtp
|
||||
PLIST_SUB+= MTP=""
|
||||
CONFIGURE_ARGS+= --with-mtp
|
||||
.else
|
||||
CONFIGURE_ARGS+= --without-mtp
|
||||
PLIST_SUB+= MTP="@comment "
|
||||
.endif
|
||||
|
||||
.if defined(WITH_DAAP)
|
||||
CONFIGURE_ARGS+= --enable-daap --with-mdns=avahi
|
||||
LIB_DEPENDS+= avahi-client:${PORTSDIR}/net/avahi-app \
|
||||
|
@ -0,0 +1,20 @@
|
||||
--- plugins/mtpdevice/rb-mtp-source.c.orig 2009-02-15 22:33:07.000000000 +0900
|
||||
+++ plugins/mtpdevice/rb-mtp-source.c 2009-02-15 22:35:14.000000000 +0900
|
||||
@@ -357,7 +357,7 @@
|
||||
|
||||
g_assert (db != NULL);
|
||||
|
||||
- tracks = LIBMTP_Get_Tracklisting (priv->device);
|
||||
+ tracks = LIBMTP_Get_Tracklisting_With_Callback (priv->device, NULL, NULL);
|
||||
if (tracks != NULL) {
|
||||
LIBMTP_track_t *track, *tmp = NULL;
|
||||
for (track = tracks; track != NULL; track = track->next) {
|
||||
@@ -714,7 +714,7 @@
|
||||
trackmeta->filetype = mimetype_to_filetype (mimetype);
|
||||
}
|
||||
|
||||
- if (LIBMTP_Send_Track_From_File (device, filename, trackmeta, NULL, NULL, 0) != 0) {
|
||||
+ if (LIBMTP_Send_Track_From_File (device, filename, trackmeta, NULL, NULL) != 0) {
|
||||
LIBMTP_destroy_track_t (trackmeta);
|
||||
rb_debug ("Tracktransfer failed\n");
|
||||
return NULL;
|
@ -138,6 +138,10 @@ lib/rhythmbox/plugins/mmkeys/libmmkeys.a
|
||||
lib/rhythmbox/plugins/mmkeys/libmmkeys.la
|
||||
lib/rhythmbox/plugins/mmkeys/libmmkeys.so
|
||||
lib/rhythmbox/plugins/mmkeys/mmkeys.rb-plugin
|
||||
%%MTP%%lib/rhythmbox/plugins/mtpdevice/libmtpdevice.a
|
||||
%%MTP%%lib/rhythmbox/plugins/mtpdevice/libmtpdevice.la
|
||||
%%MTP%%lib/rhythmbox/plugins/mtpdevice/libmtpdevice.so
|
||||
%%MTP%%lib/rhythmbox/plugins/mtpdevice/mtpdevice.rb-plugin
|
||||
lib/rhythmbox/plugins/power-manager/libpower-manager.a
|
||||
lib/rhythmbox/plugins/power-manager/libpower-manager.la
|
||||
lib/rhythmbox/plugins/power-manager/libpower-manager.so
|
||||
|
Loading…
Reference in New Issue
Block a user