Ticket #19766: Portfile

File Portfile, 1.4 KB (added by macports@…, 15 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
6categories          graphics
7
8name                GLC_lib
9version             1.1.0
10maintainers         lilalinux.net:macports
11description         C++ class library that enables the quick creation of an OpenGL application based on QT4.
12long_description    C++ class library that enables the quick creation of an OpenGL application based on QT4.
13
14homepage            http://www.glc-lib.net/
15
16depends_lib         port:qt4-mac
17
18master_sites        sourceforge:glc-lib
19distname            GLC_lib_src_$version
20distfiles           GLC_lib_src_$version.zip
21
22checksums           md5 e62ce3b3d7f8925bda8a51e9c0cf5e81 \
23                    sha1 89761029f621de24abe324da5836ca1d7c73356b \
24                    rmd160 edc35b27107952360b3f84cd8c6afb14770ed10b
25
26use_zip             yes
27
28patchfiles          patch-GLC_lib.pro.diff
29
30use_configure       yes
31
32set qt_dir          ${prefix}/libexec/qt4-mac
33
34configure.pre_args  INSTALLDIR=${prefix}/lib
35configure.cmd       ${qt_dir}/bin/qmake GLC_lib.pro PREFIX=${prefix}
36
37build.env           QTDIR=${qt_dir} PREFIX=${prefix}
38
39post-build {
40        system "install_name_tool -id   \
41                ${qt_dir}/lib/libGLC_lib.dylib  \
42                ${worksrcpath}/libGLC_lib.dylib"
43}
44
45destroot.env        QTDIR=${qt_dir} INSTALL_ROOT=${destroot}