Ticket #48919: Portfile

File Portfile, 1.9 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
6name             naviserver-libthread
7version          2.7.2
8revision         0
9categories       www
10maintainers      wu.ac.at:neumann
11description      Add-on module libthread for NaviServer
12long_description \
13    LibThread is a Tcl extension which adds Tcl-level threading support for NaviServer and AOLserver. \
14    LibThread is as well part of Tcl 8.6, but this port differs in the compilation options. \
15    When LibThread is compiled with the --with-naviserver flag it uses different naming \
16    conventions for the provide Tcl-commands (overloading some NaviServer commands) and \
17    it is loadable as a NaviServer module.
18
19homepage         http://sourceforge.net/projects/tcl/files/Thread%20Extension/
20platforms        darwin
21license          Tcl/Tk
22
23distname         thread${version}
24distfiles        ${distname}.tar.gz:thread
25
26master_sites     sourceforge:project/tcl/Thread%20Extension/${version}:thread
27
28checksums \
29    ${distname}.tar.gz \
30        md5    e025dbfa2dcd13e5feb4d06f6a00b2b7 \
31        sha1   c767527d4457c326c862de4cd129213740da813a \
32        rmd160 a72df97d45d7060237eaa1c38d7909d55a5fb1f4
33
34depends_lib      port:tcl port:naviserver
35set nsdir        ${prefix}/ns
36worksrcdir       ${distname}/unix
37portsandbox_active no
38
39configure {
40  #
41  # The following overwrite is needed, since the configure file resides
42  # in the directory above the worksrcdir
43  #
44  system -W ${worksrcpath} "../configure --prefix=${prefix}/ns --with-tcl=${prefix}/lib --enable-symbols --exec-prefix=${destroot}/${nsdir} --with-naviserver=${nsdir}"
45}
46
47configure.pre_args   --prefix=${prefix}/ns
48configure.args       --with-tcl=${prefix}/lib --enable-symbols --with-aolserver=${nsdir}
49configure.env        TCLSH=${prefix}/bin/tclsh
50
51destroot.destdir NAVISERVER=${destroot}/${nsdir}
52destroot.violate_mtree yes
53