Ticket #7607: Portfile.2

File Portfile.2, 1.3 KB (added by mww@…, 19 years ago)

midgard-core/Portfile

Line 
1# $Id: Portfile,v 1.00 2005/11/22 10:39:42 jwa Exp $
2
3PortSystem 1.0
4name            midgard-core
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-c4075050b15ee9ba99c511621a912141/
15
16use_bzip2       yes
17checksums       sha1 1ab8cf8d05efab0ad27954c6a4be65cdc7d4fb87
18depends_lib     port:expat \
19                port:gettext \
20                port:glib2 \
21                port:libiconv \
22                port:libxml2 \
23                port:mysql5 \
24                port:openssl \
25                port:zlib
26
27post-extract {
28        file mkdir ${workpath}/mysql5/
29        system "cd ${workpath}/mysql5/ \
30                && ln -s ${prefix}/include/mysql5 include \
31                && ln -s ${prefix}/lib/mysql5/ lib"
32}
33
34configure.args  --sysconfdir=${prefix}/etc/midgard/ \
35                --with-expat=${prefix} --with-mysql=${workpath}/mysql5 \
36                --with-iconv=${prefix}
37
38variant check {
39        depends_lib-append port:check
40        configure.args-append --with-check=${prefix}
41}
42
43post-install    {
44        ui_msg "NB! The other parts of the package are:"
45        ui_msg "midgard-apache2, midgard-php4 and midgard-data"
46}
47
48platform darwin 8 {
49        configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
50}