Ticket #7611: Portfile

File Portfile, 1.3 KB (added by jyrki.wahlstedt@…, 18 years ago)

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