[36587] trunk/dports/net

rhwood at macports.org rhwood at macports.org
Wed May 7 03:22:03 PDT 2008


Revision: 36587
          http://trac.macosforge.org/projects/macports/changeset/36587
Author:   rhwood at macports.org
Date:     2008-05-07 03:22:02 -0700 (Wed, 07 May 2008)

Log Message:
-----------
New port mediatomb
Addresses #14963

Added Paths:
-----------
    trunk/dports/net/mediatomb/
    trunk/dports/net/mediatomb/Portfile

Added: trunk/dports/net/mediatomb/Portfile
===================================================================
--- trunk/dports/net/mediatomb/Portfile	                        (rev 0)
+++ trunk/dports/net/mediatomb/Portfile	2008-05-07 10:22:02 UTC (rev 36587)
@@ -0,0 +1,106 @@
+# $Id$
+
+PortSystem		1.0
+
+name			mediatomb
+version			0.11.0
+categories		net multimedia
+maintainers		yattenator at gmail.com
+description		Open source (GPL) UPnP MediaServer
+long_description \
+		MediaTomb is an open source (GPL) UPnP MediaServer \
+		with a nice web user interface, it allows you to stream \
+		your digital media through your home network and \
+		listen to/watch it on a variety of UPnP compatible devices.
+
+homepage	http://mediatomb.cc/
+master_sites	sourceforge
+checksums	md5 661f08933830d920de21436fe122fb15 \
+		sha1 1d7c86924686f9999a359ba96092aa36d30832a6
+
+depends_lib	port:libiconv port:zlib port:spidermonkey \
+	port:file port:curl port:libexif port:expat
+
+configure.args	\
+	--enable-libjs --with-js-h=${prefix}/include/js --enable-libexif \
+	--disable-sqlite3 --disable-mysql \
+	--disable-taglib --disable-id3lib \
+	--disable-ffmpeg --disable-libextractor \
+	--with-search=${prefix} \
+	--with-curl-cfg=${prefix}/bin/curl-config
+
+default_variants	+sqlite3 +taglib +ffmpeg
+
+variant sqlite3 {
+	depends_lib-append	port:sqlite3
+	configure.args-append	--enable-sqlite3
+	configure.args-delete	--disable-sqlite3
+}
+
+variant mysql4 conflicts mysql5 {
+	depends_lib-append	port:mysql4
+	configure.args-append	--enable-mysql \
+		--with-mysql-cfg=${prefix}/bin/mysql_config
+	configure.args-delete	--disable-mysql
+}
+
+variant mysql5 conflicts mysql4 {
+	depends_lib-append	port:mysql5
+	configure.args-append	--enable-mysql \
+		--with-mysql-cfg=${prefix}/bin/mysql_config5
+	configure.args-delete	--disable-mysql
+}
+
+variant taglib conflicts id3lib {
+	depends_lib-append	port:taglib
+	configure.args-append	--enable-taglib \
+		--with-taglib-cfg=${prefix}/bin/taglib-config
+	configure.args-delete	--disable-taglib
+}
+
+variant id3lib conflicts taglib {
+	depends_lib-append	port:id3lib
+	configure.args-append	--enable-id3lib
+	configure.args-delete	--disable-id3lib
+}
+
+variant ffmpeg conflicts libextractor {
+	depends_lib-append	port:ffmpeg
+	configure.args-append	--enable-ffmpeg
+	configure.args-delete	--disable-ffmpeg
+}
+
+variant libextractor conflicts ffmpeg {
+	depends_lib-append	port:libextractor
+	configure.args-append	--enable-libextractor
+	configure.args-delete	--disable-libextractor
+}
+
+post-install {
+	if { [variant_isset taglib] } {
+		ui_msg "******************************************************"
+		ui_msg "* To use UTF-8 filename and metadata on Mac OS X, add:"
+		ui_msg "*   <filesystem-charset>UTF-8-MAC</filesystem-charset>"
+		ui_msg "*   <metadata-charset>UTF-8-MAC</metadata-charset>"
+		ui_msg "* to <import> section of ~/.mediatomb/config.xml."
+		ui_msg "******************************************************"
+	}
+	if { [variant_isset mysql4] || [variant_isset mysql5] } {
+		ui_msg "******************************************************"
+		ui_msg "* In order to use MySQL for MediaTomb database:"
+		ui_msg "* 1. Create DB on mysqld and grant all privilege to DB user."
+		ui_msg "* 2. Run \"mediatomb\" once on your shell."
+		ui_msg "* 3. Edit auto-generated ~/.mediatomb/config.xml."
+		ui_msg "*    In <server> section, edit <mysql> config like this:"
+		ui_msg "*    <mysql enabled=\"yes\">"
+		ui_msg "*      <host>localhost</host>"
+		ui_msg "*      <username>dbusername</username>"
+		ui_msg "*      <password>dbpassword</password>"
+		ui_msg "*      <database>dbname</database>"
+		ui_msg "*    </mysql>"
+		ui_msg "* If sqlite3 is enabled,"
+		ui_msg "*    <sqlite3 enabled=\"no\">"
+		ui_msg "* is also needed to disable it."
+		ui_msg "******************************************************"
+	}
+}


Property changes on: trunk/dports/net/mediatomb/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080507/0e7fb4bd/attachment-0001.html


More information about the macports-changes mailing list