1 | # $Id: Portfile,v 1.00 2005/11/23 10:39:42 jwa Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name midgard-php4 |
---|
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-5539f1e0c3c4f4b37ce8fd1b69e29450/ |
---|
15 | |
---|
16 | use_bzip2 yes |
---|
17 | checksums sha1 0948e6c34fe5698200c716a73232a60ac4e7b8c6 |
---|
18 | depends_lib port:midgard-core\ |
---|
19 | port:php4 |
---|
20 | |
---|
21 | patchfiles patch-midgard.c |
---|
22 | pre-configure { |
---|
23 | cd ${worksrcpath} |
---|
24 | system "phpize4" |
---|
25 | } |
---|
26 | configure.env EXTRA_LDFLAGS=" -m" |
---|
27 | configure.args --sysconfdir=${prefix}/etc/midgard/ \ |
---|
28 | --with-apxs=${prefix}/apache2/bin/apxs\ |
---|
29 | --with-apr-config=${prefix}/bin/apr-1-config\ |
---|
30 | --with-php-config=${prefix}/bin/php-config4 |
---|
31 | |
---|
32 | destroot.destdir INSTALL_ROOT=${destroot} |
---|
33 | |
---|
34 | post-install { |
---|
35 | ui_msg "======================== IMPORTANT =========================" |
---|
36 | ui_msg "If this is the first time you're installing Midgard, or you have" |
---|
37 | ui_msg "recently upgraded PHP, make sure to check your php.ini to verify" |
---|
38 | ui_msg "that extension_dir at least includes" |
---|
39 | system "php-config4 --extension-dir" |
---|
40 | ui_msg "================================================================" |
---|
41 | } |
---|
42 | |
---|
43 | platform darwin 8 { |
---|
44 | configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0 |
---|
45 | } |
---|