Ticket #7954: Portfile

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

Portfile

Line 
1# $Id: Portfile,v 1.1 2006/03/21 10:13:52 mww Exp $
2
3PortSystem 1.0
4name            midgard-core
5version         1.7.4
6revision        1
7categories      www
8maintainers     jyrki.wahlstedt@hut.fi
9description     "A content management system"
10long_description "Midgard is a content management system\
11                platform using Apache, PHP and MySQL."
12platforms       darwin
13homepage        http://www.midgard-project.org/
14
15master_sites    http://www.midgard-project.org/midcom-serveattachmentguid-c4075050b15ee9ba99c511621a912141/
16
17use_bzip2       yes
18checksums       sha1 1ab8cf8d05efab0ad27954c6a4be65cdc7d4fb87
19depends_lib     port:expat \
20                port:gettext \
21                port:glib2 \
22                port:libiconv \
23                port:libxml2 \
24                port:mysql5 \
25                port:openssl \
26                port:zlib
27
28post-extract {
29        file mkdir ${workpath}/mysql5/
30        system "cd ${workpath}/mysql5/ \
31                && ln -s ${prefix}/include/mysql5 include \
32                && ln -s ${prefix}/lib/mysql5/ lib"
33}
34
35configure.args  --sysconfdir=${prefix}/etc/midgard/ \
36                --with-expat=${prefix} --with-mysql=${workpath}/mysql5 \
37                --with-iconv=${prefix}
38
39post-destroot {
40        reinplace "s;${workpath}/mysql5/lib;${prefix}/lib/mysql5;" ${destroot}${prefix}/bin/midgard-config
41        reinplace "s;${workpath}/mysql5/include;${prefix}/include/mysql5;" ${destroot}${prefix}/bin/midgard-config
42}
43
44variant check {
45        depends_lib-append port:check
46        configure.args-append --with-check=${prefix}
47}
48
49post-install    {
50        ui_msg "NB! The other parts of the package are:"
51        ui_msg "midgard-apache2, midgard-php4 and midgard-data"
52}
53
54platform darwin 8 {
55        configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
56}