1 | # $Id: Portfile,v 1.1 2006/03/21 10:13:52 mww Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name midgard-core |
---|
5 | version 1.7.4 |
---|
6 | revision 1 |
---|
7 | categories www |
---|
8 | maintainers jyrki.wahlstedt@hut.fi |
---|
9 | description "A content management system" |
---|
10 | long_description "Midgard is a content management system\ |
---|
11 | platform using Apache, PHP and MySQL." |
---|
12 | platforms darwin |
---|
13 | homepage http://www.midgard-project.org/ |
---|
14 | |
---|
15 | master_sites http://www.midgard-project.org/midcom-serveattachmentguid-c4075050b15ee9ba99c511621a912141/ |
---|
16 | |
---|
17 | use_bzip2 yes |
---|
18 | checksums sha1 1ab8cf8d05efab0ad27954c6a4be65cdc7d4fb87 |
---|
19 | depends_lib port:expat \ |
---|
20 | port:gettext \ |
---|
21 | port:glib2 \ |
---|
22 | port:libiconv \ |
---|
23 | port:libxml2 \ |
---|
24 | port:mysql5 \ |
---|
25 | port:openssl \ |
---|
26 | port:zlib |
---|
27 | |
---|
28 | post-extract { |
---|
29 | file mkdir ${workpath}/mysql5/ |
---|
30 | system "cd ${workpath}/mysql5/ \ |
---|
31 | && ln -s ${prefix}/include/mysql5 include \ |
---|
32 | && ln -s ${prefix}/lib/mysql5/ lib" |
---|
33 | } |
---|
34 | |
---|
35 | configure.args --sysconfdir=${prefix}/etc/midgard/ \ |
---|
36 | --with-expat=${prefix} --with-mysql=${workpath}/mysql5 \ |
---|
37 | --with-iconv=${prefix} |
---|
38 | |
---|
39 | post-destroot { |
---|
40 | reinplace "s;${workpath}/mysql5/lib;${prefix}/lib/mysql5;" ${destroot}${prefix}/bin/midgard-config |
---|
41 | reinplace "s;${workpath}/mysql5/include;${prefix}/include/mysql5;" ${destroot}${prefix}/bin/midgard-config |
---|
42 | } |
---|
43 | |
---|
44 | variant check { |
---|
45 | depends_lib-append port:check |
---|
46 | configure.args-append --with-check=${prefix} |
---|
47 | } |
---|
48 | |
---|
49 | post-install { |
---|
50 | ui_msg "NB! The other parts of the package are:" |
---|
51 | ui_msg "midgard-apache2, midgard-php4 and midgard-data" |
---|
52 | } |
---|
53 | |
---|
54 | platform darwin 8 { |
---|
55 | configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0 |
---|
56 | } |
---|