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 +02002 +++ GLC_lib.pro 2009-05-26 13:58:17.000000000 +02003 @@ - 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}/lib10 + INCLUDE_DIR = $${PREFIX}/include11 # 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
7 7 platforms darwin 8 8 9 9 name GLC_lib 10 version 1. 1.010 version 1.2.0 11 11 maintainers lilalinux.net:macports 12 12 description C++ class library that enables the quick creation of an OpenGL application based on QT4. 13 13 long_description C++ class library that enables the quick creation of an OpenGL application based on QT4. … … 17 17 depends_lib path:bin/qmake-mac:qt4-mac 18 18 19 19 master_sites sourceforge:glc-lib 20 distname GLC_lib_src_$version20 distname ${name}_src_${version} 21 21 22 checksums md5 e62ce3b3d7f8925bda8a51e9c0cf5e81\23 sha1 89761029f621de24abe324da5836ca1d7c73356b\24 rmd160 edc35b27107952360b3f84cd8c6afb14770ed10b22 checksums md5 2c05978bd719f3dded08ac778b1854bf \ 23 sha1 b109895b34940789470dcd3a2748913035a0e576 \ 24 rmd160 127b6eadfb3b5ae8eb9c26583d63065c1ee6db40 25 25 26 26 use_zip yes 27 27 28 28 patchfiles patch-GLC_lib.pro.diff 29 post-patch { 30 reinplace s|@@PREFIX@@|${prefix}|g ${worksrcpath}/glc_lib/GLC_lib.pro 31 } 29 32 30 33 set qt_dir ${prefix}/libexec/qt4-mac 31 34 32 35 configure.pre_args INSTALLDIR=${prefix}/lib 33 configure.cmd ${qt_dir}/bin/qmake GLC_lib.pro PREFIX=${prefix}36 configure.cmd ${qt_dir}/bin/qmake glc_lib/GLC_lib.pro PREFIX=${prefix} 34 37 35 38 use_parallel_build yes 36 39