Ticket #7610: Portfile.4

File Portfile.4, 1.3 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-data
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-297c84069d94b18dac44c47aaac5f59b/
15
16use_bzip2       yes
17checksums       sha1 a147d36178b047b05073b0dc902848e6170e70f9
18depends_lib     port:midgard-core\
19                port:midgard-apache2\
20                port:midgard-php4\
21                port:dialog\
22                port:ImageMagick
23
24patchfiles      midcom-template.xml.diff datagard.in.diff
25
26post-extract    {
27        reinplace "s/mysql\\(\[_a-z\]*\\)/mysql\\15/" ${worksrcpath}/configure
28}
29
30configure.args  --sysconfdir=${prefix}/etc/midgard/ \
31                --with-mysql-config=${prefix}/bin/mysql_config5 \
32                --with-apxs=${prefix}/apache2/bin/apxs \
33                --with-apache-user=www \
34                --with-apache-group=www
35
36build   {}     
37
38post-destroot   {
39        reinplace "s/zcat/gzcat/" ${destroot}${prefix}/share/midgard/datagard/lib.postinst
40        reinplace "s;/usr/bin/pear;${prefix}/bin/pear4;" ${destroot}${prefix}/share/midgard/datagard/datagard.conf
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
45}