Bug 176555 - multimedia/aegisub: Update MASTER_SITES
Summary: multimedia/aegisub: Update MASTER_SITES
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-28 18:10 UTC by tkato432
Modified: 2013-03-26 15:20 UTC (History)
0 users

See Also:


Attachments
file.diff (1.52 KB, patch)
2013-02-28 18:10 UTC, tkato432
no flags Details | Diff
multimedia_aegisub.diff (5.12 KB, patch)
2013-03-06 17:45 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2013-02-28 18:10:09 UTC
- Update MASTER_SITES
- Fix portaudio2 support
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-02-28 18:12:52 UTC
Responsible Changed
From-To: freebsd-ports-bugs->araujo

araujo@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2013-03-01 15:03:49 UTC
Responsible Changed
From-To: araujo->miwi

I'll take it.
Comment 3 Martin Wilke freebsd_committer freebsd_triage 2013-03-02 14:32:49 UTC
State Changed
From-To: open->feedback

build fails with clang: 
http://miwibox.org/tb/index.php?action=describe_port&id=1998
Comment 4 tkato432 2013-03-06 17:45:16 UTC
Here is the corrected patch.
Comment 5 Martin Wilke freebsd_committer freebsd_triage 2013-03-26 15:18:28 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!
Comment 6 dfilter service freebsd_committer freebsd_triage 2013-03-26 15:18:31 UTC
Author: miwi
Date: Tue Mar 26 15:18:17 2013
New Revision: 315306
URL: http://svnweb.freebsd.org/changeset/ports/315306

Log:
  - Update MASTER_SITES
  - Fix portaudio2 support
  
  PR:		176555
  Submitted by:	Ports Fury

Added:
  head/multimedia/aegisub/files/
  head/multimedia/aegisub/files/patch-src__audio_player_alsa.cpp   (contents, props changed)
  head/multimedia/aegisub/files/patch-src__audio_player_pulse.cpp   (contents, props changed)
Modified:
  head/multimedia/aegisub/Makefile

Modified: head/multimedia/aegisub/Makefile
==============================================================================
--- head/multimedia/aegisub/Makefile	Tue Mar 26 14:53:22 2013	(r315305)
+++ head/multimedia/aegisub/Makefile	Tue Mar 26 15:18:17 2013	(r315306)
@@ -6,7 +6,7 @@ PORTVERSION=	2.1.9
 PORTREVISION=	1
 CATEGORIES=	multimedia
 MASTER_SITES=	http://ftp.aegisub.org/pub/archives/releases/source/ \
-		ftp://ftp.aegisub.org/pub/archives/releases/srouce/ \
+		ftp://ftp.aegisub.org/pub/archives/releases/source/ \
 		ftp://ftp2.aegisub.org/pub/archives/releases/source/ \
 		GOOGLE_CODE:ffms
 PROJECTHOST=	ffmpegsource
@@ -26,7 +26,7 @@ OPTIONS_DEFAULT=	ASS PULSEAUDIO FFMPEG H
 GCOV_DESC=	GCOV (require profiling)
 EFENCE_DESC=	Electric Fence (require profiling)
 ASS_DESC=	libASS subtitle provider
-HUNSPELL_DESC=	Hunspell support
+HUNSPELL_DESC=	Spell checking via Hunspell
 
 USE_GNOME=	intltool
 USE_WX=		2.8
@@ -39,7 +39,7 @@ USE_ICONV=	yes
 USE_GETTEXT=	yes
 USE_GMAKE=	yes
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--without-lua50
+CONFIGURE_ARGS=	--disable-gcc-prec --without-lua50
 INSTALLS_ICONS=	yes
 MAKE_JOBS_SAFE=	yes
 
@@ -99,11 +99,9 @@ CONFIGURE_ARGS+=	--without-openal
 .endif
 
 .if ${PORT_OPTIONS:MPORTAUDIO}
-BROKEN=		portaudio2 support is broken
 BUILD_DEPENDS+=	portaudio>=19:${PORTSDIR}/audio/portaudio2
 RUN_DEPENDS+=	portaudio>=19:${PORTSDIR}/audio/portaudio2
-CFLAGS+=	-isystem ${LOCALBASE}/include/portaudio2
-LDFLAGS+=	-L${LOCALBASE}/lib/portaudio2
+CONFIGURE_ENV+=	PORTAUDIO_LIBS="${LOCALBASE}/lib/portaudio2/libportaudio.so"
 .else
 CONFIGURE_ARGS+=	--without-portaudio
 .endif
@@ -170,6 +168,10 @@ post-patch:
 		's|@HAVE_AUTO3_LUA_TRUE@|#| ; \
 		 s|@HAVE_AUTO3_LUA_FALSE@||' ${WRKSRC}/${i}
 .endfor
+.for i in src/audio_player_portaudio.h
+	@${REINPLACE_CMD} -e \
+		's|<portaudio\.h>|<portaudio2/portaudio.h>|' ${WRKSRC}/${i}
+.endfor
 
 pre-configure:
 .if ${PORT_OPTIONS:MFFMPEG}

Added: head/multimedia/aegisub/files/patch-src__audio_player_alsa.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/aegisub/files/patch-src__audio_player_alsa.cpp	Tue Mar 26 15:18:17 2013	(r315306)
@@ -0,0 +1,56 @@
+--- src/audio_player_alsa.cpp.orig
++++ src/audio_player_alsa.cpp
+@@ -192,7 +192,7 @@
+ 
+ 	snd_pcm_t *pcm = 0;
+ 	if (snd_pcm_open(&pcm, ps.device_name.c_str(), SND_PCM_STREAM_PLAYBACK, 0) != 0)
+-		return "snd_pcm_open";
++		return (void*)"snd_pcm_open";
+ 	//printf("alsa_player: opened pcm\n");
+ 
+ do_setup:
+@@ -209,7 +209,7 @@
+ 		break;
+ 	default:
+ 		snd_pcm_close(pcm);
+-		return "snd_pcm_format_t";
++		return (void*)"snd_pcm_format_t";
+ 	}
+ 	if (snd_pcm_set_params(pcm,
+ 	                       pcm_format,
+@@ -219,7 +219,7 @@
+ 	                       1, // allow resample
+ 	                       100*1000 // 100 milliseconds latency
+ 	                      ) != 0)
+-		return "snd_pcm_set_params";
++		return (void*)"snd_pcm_set_params";
+ 	//printf("alsa_player: set pcm params\n");
+ 
+ 	size_t framesize = ps.provider->GetChannels() * ps.provider->GetBytesPerSample();
+@@ -261,7 +261,7 @@
+ 				delete[] buf;
+ 				snd_pcm_close(pcm);
+ 				//printf("alsa_player: error filling buffer\n");
+-				return "snd_pcm_writei";
++				return (void*)"snd_pcm_writei";
+ 			}
+ 		}
+ 		delete[] buf;
+@@ -319,7 +319,7 @@
+ 					delete[] buf;
+ 					snd_pcm_close(pcm);
+ 					//printf("alsa_player: error filling buffer, written=%d\n", written);
+-					return "snd_pcm_writei";
++					return (void*)"snd_pcm_writei";
+ 				}
+ 			}
+ 			delete[] buf;
+@@ -353,7 +353,7 @@
+ 		case SND_PCM_STATE_DISCONNECTED:
+ 			// lost device, close the handle and return error
+ 			snd_pcm_close(pcm);
+-			return "SND_PCM_STATE_DISCONNECTED";
++			return (void*)"SND_PCM_STATE_DISCONNECTED";
+ 
+ 		default:
+ 			// everything else should either be fine or impossible (here)

Added: head/multimedia/aegisub/files/patch-src__audio_player_pulse.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/aegisub/files/patch-src__audio_player_pulse.cpp	Tue Mar 26 15:18:17 2013	(r315306)
@@ -0,0 +1,20 @@
+--- src/audio_player_pulse.cpp.orig
++++ src/audio_player_pulse.cpp
+@@ -144,7 +144,7 @@
+ 	pa_stream_set_write_callback(stream, (pa_stream_request_cb_t)pa_stream_write, this);
+ 
+ 	// Connect stream
+-	paerror = pa_stream_connect_playback(stream, NULL, NULL, PA_STREAM_INTERPOLATE_TIMING|PA_STREAM_NOT_MONOTONOUS|PA_STREAM_AUTO_TIMING_UPDATE, NULL, NULL);
++	paerror = pa_stream_connect_playback(stream, NULL, NULL, (pa_stream_flags_t) (PA_STREAM_INTERPOLATE_TIMING|PA_STREAM_NOT_MONOTONOUS|PA_STREAM_AUTO_TIMING_UPDATE), NULL, NULL);
+ 	if (paerror) {
+ 		printf("PulseAudio reported error: %s (%d)\n", pa_strerror(paerror), paerror);
+ 		wxString s(pa_strerror(paerror), wxConvUTF8);
+@@ -217,7 +217,7 @@
+ 
+ 	play_start_time = 0;
+ 	pa_threaded_mainloop_lock(mainloop);
+-	paerror = pa_stream_get_time(stream, &play_start_time);
++	paerror = pa_stream_get_time(stream, (pa_usec_t*) &play_start_time);
+ 	pa_threaded_mainloop_unlock(mainloop);
+ 	if (paerror) {
+ 		printf("PulseAudio player: Error getting stream time: %s (%d)\n", pa_strerror(paerror), paerror);
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"