[26204] trunk/dports/multimedia
source_changes at macosforge.org
source_changes at macosforge.org
Fri Jun 15 12:38:04 PDT 2007
Revision: 26204
http://trac.macosforge.org/projects/macports/changeset/26204
Author: boeyms at macports.org
Date: 2007-06-15 12:38:04 -0700 (Fri, 15 Jun 2007)
Log Message:
-----------
multimedia/mimms:
* Add new port.
Added Paths:
-----------
trunk/dports/multimedia/mimms/
trunk/dports/multimedia/mimms/Portfile
trunk/dports/multimedia/mimms/files/
trunk/dports/multimedia/mimms/files/patch-Makefile.qt4
trunk/dports/multimedia/mimms/files/patch-Makefile.qt4-mac
trunk/dports/multimedia/mimms/files/patch-mimms.cpp
trunk/dports/multimedia/mimms/files/patch-mimms.pro
Added: trunk/dports/multimedia/mimms/Portfile
===================================================================
--- trunk/dports/multimedia/mimms/Portfile (rev 0)
+++ trunk/dports/multimedia/mimms/Portfile 2007-06-15 19:38:04 UTC (rev 26204)
@@ -0,0 +1,52 @@
+# $Id$
+
+PortSystem 1.0
+name mimms
+version 2.0.1
+categories multimedia
+maintainers boeyms at macports.org openmaintainer at macports.org
+description MiMMS isn't an MMS Message Sender, it's an MMS \
+ (e.g. mms://) stream downloader.
+long_description \
+ MiMMS is a program designed to allow you to download streams using the MMS \
+ protocol and save them to your computer, as opposed to watching them live. \
+ Similar functionality is available in full media player suites such as \
+ Xine and MPlayer, but MiMMS is quick and easy to use, and for the time \
+ being, remains a useful program.
+homepage http://savannah.nongnu.org/projects/mimms/
+platforms darwin
+master_sites http://download.savannah.gnu.org/releases/mimms/
+checksums md5 3e44f5b182892c4adfa8c08ddf8ccc17 \
+ sha1 197f4c89c74d40a7aec382d20160a746946ce795 \
+ rmd160 a23430022371c530e91b7991f52275e545f61e3d
+use_bzip2 yes
+patchfiles patch-mimms.cpp patch-mimms.pro
+depends_lib port:libmms
+pre-fetch {
+ if {![variant_isset qt4] && ![variant_isset qt4_mac]} {
+ ui_msg "###########################################################"
+ ui_msg "# mimms will not compile unless one of the +qt4 or +qt4_mac\
+ \n# variants are selected. Please choose one of these variants to\
+ build."
+ ui_msg "###########################################################"
+ exit 1
+ }
+}
+configure {
+ reinplace "s|@prefix@|${prefix}|g" ${worksrcpath}/mimms.pro
+}
+build.env CPPFLAGS="-I${prefix}/include -I${prefix}/include/libmms" \
+ CFLAGS=-O2 \
+ LDFLAGS=-L${prefix}/lib
+build.args-append PREFIX=${prefix} QMAKE=qmake
+destroot.destdir-append PREFIX=${prefix}
+
+variant qt4 conflicts qt4_mac description {Links MiMMS against the qt4 port} {
+ patchfiles-append patch-Makefile.qt4
+ depends_lib-append port:qt4
+}
+
+variant qt4_mac conflicts qt4 description {Links MiMMS against the qt4-mac port} {
+ patchfiles-append patch-Makefile.qt4-mac
+ depends_lib-append port:qt4-mac
+}
Property changes on: trunk/dports/multimedia/mimms/Portfile
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: trunk/dports/multimedia/mimms/files/patch-Makefile.qt4
===================================================================
--- trunk/dports/multimedia/mimms/files/patch-Makefile.qt4 (rev 0)
+++ trunk/dports/multimedia/mimms/files/patch-Makefile.qt4 2007-06-15 19:38:04 UTC (rev 26204)
@@ -0,0 +1,13 @@
+--- Makefile 2006-08-17 20:03:52.000000000 +0000
++++ Makefile.new 2007-06-13 05:57:57.000000000 +0000
+@@ -16,8 +16,8 @@
+ $(MAKE) -f Makefile.qmake
+
+ install: build
+- $(INSTALL) -m755 -D mimms $(DESTDIR)/$(BINDIR)/mimms
+- $(INSTALL) -m644 -D mimms.1 $(DESTDIR)/$(MANDIR)/man1/mimms.1
++ $(INSTALL) -m755 mimms $(DESTDIR)/$(BINDIR)/mimms
++ $(INSTALL) -m644 mimms.1 $(DESTDIR)/$(MANDIR)/man1/mimms.1
+
+ clean:
+ rm -f Makefile.qmake *.o mimms *~
Property changes on: trunk/dports/multimedia/mimms/files/patch-Makefile.qt4
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/dports/multimedia/mimms/files/patch-Makefile.qt4-mac
===================================================================
--- trunk/dports/multimedia/mimms/files/patch-Makefile.qt4-mac (rev 0)
+++ trunk/dports/multimedia/mimms/files/patch-Makefile.qt4-mac 2007-06-15 19:38:04 UTC (rev 26204)
@@ -0,0 +1,13 @@
+--- Makefile 2006-08-17 20:03:52.000000000 +0000
++++ Makefile.new 2007-06-13 05:57:57.000000000 +0000
+@@ -16,8 +16,8 @@
+ $(MAKE) -f Makefile.qmake
+
+ install: build
+- $(INSTALL) -m755 -D mimms $(DESTDIR)/$(BINDIR)/mimms
+- $(INSTALL) -m644 -D mimms.1 $(DESTDIR)/$(MANDIR)/man1/mimms.1
++ $(INSTALL) -m755 mimms.app/Contents/MacOS/mimms $(DESTDIR)$(BINDIR)/mimms
++ $(INSTALL) -m644 mimms.1 $(DESTDIR)$(MANDIR)/man1/mimms.1
+
+ clean:
+ rm -f Makefile.qmake *.o mimms *~
Property changes on: trunk/dports/multimedia/mimms/files/patch-Makefile.qt4-mac
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/dports/multimedia/mimms/files/patch-mimms.cpp
===================================================================
--- trunk/dports/multimedia/mimms/files/patch-mimms.cpp (rev 0)
+++ trunk/dports/multimedia/mimms/files/patch-mimms.cpp 2007-06-15 19:38:04 UTC (rev 26204)
@@ -0,0 +1,88 @@
+--- mimms.cpp 2006-08-17 20:06:13.000000000 +0000
++++ mimms.cpp.new 2007-06-13 05:54:09.000000000 +0000
+@@ -36,7 +36,7 @@
+ QString url;
+ Scheme scheme;
+ QString output;
+- bool stdout;
++ bool stdout_opt;
+ bool clobber;
+ quint32 time;
+ bool verbose;
+@@ -62,7 +62,7 @@
+ "UNKNOWN"
+ );
+ qDebug("output = '%s'", __options.output.toUtf8().data());
+- qDebug("stdout = '%s'", __options.stdout?"true":"false");
++ qDebug("stdout = '%s'", __options.stdout_opt?"true":"false");
+ qDebug("clobber = '%s'", __options.clobber?"true":"false");
+ qDebug("time = '%d'", __options.time);
+ qDebug("verbose = '%s'", __options.verbose?"true":"false");
+@@ -87,7 +87,7 @@
+ QStringList args = arguments();
+ bool literal_mode = false;
+
+- __options.stdout = false;
++ __options.stdout_opt = false;
+ __options.clobber = false;
+ __options.time = 0;
+ __options.verbose = false;
+@@ -160,7 +160,7 @@
+ __options.output = args[i];
+ if (__options.output == "-") {
+ __options.quiet = true;
+- __options.stdout = true;
++ __options.stdout_opt = true;
+ }
+ } else {
+ qWarning("Too many arguments: '%s'", args[i].toUtf8().data());
+@@ -241,7 +241,7 @@
+ if (app.options().scheme == MiMMSOptions::HTTP ||
+ app.options().scheme == MiMMSOptions::STDIN) {
+
+- if (!app.options().quiet && !app.options().stdout) {
++ if (!app.options().quiet && !app.options().stdout_opt) {
+ out << "Searching for MMS URL...";
+ out.flush();
+ }
+@@ -301,12 +301,12 @@
+ }
+ }
+
+- if (!app.options().quiet && !app.options().stdout) {
++ if (!app.options().quiet && !app.options().stdout_opt) {
+ out << "\r ";
+ out << "\r<" << url << "> => " << "'" << file.fileName() << "'" << endl;
+ }
+
+- if (!app.options().quiet && !app.options().stdout) {
++ if (!app.options().quiet && !app.options().stdout_opt) {
+ out << "Connecting...";
+ out.flush();
+ }
+@@ -389,14 +389,14 @@
+
+ if (endDateTime.isValid()) {
+ if (QDateTime::currentDateTime() > endDateTime) {
+- if (!app.options().quiet && !app.options().stdout) {
++ if (!app.options().quiet && !app.options().stdout_opt) {
+ qDebug("\rRecording time limit exceeded.");
+ break;
+ }
+ }
+ }
+
+- if (!app.options().quiet && !app.options().stdout) {
++ if (!app.options().quiet && !app.options().stdout_opt) {
+ off_t pos = mms ? mms_get_current_pos(mms) : mmsh_get_current_pos(mmsh);
+
+ bytes_in_duration += bytes;
+@@ -458,7 +458,7 @@
+ file.close();
+ delete buffer;
+
+- if (!app.options().quiet && !app.options().stdout) {
++ if (!app.options().quiet && !app.options().stdout_opt) {
+ out << "\rStream download completed.\n";
+ out.flush();
+ }
Property changes on: trunk/dports/multimedia/mimms/files/patch-mimms.cpp
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/dports/multimedia/mimms/files/patch-mimms.pro
===================================================================
--- trunk/dports/multimedia/mimms/files/patch-mimms.pro (rev 0)
+++ trunk/dports/multimedia/mimms/files/patch-mimms.pro 2007-06-15 19:38:04 UTC (rev 26204)
@@ -0,0 +1,11 @@
+--- mimms.pro 2006-06-05 00:24:32.000000000 +0000
++++ mimms.pro.new 2007-06-13 05:47:57.000000000 +0000
+@@ -5,7 +5,7 @@
+ TEMPLATE = app
+ TARGET +=
+ DEPENDPATH += .
+-INCLUDEPATH += . libmms /usr/include/libmms /usr/include/glib-2.0 /usr/lib/glib-2.0/include
++INCLUDEPATH += . libmms @prefix@/include/libmms @prefix@/include/glib-2.0 @prefix@/lib/glib-2.0/include
+ CONFIG += release
+ LIBS += -lmms
+ QT -= gui
Property changes on: trunk/dports/multimedia/mimms/files/patch-mimms.pro
___________________________________________________________________
Name: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070615/db0c8a05/attachment.html
More information about the macports-changes
mailing list