Ticket #17279: gpgme-objc-1.0.2_4.diff
File gpgme-objc-1.0.2_4.diff, 4.7 KB (added by nox@…, 16 years ago) |
---|
-
files/patch-GPGME.xcode-project.pbxproj.diff
1 --- GPGME.xcode/project.pbxproj.orig 2008-11-16 23:03:53.000000000 +0100 2 +++ GPGME.xcode/project.pbxproj 2008-11-16 23:44:08.000000000 +0100 3 @@ -363,7 +363,7 @@ 4 isa = PBXFileReference; 5 lastKnownFileType = sourcecode.c.h; 6 name = gpgme.h; 7 - path = /usr/local/include/gpgme.h; 8 + path = @PREFIX@/include/gpgme.h; 9 refType = 0; 10 sourceTree = "<absolute>"; 11 }; 12 @@ -420,7 +420,7 @@ 13 isa = PBXFileReference; 14 lastKnownFileType = sourcecode.c.h; 15 name = "gpg-error.h"; 16 - path = "/usr/local/include/gpg-error.h"; 17 + path = "@PREFIX@/include/gpg-error.h"; 18 refType = 0; 19 sourceTree = "<absolute>"; 20 }; 21 @@ -537,7 +537,7 @@ 22 FRAMEWORK_SEARCH_PATHS = ""; 23 FRAMEWORK_VERSION = 1.0.2; 24 GCC_PRECOMPILE_PREFIX_HEADER = YES; 25 - GCC_PREFIX_HEADER = /usr/local/include/gpgme.h; 26 + GCC_PREFIX_HEADER = @PREFIX@/include/gpgme.h; 27 GCC_PREPROCESSOR_DEFINITIONS = BUILDINGGPGME; 28 HEADER_SEARCH_PATHS = ""; 29 INFOPLIST_FILE = "Info-GPGME.plist"; 30 @@ -1102,16 +1102,16 @@ 31 555E7F6D07A3114C00B1F725 = { 32 isa = PBXFileReference; 33 lastKnownFileType = archive.ar; 34 - name = "libgpg-error.a"; 35 - path = "/usr/local/lib/libgpg-error.a"; 36 + name = "libgpg-error.dylib"; 37 + path = "@PREFIX@/lib/libgpg-error.dylib"; 38 refType = 0; 39 sourceTree = "<absolute>"; 40 }; 41 555E7F6E07A3114C00B1F725 = { 42 isa = PBXFileReference; 43 lastKnownFileType = archive.ar; 44 - name = "libgpgme-pthread.a"; 45 - path = "/usr/local/lib/libgpgme-pthread.a"; 46 + name = "libgpgme-pthread.dylib"; 47 + path = "@PREFIX@/lib/libgpgme-pthread.dylib"; 48 refType = 0; 49 sourceTree = "<absolute>"; 50 }; 51 @@ -1282,9 +1282,7 @@ 52 F550BC470201F10201A80016 = { 53 buildSettings = { 54 COPY_PHASE_STRIP = NO; 55 - INSTALL_PATH = "@executable_path/../Frameworks"; 56 OPTIMIZATION_CFLAGS = "-O0"; 57 - SKIP_INSTALL = YES; 58 }; 59 isa = PBXBuildStyle; 60 name = EmbDevelopment; 61 @@ -1293,9 +1291,7 @@ 62 buildSettings = { 63 COPY_PHASE_STRIP = YES; 64 DEBUGGING_SYMBOLS = NO; 65 - INSTALL_PATH = "@executable_path/../Frameworks"; 66 OPTIMIZATION_CFLAGS = "-Os"; 67 - SKIP_INSTALL = YES; 68 }; 69 isa = PBXBuildStyle; 70 name = EmbDeployment; -
Portfile
1 1 # $Id$ 2 2 3 3 PortSystem 1.0 4 PortGroup xcode 1.0 5 4 6 name gpgme-objc 5 7 set rname GPGME 6 8 version 1.0.2 7 revision 39 revision 4 8 10 categories devel security 9 11 maintainers waqar@macports.org 10 12 description GnuPG Made Easy is an Objective-C framework wrapping libgpgme 11 13 long_description \ 12 GnuPG Made Easy (GPGME) is an Objective-C framework wrapping 13 libgpgme, a C language library, that allows to add support 14 for cryptography to a program. It is designed to make access 15 to crypto engines like GnuPG or GpgSM easier for applications. 16 GPGME provides a high-level crypto API for encryption, 14 GnuPG Made Easy (GPGME) is an Objective-C framework wrapping \ 15 libgpgme, a C language library, that allows to add support \ 16 for cryptography to a program. It is designed to make access \ 17 to crypto engines like GnuPG or GpgSM easier for applications. \ 18 GPGME provides a high-level crypto API for encryption, \ 17 19 decryption, signing, signature verification and key management. 18 20 homepage http://macgpg.sourceforge.net 19 platforms macosx20 21 master_sites sourceforge:macgpg 21 22 extract.suffix .tgz 22 23 distname ${rname}-${version} 23 24 dist_subdir macgpg 24 25 checksums md5 9f6fc9eb6d36c298c045178703041314 \ 25 26 sha1 ff02efeac01253c9df797ec314ef0e4fc537964e 26 depends_lib port:gpgme27 patch {28 cd ${worksrcpath}29 reinplace "s|/usr/local|${prefix}|g" \30 ${rname}.xcode/project.pbxproj \31 ${rname}.pbproj/project.pbxproj32 }33 use_configure no34 build.type pbx35 build.target -target ${rname}36 build.args build -project ${rname}.xcode -buildstyle EmbDevelopment37 27 38 destroot { 39 cd ${worksrcpath} 40 system "${build.cmd} install INSTALL_MODE_FLAG=go-w,a+rX \ 41 INSTALL_PATH=${prefix}/Library/Frameworks \ 42 DSTROOT=${destroot} ${build.target} \ 43 -project ${rname}.xcode" 28 patchfiles patch-GPGME.xcode-project.pbxproj.diff 29 30 post-patch { 31 reinplace s|@PREFIX@|${prefix}|g ${worksrcpath}/GPGME.xcode/project.pbxproj 44 32 } 33 34 depends_lib port:gpgme \ 35 port:libgpg-error 36 37 xcode.project ${rname}.xcode 38 xcode.target ${rname} 39 xcode.configuration EmbDeployment 40 xcode.destroot.type framework