Ticket #7611: Portfile.3

File Portfile.3, 1.4 KB (added by jyrki.wahlstedt@…, 19 years ago)

Portfile

Line 
1# $Id: Portfile,v 1.00 2005/11/23 10:39:42 jwa Exp $
2
3PortSystem 1.0
4name            midgard-php4
5version         1.7.4
6categories      www
7maintainers     jyrki.wahlstedt@hut.fi
8description     "A content management system"
9long_description "Midgard is a content management system\
10                platform using Apache, PHP and MySQL."
11platforms       darwin
12homepage        http://www.midgard-project.org/
13
14master_sites    http://www.midgard-project.org/midcom-serveattachmentguid-5539f1e0c3c4f4b37ce8fd1b69e29450/
15
16use_bzip2       yes
17checksums       sha1 0948e6c34fe5698200c716a73232a60ac4e7b8c6
18depends_lib     port:midgard-core\
19                port:php4
20
21patchfiles      patch-midgard.c
22pre-configure   {
23        cd ${worksrcpath}
24        system "phpize4"
25}
26configure.env   EXTRA_LDFLAGS=" -m"
27configure.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
32destroot.destdir        INSTALL_ROOT=${destroot}
33
34post-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
43platform darwin 8 {
44        configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0 EXTRA_LDFLAGS=" -m"
45}