source: trunk/dports/net/mediatomb/Portfile

Last change on this file was 152282, checked in by ryandesign@…, 13 months ago

mediatomb: remove archcheck portgroup

MacPorts base has included arch checking code for years.

  • 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; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 152282 2016-09-02 12:33:39Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           conflicts_build 1.0
6
7name                mediatomb
8version             0.12.1
9revision            9
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                    path:lib/libssl.dylib:openssl \
29                    port:file port:curl port:libexif port:expat
30
31# /opt/local/include/server.h:12:3: error: #error this file is for mongo server programs not client lib
32conflicts_build     mongodb
33
34use_autoreconf      yes
35
36patchfiles          patch-configure.ac.diff \
37                    patch-src-metadata-ffmpeg_handler.cc.diff
38
39# Buggy C++ code, so don't use clang
40compiler.blacklist  *clang*
41
42platform darwin {
43    if {${os.major} >= 13} {
44        depends_lib
45        depends_run
46        pre-fetch {
47            ui_error "$name does not build on Mavericks or later."
48            error "unsupported platform"
49        }
50    }
51}
52
53configure.args      \
54    --enable-libjs --with-js-h=${prefix}/include/js --enable-libexif \
55    --disable-sqlite3 --disable-mysql \
56    --disable-taglib --disable-id3lib \
57    --disable-ffmpeg --disable-libextractor \
58    --enable-sighup \
59    --with-search=${prefix} \
60    --with-curl-cfg=${prefix}/bin/curl-config
61
62variant sqlite3 description {Use SQLite 3 database} {
63    depends_lib-append      port:sqlite3
64    configure.args-append   --enable-sqlite3
65    configure.args-delete   --disable-sqlite3
66}
67
68default_variants +sqlite3
69
70variant mysql4 conflicts mysql5 description {Use MySQL 4 database} {
71    depends_lib-append      port:mysql4
72    configure.args-append   --enable-mysql \
73        --with-mysql-cfg=${prefix}/bin/mysql_config
74    configure.args-delete   --disable-mysql
75}
76
77variant mysql5 conflicts mysql4 description {Use MySQL 5 database} {
78    depends_lib-append      path:bin/mysql_config5:mysql5
79    configure.args-append   --enable-mysql \
80        --with-mysql-cfg=${prefix}/bin/mysql_config5
81    configure.args-delete   --disable-mysql
82}
83
84variant taglib conflicts id3lib description {Use TagLib for tag access} {
85    depends_lib-append      port:taglib
86    configure.args-append   --enable-taglib \
87        --with-taglib-cfg=${prefix}/bin/taglib-config
88    configure.args-delete   --disable-taglib
89}
90
91variant id3lib conflicts taglib description {Use id3lib for tag access} {
92    depends_lib-append      port:id3lib
93    configure.args-append   --enable-id3lib
94    configure.args-delete   --disable-id3lib
95}
96
97if {![variant_isset id3lib]} {
98    default_variants +taglib
99}
100
101variant ffmpeg conflicts libextractor description {Use ffmpeg for gathering metadata} {
102    depends_lib-append      path:lib/libavcodec.dylib:ffmpeg
103    configure.args-append   --enable-ffmpeg
104    configure.args-delete   --disable-ffmpeg
105}
106
107variant libextractor conflicts ffmpeg description {Use libextractor for gathering metadata} {
108    depends_lib-append      port:libextractor
109    configure.args-append   --enable-libextractor
110    configure.args-delete   --disable-libextractor
111}
112
113if {![variant_isset libextractor]} {
114    default_variants +ffmpeg
115}
116
117notes "******************************************************
118* To use UTF-8 filename and metadata on Mac OS X, add:
119*   <filesystem-charset>UTF-8-MAC</filesystem-charset>
120*   <metadata-charset>UTF-8-MAC</metadata-charset>
121* to <import> section of ~/.mediatomb/config.xml.
122******************************************************
123* In order to use MySQL for MediaTomb database:
124* 1. Create DB on mysqld and grant all privilege to DB user.
125* 2. Run \"mediatomb\" once on your shell.
126* 3. Edit auto-generated ~/.mediatomb/config.xml.
127*    In <server> section, edit <mysql> config like this:
128*    <mysql enabled=\"yes\">
129*      <host>localhost</host>
130*      <username>dbusername</username>
131*      <password>dbpassword</password>
132*      <database>dbname</database>
133*    </mysql>
134* If sqlite3 is enabled,
135*    <sqlite3 enabled=\"no\">
136* is also needed to disable it.
137******************************************************"
138
139livecheck.regex MediaTomb\\/(\\d+(\\.\\d+)+)\\/
140livecheck.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.