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

Last change on this file since 77147 was 77147, checked in by rmstonecipher@…, 10 years ago

audio/taglib upgraded version from 1.6.3 to 1.7, incremented revision of 15 dependents

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.8 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 77147 2011-03-21 06:27:29Z rmstonecipher@macports.org $
3
4PortSystem          1.0
5PortGroup           archcheck 1.0
6
7name                mediatomb
8version             0.12.1
9revision            2
10categories          net multimedia
11platforms           darwin
12maintainers         gmail.com:yattenator
13description         Open source (GPL) UPnP MediaServer
14long_description \
15    MediaTomb is an open source (GPL) UPnP MediaServer \
16    with a nice web user interface, it allows you to stream \
17    your digital media through your home network and \
18    listen to/watch it on a variety of UPnP compatible devices.
19
20homepage            http://mediatomb.cc/
21master_sites        sourceforge
22
23checksums           md5     e927dd5dc52d3cfcebd8ca1af6f0d3c2 \
24                    sha1    86e880584cc9c8aaf3926d56048510d1d06e76b4 \
25                    rmd160  ecb61ca2483f76421beef1036ac442b8f805fa96
26
27depends_lib         port:libiconv port:zlib port:spidermonkey \
28                    port:openssl \
29                    port:file port:curl port:libexif port:expat
30
31archcheck.files     lib/libiconv.dylib \
32    lib/libz.dylib \
33    lib/libjs.dylib \
34    lib/libmagic.dylib \
35    lib/libcurl.dylib \
36    lib/libexif.dylib \
37    lib/libexpat.dylib
38
39use_autoreconf      yes
40
41patchfiles          patch-configure.ac.diff
42
43configure.args      \
44    --enable-libjs --with-js-h=${prefix}/include/js --enable-libexif \
45    --disable-sqlite3 --disable-mysql \
46    --disable-taglib --disable-id3lib \
47    --disable-ffmpeg --disable-libextractor \
48    --with-search=${prefix} \
49    --with-curl-cfg=${prefix}/bin/curl-config
50
51default_variants    +sqlite3 +taglib +ffmpeg
52
53variant sqlite3 description {Use SQLite 3 database} {
54    depends_lib-append      port:sqlite3
55    archcheck.files-append  lib/libsqlite3.dylib
56    configure.args-append   --enable-sqlite3
57    configure.args-delete   --disable-sqlite3
58}
59
60variant mysql4 conflicts mysql5 description {Use MySQL 4 database} {
61    depends_lib-append      port:mysql4
62    archcheck.files-append  lib/mysql/libmysqlclient.dylib
63    configure.args-append   --enable-mysql \
64        --with-mysql-cfg=${prefix}/bin/mysql_config
65    configure.args-delete   --disable-mysql
66}
67
68variant mysql5 conflicts mysql4 description {Use MySQL 5 database} {
69    depends_lib-append      path:bin/mysql_config5:mysql5
70    archcheck.files-append  lib/mysql5/mysql/libmysqlclient.dylib
71    configure.args-append   --enable-mysql \
72        --with-mysql-cfg=${prefix}/bin/mysql_config5
73    configure.args-delete   --disable-mysql
74}
75
76variant taglib conflicts id3lib description {Use TagLib for tag access} {
77    depends_lib-append      port:taglib
78    archcheck.files-append  lib/libtag.dylib
79    configure.args-append   --enable-taglib \
80        --with-taglib-cfg=${prefix}/bin/taglib-config
81    configure.args-delete   --disable-taglib
82}
83
84variant id3lib conflicts taglib description {Use id3lib for tag access} {
85    depends_lib-append      port:id3lib
86    archcheck.files-append  lib/libid3.dylib
87    configure.args-append   --enable-id3lib
88    configure.args-delete   --disable-id3lib
89}
90
91variant ffmpeg conflicts libextractor description {Use ffmpeg for gathering metadata} {
92    depends_lib-append      path:lib/libavcodec.dylib:ffmpeg
93    archcheck.files-append  lib/libavcodec.dylib
94    configure.args-append   --enable-ffmpeg
95    configure.args-delete   --disable-ffmpeg
96}
97# ffmpeg is not universal
98if {[variant_isset ffmpeg]} {
99    universal_variant    no
100}
101
102variant libextractor conflicts ffmpeg description {Use libextractor for gathering metadata} {
103    depends_lib-append      port:libextractor
104    archcheck.files-append  lib/libextractor.dylib
105    configure.args-append   --enable-libextractor
106    configure.args-delete   --disable-libextractor
107}
108
109notes "******************************************************
110* To use UTF-8 filename and metadata on Mac OS X, add:
111*   <filesystem-charset>UTF-8-MAC</filesystem-charset>
112*   <metadata-charset>UTF-8-MAC</metadata-charset>
113* to <import> section of ~/.mediatomb/config.xml.
114******************************************************
115* In order to use MySQL for MediaTomb database:
116* 1. Create DB on mysqld and grant all privilege to DB user.
117* 2. Run \"mediatomb\" once on your shell.
118* 3. Edit auto-generated ~/.mediatomb/config.xml.
119*    In <server> section, edit <mysql> config like this:
120*    <mysql enabled=\"yes\">
121*      <host>localhost</host>
122*      <username>dbusername</username>
123*      <password>dbpassword</password>
124*      <database>dbname</database>
125*    </mysql>
126* If sqlite3 is enabled,
127*    <sqlite3 enabled=\"no\">
128* is also needed to disable it.
129******************************************************"
130
131livecheck.regex MediaTomb\\/(\\d+(\\.\\d+)+)\\/
132livecheck.url   "http://sourceforge.net/api/file/index/project-id/129766/mtime/desc/rss?path=%2FMediaTomb"
Note: See TracBrowser for help on using the repository browser.