Ticket #20702: wbxml2.patch

File wbxml2.patch, 2.2 KB (added by jeremy.laine@…, 15 years ago)

Improved patch, adds patch to correct library installation

  • wbxml2/files/patch-src-cmakelists.diff

     
     1--- src/CMakeLists.txt  2009-05-12 13:43:09.000000000 +0200
     2+++ src/CMakeLists.txt  2009-08-18 16:30:13.000000000 +0200
     3@@ -25,6 +25,7 @@
     4 
     5 SET_TARGET_PROPERTIES( wbxml2 PROPERTIES SOVERSION ${LIBWBXML_LIBVERSION_SOVERSION} )
     6 SET_TARGET_PROPERTIES( wbxml2 PROPERTIES VERSION ${LIBWBXML_LIBVERSION_VERSION} )
     7+SET_TARGET_PROPERTIES( wbxml2 PROPERTIES INSTALL_NAME_DIR ${LIBWBXML_LIBRARIES_DIR} )
     8 TARGET_LINK_LIBRARIES( wbxml2 ${EXPAT_LIBRARIES} )
     9 
     10 INSTALL( TARGETS wbxml2
  • wbxml2/Portfile

     
    22# $Id$
    33
    44PortSystem        1.0
     5PortGroup         cmake 1.0
    56
    67name              wbxml2
    7 version           0.9.0
     8version           0.10.7
    89categories        textproc devel
    910platforms         darwin
    1011maintainers       nomaintainer
    1112description       converts between XML and Wireless Binary XML (WBXML)
    1213long_description  ${description}
    13 homepage          http://libwbxml.aymerick.com/
     14homepage          https://libwbxml.opensync.org/
    1415
    15 master_sites      sourceforge:wbxmllib
     16master_sites      sourceforge:libwbxml
    1617
    17 distfiles  ${name}-${version}-src.tar.gz
    18 checksums md5 3f9b5bf104ec523b8eebe69f93919ded
     18distname          libwbxml-${version}
     19checksums         md5    ef3e66df3c4223ce5ce0a70ded5c5221 \
     20                  sha1   dac2d5452973c17e75517ae4eff42601091f852e \
     21                  rmd160 e0389673eace78c8b02c79ff4eacd717dd7db70e
     22patchfiles        patch-src-cmakelists.diff
    1923
    20 depends_lib port:expat
    21 depends_build port:autoconf port:automake port:libtool
     24depends_lib       port:expat
     25depends_build     port:cmake
    2226
    23 use_autoreconf yes
     27configure.dir     ${worksrcpath}/build
     28build.dir         ${configure.dir}
     29
     30pre-configure     { file mkdir ${configure.dir} }
     31
     32configure         { system "cd ${configure.dir} && cmake ${configure.args} ${worksrcpath}" }
     33configure.args    -DCMAKE_INSTALL_PREFIX:PATH=${prefix}