Changeset 93527


Ignore:
Timestamp:
May 25, 2012, 8:20:19 PM (7 years ago)
Author:
jmr@…
Message:

gpgme-objc: fix build with Xcode 4 (#31177)

Location:
trunk/dports/devel/gpgme-objc
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/gpgme-objc/Portfile

    r75257 r93527  
    33PortSystem  1.0
    44PortGroup   xcode 1.0
     5
    56name            gpgme-objc
    67set rname       GPGME
     
    2728patchfiles      patch-GPGME.xcode-project.pbxproj.diff
    2829
    29 post-patch {
    30     reinplace s|@PREFIX@|${prefix}|g ${worksrcpath}/GPGME.xcode/project.pbxproj
     30post-patch {
     31    if {[vercmp $xcodeversion 4.0] >= 0} {
     32        copy -force ${filespath}/project.pbxproj ${worksrcpath}/GPGME.xcode/
     33    }
     34    reinplace s|__PREFIX__|${prefix}|g ${worksrcpath}/GPGME.xcode/project.pbxproj
    3135}
    3236
  • trunk/dports/devel/gpgme-objc/files/patch-GPGME.xcode-project.pbxproj.diff

    r50104 r93527  
    66                        name = gpgme.h;
    77-                       path = /usr/local/include/gpgme.h;
    8 +                       path = @PREFIX@/include/gpgme.h;
     8+                       path = __PREFIX__/include/gpgme.h;
    99                        refType = 0;
    1010                        sourceTree = "<absolute>";
     
    1515                        name = "gpg-error.h";
    1616-                       path = "/usr/local/include/gpg-error.h";
    17 +                       path = "@PREFIX@/include/gpg-error.h";
     17+                       path = "__PREFIX__/include/gpg-error.h";
    1818                        refType = 0;
    1919                        sourceTree = "<absolute>";
     
    2424                                GCC_PRECOMPILE_PREFIX_HEADER = YES;
    2525-                               GCC_PREFIX_HEADER = /usr/local/include/gpgme.h;
    26 +                               GCC_PREFIX_HEADER = @PREFIX@/include/gpgme.h;
     26+                               GCC_PREFIX_HEADER = __PREFIX__/include/gpgme.h;
    2727                                GCC_PREPROCESSOR_DEFINITIONS = BUILDINGGPGME;
    2828                                HEADER_SEARCH_PATHS = "";
     
    3535-                       path = "/usr/local/lib/libgpg-error.a";
    3636+                       name = "libgpg-error.dylib";
    37 +                       path = "@PREFIX@/lib/libgpg-error.dylib";
     37+                       path = "__PREFIX__/lib/libgpg-error.dylib";
    3838                        refType = 0;
    3939                        sourceTree = "<absolute>";
     
    4545-                       path = "/usr/local/lib/libgpgme-pthread.a";
    4646+                       name = "libgpgme-pthread.dylib";
    47 +                       path = "@PREFIX@/lib/libgpgme-pthread.dylib";
     47+                       path = "__PREFIX__/lib/libgpgme-pthread.dylib";
    4848                        refType = 0;
    4949                        sourceTree = "<absolute>";
Note: See TracChangeset for help on using the changeset viewer.