Ticket #29892: Portfile.diff

File Portfile.diff, 2.9 KB (added by ryandesign (Ryan Carsten Schmidt), 7 years ago)
  • Portfile

     
    11# -*- 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
    22
    33PortSystem          1.0
    4 PortGroup           qt4 1.0
     4PortGroup           github 1.0
     5PortGroup           qmake5 1.0
    56
     7github.setup        laumaya GLC_lib 3_0_1 Version_
     8version             [string map {_ .} ${github.version}]
    69categories          graphics
    710platforms           darwin
    8 
    9 name                GLC_lib
    10 version             1.2.0
    11 revision            3
    1211maintainers         nomaintainer
    13 description         C++ class library that enables the quick creation of an OpenGL application based on QT4.
    14 long_description    C++ class library that enables the quick creation of an OpenGL application based on QT4.
     12license             LGPL-3+
    1513
     14description         C++ class library that enables the quick creation of an OpenGL application based on Qt.
     15long_description    C++ class library that enables the quick creation of an OpenGL application based on Qt.
     16
    1617homepage            http://www.glc-lib.net/
    1718
    18 master_sites        sourceforge:glc-lib
    19 distname            ${name}_src_${version}
     19checksums           rmd160  64b4dab7d7e9c2657c129c901304c288edf41783 \
     20                    sha256  c0d862f011e5766691b8954db7de1dd61ccc3aa2171704c1e86bd7e44f2099f4 \
     21                    size    11681630
    2022
    21 checksums           md5     2c05978bd719f3dded08ac778b1854bf \
    22                     sha1    b109895b34940789470dcd3a2748913035a0e576 \
    23                     rmd160  127b6eadfb3b5ae8eb9c26583d63065c1ee6db40
     23#patchfiles          patch-GLC_lib.pro.diff
     24#post-patch {
     25#    reinplace       s|@@PREFIX@@|${prefix}|g ${worksrcpath}/glc_lib/GLC_lib.pro
     26#}
    2427
    25 use_zip             yes
     28#configure.pre_args  INSTALLDIR=${prefix}/lib
     29#configure.cmd       ${qt_qmake_cmd} glc_lib/GLC_lib.pro PREFIX=${prefix}
    2630
    27 patchfiles          patch-GLC_lib.pro.diff
    28 post-patch {
    29     reinplace       s|@@PREFIX@@|${prefix}|g ${worksrcpath}/glc_lib/GLC_lib.pro
    30 }
     31#use_parallel_build  yes
    3132
    32 configure.pre_args  INSTALLDIR=${prefix}/lib
    33 configure.cmd       ${qt_qmake_cmd} glc_lib/GLC_lib.pro PREFIX=${prefix}
     33#build.args          CC=${configure.cc}
     34#build.env-append    PREFIX=${prefix}
    3435
    35 use_parallel_build  yes
    36 
    37 build.args          CC=${configure.cc}
    38 build.env-append    PREFIX=${prefix}
    39 
    40 post-build {
    41         system "install_name_tool -id   \
    42                 ${qt_dir}/lib/libGLC_lib.dylib  \
    43                 ${worksrcpath}/libGLC_lib.dylib"
    44 }
    45 
    46 livecheck.type      regex
    47 livecheck.url       http://sourceforge.net/api/file/index/project-id/153150/mtime/desc/rss?path=%2Fglc-lib
    48 livecheck.regex     ${name}_(\\d+(\\.\\d+)+)
     36#post-build {
     37#       system "install_name_tool -id   \
     38#               ${qt_dir}/lib/libGLC_lib.dylib  \
     39#               ${worksrcpath}/libGLC_lib.dylib"
     40#}