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