Ticket #48918: Portfile

File Portfile, 1.4 KB (added by gustafn, 9 years ago)
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem 1.0
5
6set nsmodule nsdbpg
7name             naviserver-${nsmodule}
8version          4.99.8
9revision         0
10categories       www
11maintainers      wu.ac.at:neumann
12description      PostgreSQL driver for NaviServer
13long_description \
14    PostgreSQL driver interface for NaviServer
15homepage         https://bitbucket.org/naviserver/nsdbpg/overview
16platforms        darwin
17license          MPL-1.1
18
19distname         ${name}-${version}
20distfiles        naviserver-${version}-modules.tar.gz
21
22master_sites     \
23    sourceforge:project/naviserver/naviserver/${version}
24
25checksums \
26        md5    ef2966934440e4b2164f910d0aeb717b \
27        sha1   6b6ae0316f3674e31f4f056f88d4c34f664378e4 \
28        rmd160 acedf83b1dedc835b686b6b7ad9b831cac19303b
29
30set postgresql postgresql94
31
32depends_lib      port:tcl port:naviserver port:${postgresql}
33set nsdir        ${prefix}/ns
34worksrcdir       modules/${nsmodule}
35
36use_configure no
37build.pre_args \
38    NAVISERVER=${nsdir} \
39    PGLIB=${prefix}/lib/${postgresql}/ \
40    PGINCLUDE=${prefix}/include/${postgresql}/
41
42destroot.pre_args NAVISERVER=${nsdir} DESTDIR=${destroot}
43destroot.post_args install
44destroot.violate_mtree yes
45pre-destroot {
46  # Create the basic directory structure for "make install" in $destroot
47  xinstall -d ${destroot}/${nsdir}/bin
48}