source: trunk/dports/net/mediatomb/Portfile @ 50984

Last change on this file since 50984 was 50984, checked in by and.damore@…, 10 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.0 KB
Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
2
3PortSystem              1.0
4
5name                    mediatomb
6version                 0.11.0
7revision                1
8categories              net multimedia
9platforms       darwin
10maintainers             gmail.com:yattenator
11description             Open source (GPL) UPnP MediaServer
12long_description \
13                MediaTomb is an open source (GPL) UPnP MediaServer \
14                with a nice web user interface, it allows you to stream \
15                your digital media through your home network and \
16                listen to/watch it on a variety of UPnP compatible devices.
17
18homepage        http://mediatomb.cc/
19master_sites    sourceforge
20checksums       md5 661f08933830d920de21436fe122fb15 \
21                sha1 1d7c86924686f9999a359ba96092aa36d30832a6
22
23depends_lib     port:libiconv port:zlib port:spidermonkey \
24        port:file port:curl port:libexif port:expat
25
26use_autoreconf  yes
27
28patchfiles  patch-src_url.cc.diff \
29        patch-configure.ac.diff \
30        patch-src-metadata-ffmpeg_handler.cc.diff
31
32configure.args  \
33        --enable-libjs --with-js-h=${prefix}/include/js --enable-libexif \
34        --disable-sqlite3 --disable-mysql \
35        --disable-taglib --disable-id3lib \
36        --disable-ffmpeg --disable-libextractor \
37        --with-search=${prefix} \
38        --with-curl-cfg=${prefix}/bin/curl-config
39
40default_variants        +sqlite3 +taglib +ffmpeg
41
42variant sqlite3 description {Use SQLite 3 database} {
43        depends_lib-append      port:sqlite3
44        configure.args-append   --enable-sqlite3
45        configure.args-delete   --disable-sqlite3
46}
47
48variant mysql4 conflicts mysql5 description {Use MySQL 4 database} {
49        depends_lib-append      port:mysql4
50        configure.args-append   --enable-mysql \
51                --with-mysql-cfg=${prefix}/bin/mysql_config
52        configure.args-delete   --disable-mysql
53}
54
55variant mysql5 conflicts mysql4 description {Use MySQL 5 database} {
56        depends_lib-append      port:mysql5
57        configure.args-append   --enable-mysql \
58                --with-mysql-cfg=${prefix}/bin/mysql_config5
59        configure.args-delete   --disable-mysql
60}
61
62variant taglib conflicts id3lib description {Use TagLib for tag access} {
63        depends_lib-append      port:taglib
64        configure.args-append   --enable-taglib \
65                --with-taglib-cfg=${prefix}/bin/taglib-config
66        configure.args-delete   --disable-taglib
67}
68
69variant id3lib conflicts taglib description {Use id3lib for tag access} {
70        depends_lib-append      port:id3lib
71        configure.args-append   --enable-id3lib
72        configure.args-delete   --disable-id3lib
73}
74
75variant ffmpeg conflicts libextractor description {Use ffmpeg for gathering metadata} {
76        depends_lib-append      path:lib/libavcodec.dylib:ffmpeg
77        configure.args-append   --enable-ffmpeg
78        configure.args-delete   --disable-ffmpeg
79}
80
81variant libextractor conflicts ffmpeg description {Use libextractor for gathering metadata} {
82        depends_lib-append      port:libextractor
83        configure.args-append   --enable-libextractor
84        configure.args-delete   --disable-libextractor
85}
86
87post-install {
88        if { [variant_isset taglib] } {
89                ui_msg "******************************************************"
90                ui_msg "* To use UTF-8 filename and metadata on Mac OS X, add:"
91                ui_msg "*   <filesystem-charset>UTF-8-MAC</filesystem-charset>"
92                ui_msg "*   <metadata-charset>UTF-8-MAC</metadata-charset>"
93                ui_msg "* to <import> section of ~/.mediatomb/config.xml."
94                ui_msg "******************************************************"
95        }
96        if { [variant_isset mysql4] || [variant_isset mysql5] } {
97                ui_msg "******************************************************"
98                ui_msg "* In order to use MySQL for MediaTomb database:"
99                ui_msg "* 1. Create DB on mysqld and grant all privilege to DB user."
100                ui_msg "* 2. Run \"mediatomb\" once on your shell."
101                ui_msg "* 3. Edit auto-generated ~/.mediatomb/config.xml."
102                ui_msg "*    In <server> section, edit <mysql> config like this:"
103                ui_msg "*    <mysql enabled=\"yes\">"
104                ui_msg "*      <host>localhost</host>"
105                ui_msg "*      <username>dbusername</username>"
106                ui_msg "*      <password>dbpassword</password>"
107                ui_msg "*      <database>dbname</database>"
108                ui_msg "*    </mysql>"
109                ui_msg "* If sqlite3 is enabled,"
110                ui_msg "*    <sqlite3 enabled=\"no\">"
111                ui_msg "* is also needed to disable it."
112                ui_msg "******************************************************"
113        }
114}
115
116livecheck.regex "<title>MediaTomb (\\d+(?:\\.\\d+)*) released.*</title>"
Note: See TracBrowser for help on using the repository browser.