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

Last change on this file since 139229 was 139229, checked in by jeremyhu@…, 4 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 5.4 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 139229 2015-08-08 03:10:35Z jeremyhu@macports.org $
3
4PortSystem          1.0
5PortGroup           archcheck 1.0
6PortGroup           conflicts_build 1.0
7
8name                mediatomb
9version             0.12.1
10revision            9
11categories          net multimedia
12platforms           darwin
13maintainers         gmail.com:yattenator
14description         Open source (GPL) UPnP MediaServer
15long_description \
16    MediaTomb is an open source (GPL) UPnP MediaServer \
17    with a nice web user interface, it allows you to stream \
18    your digital media through your home network and \
19    listen to/watch it on a variety of UPnP compatible devices.
20
21homepage            http://mediatomb.cc/
22master_sites        sourceforge
23
24checksums           md5     e927dd5dc52d3cfcebd8ca1af6f0d3c2 \
25                    sha1    86e880584cc9c8aaf3926d56048510d1d06e76b4 \
26                    rmd160  ecb61ca2483f76421beef1036ac442b8f805fa96
27
28depends_lib         port:libiconv port:zlib port:spidermonkey \
29                    path:lib/libssl.dylib:openssl \
30                    port:file port:curl port:libexif port:expat
31
32archcheck.files     lib/libiconv.dylib \
33    lib/libz.dylib \
34    lib/libjs.dylib \
35    lib/libmagic.dylib \
36    lib/libcurl.dylib \
37    lib/libexif.dylib \
38    lib/libexpat.dylib
39
40# /opt/local/include/server.h:12:3: error: #error this file is for mongo server programs not client lib
41conflicts_build     mongodb
42
43use_autoreconf      yes
44
45patchfiles          patch-configure.ac.diff \
46                    patch-src-metadata-ffmpeg_handler.cc.diff
47
48# Buggy C++ code, so don't use clang
49compiler.blacklist  *clang*
50
51platform darwin {
52    if {${os.major} >= 13} {
53        depends_lib
54        depends_run
55        pre-fetch {
56            ui_error "$name does not build on Mavericks or later."
57            error "unsupported platform"
58        }
59    }
60}
61
62configure.args      \
63    --enable-libjs --with-js-h=${prefix}/include/js --enable-libexif \
64    --disable-sqlite3 --disable-mysql \
65    --disable-taglib --disable-id3lib \
66    --disable-ffmpeg --disable-libextractor \
67    --enable-sighup \
68    --with-search=${prefix} \
69    --with-curl-cfg=${prefix}/bin/curl-config
70
71variant sqlite3 description {Use SQLite 3 database} {
72    depends_lib-append      port:sqlite3
73    archcheck.files-append  lib/libsqlite3.dylib
74    configure.args-append   --enable-sqlite3
75    configure.args-delete   --disable-sqlite3
76}
77
78default_variants +sqlite3
79
80variant mysql4 conflicts mysql5 description {Use MySQL 4 database} {
81    depends_lib-append      port:mysql4
82    archcheck.files-append  lib/mysql/libmysqlclient.dylib
83    configure.args-append   --enable-mysql \
84        --with-mysql-cfg=${prefix}/bin/mysql_config
85    configure.args-delete   --disable-mysql
86}
87
88variant mysql5 conflicts mysql4 description {Use MySQL 5 database} {
89    depends_lib-append      path:bin/mysql_config5:mysql5
90    archcheck.files-append  lib/mysql5/mysql/libmysqlclient.dylib
91    configure.args-append   --enable-mysql \
92        --with-mysql-cfg=${prefix}/bin/mysql_config5
93    configure.args-delete   --disable-mysql
94}
95
96variant taglib conflicts id3lib description {Use TagLib for tag access} {
97    depends_lib-append      port:taglib
98    archcheck.files-append  lib/libtag.dylib
99    configure.args-append   --enable-taglib \
100        --with-taglib-cfg=${prefix}/bin/taglib-config
101    configure.args-delete   --disable-taglib
102}
103
104variant id3lib conflicts taglib description {Use id3lib for tag access} {
105    depends_lib-append      port:id3lib
106    archcheck.files-append  lib/libid3.dylib
107    configure.args-append   --enable-id3lib
108    configure.args-delete   --disable-id3lib
109}
110
111if {![variant_isset id3lib]} {
112    default_variants +taglib
113}
114
115variant ffmpeg conflicts libextractor description {Use ffmpeg for gathering metadata} {
116    depends_lib-append      path:lib/libavcodec.dylib:ffmpeg
117    archcheck.files-append  lib/libavcodec.dylib
118    configure.args-append   --enable-ffmpeg
119    configure.args-delete   --disable-ffmpeg
120}
121
122variant libextractor conflicts ffmpeg description {Use libextractor for gathering metadata} {
123    depends_lib-append      port:libextractor
124    archcheck.files-append  lib/libextractor.dylib
125    configure.args-append   --enable-libextractor
126    configure.args-delete   --disable-libextractor
127}
128
129if {![variant_isset libextractor]} {
130    default_variants +ffmpeg
131}
132
133notes "******************************************************
134* To use UTF-8 filename and metadata on Mac OS X, add:
135*   <filesystem-charset>UTF-8-MAC</filesystem-charset>
136*   <metadata-charset>UTF-8-MAC</metadata-charset>
137* to <import> section of ~/.mediatomb/config.xml.
138******************************************************
139* In order to use MySQL for MediaTomb database:
140* 1. Create DB on mysqld and grant all privilege to DB user.
141* 2. Run \"mediatomb\" once on your shell.
142* 3. Edit auto-generated ~/.mediatomb/config.xml.
143*    In <server> section, edit <mysql> config like this:
144*    <mysql enabled=\"yes\">
145*      <host>localhost</host>
146*      <username>dbusername</username>
147*      <password>dbpassword</password>
148*      <database>dbname</database>
149*    </mysql>
150* If sqlite3 is enabled,
151*    <sqlite3 enabled=\"no\">
152* is also needed to disable it.
153******************************************************"
154
155livecheck.regex MediaTomb\\/(\\d+(\\.\\d+)+)\\/
156livecheck.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.