Ticket #24309: GLC_lib.diff

File GLC_lib.diff, 2.7 KB (added by nerdling (Jeremy Lavergne), 15 years ago)
  • files/patch-GLC_lib.pro.diff

     
    1 --- GLC_lib.pro.orig    2009-05-26 11:13:49.000000000 +0200
    2 +++ GLC_lib.pro 2009-05-26 13:58:17.000000000 +0200
    3 @@ -192,8 +192,8 @@
    4  # Linux install configuration
    5  unix {
    6      # Location of HEADERS and library
    7 -    LIB_DIR = /usr/lib
    8 -    INCLUDE_DIR = /usr/include
    9 +    LIB_DIR = $${PREFIX}/lib
    10 +    INCLUDE_DIR = $${PREFIX}/include
    11      # Adds a -P to preserve link
    12         QMAKE_COPY_FILE = $${QMAKE_COPY_FILE} -P
    13         include.path = $${INCLUDE_DIR}/GLC_lib
     1--- glc_lib/GLC_lib.pro.orig    2010-04-08 11:00:33.000000000 -0400
     2+++ glc_lib/GLC_lib.pro 2010-04-08 11:01:13.000000000 -0400
     3@@ -311,8 +311,8 @@
     4 # Linux install configuration
     5 unix {
     6     # Location of HEADERS and library
     7-    LIB_DIR = /usr/lib
     8-    INCLUDE_DIR = /usr/include
     9+    LIB_DIR = @@PREFIX@@/lib
     10+    INCLUDE_DIR = @@PREFIX@@/include
     11     # Adds a -P to preserve link
     12        QMAKE_COPY_FILE = $${QMAKE_COPY_FILE} -P
     13        include.path = $${INCLUDE_DIR}/GLC_lib
  • Portfile

     
    77platforms           darwin
    88
    99name                GLC_lib
    10 version             1.1.0
     10version             1.2.0
    1111maintainers         lilalinux.net:macports
    1212description         C++ class library that enables the quick creation of an OpenGL application based on QT4.
    1313long_description    C++ class library that enables the quick creation of an OpenGL application based on QT4.
     
    1717depends_lib         path:bin/qmake-mac:qt4-mac
    1818
    1919master_sites        sourceforge:glc-lib
    20 distname            GLC_lib_src_$version
     20distname            ${name}_src_${version}
    2121
    22 checksums           md5 e62ce3b3d7f8925bda8a51e9c0cf5e81 \
    23                     sha1 89761029f621de24abe324da5836ca1d7c73356b \
    24                     rmd160 edc35b27107952360b3f84cd8c6afb14770ed10b
     22checksums           md5     2c05978bd719f3dded08ac778b1854bf \
     23                    sha1    b109895b34940789470dcd3a2748913035a0e576 \
     24                    rmd160  127b6eadfb3b5ae8eb9c26583d63065c1ee6db40
    2525
    2626use_zip             yes
    2727
    2828patchfiles          patch-GLC_lib.pro.diff
     29post-patch {
     30    reinplace       s|@@PREFIX@@|${prefix}|g ${worksrcpath}/glc_lib/GLC_lib.pro
     31}
    2932
    3033set qt_dir          ${prefix}/libexec/qt4-mac
    3134
    3235configure.pre_args  INSTALLDIR=${prefix}/lib
    33 configure.cmd       ${qt_dir}/bin/qmake GLC_lib.pro PREFIX=${prefix}
     36configure.cmd       ${qt_dir}/bin/qmake glc_lib/GLC_lib.pro PREFIX=${prefix}
    3437
    3538use_parallel_build  yes
    3639