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 macosx |
---|
12 | homepage http://www.midgard-project.org/ |
---|
13 | |
---|
14 | master_sites http://www.midgard-project.org/midcom-serveattachmentguid-5539f1e0c3c4f4b37ce8fd1b69e29450/ |
---|
15 | |
---|
16 | distname ${name}-${version} |
---|
17 | use_bzip2 yes |
---|
18 | checksums md5 4f56fa64d865d8adaec5491cf901531b |
---|
19 | depends_lib port:midgard-core\ |
---|
20 | port:php4 |
---|
21 | |
---|
22 | patchfiles patch-midgard.c |
---|
23 | pre-configure { |
---|
24 | cd ${worksrcpath} |
---|
25 | system "phpize4" |
---|
26 | } |
---|
27 | configure.env EXTRA_LDFLAGS=" -m" |
---|
28 | configure.args --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 | ui_msg "${prefix}/lib/php4/extensions/no-debug-non-zts-20020429" |
---|
40 | ui_msg "================================================================" |
---|
41 | } |
---|