Ticket #17276: aquaterm-1.0.1_1-applications_dir.diff
File aquaterm-1.0.1_1-applications_dir.diff, 8.3 KB (added by nox@…, 16 years ago) |
---|
-
files/patch-frameworks-dir.diff
1 --- AquaTerm.xcodeproj/project.pbxproj.orig 2008-11-19 15:21:16.000000000 +0100 2 +++ AquaTerm.xcodeproj/project.pbxproj 2008-11-19 15:28:51.000000000 +0100 3 @@ -792,7 +792,7 @@ 4 GCC_PRECOMPILE_PREFIX_HEADER = YES; 5 GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/AppKit.framework/Headers/AppKit.h"; 6 INFOPLIST_FILE = "AquaTerm.framework-Info.plist"; 7 - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 8 + INSTALL_PATH = "$(FRAMEWORKS_DIR)"; 9 MACOSX_DEPLOYMENT_TARGET = 10.1; 10 OTHER_CFLAGS = ""; 11 OTHER_LDFLAGS = ( -
files/patch-disable-universal.diff
1 --- AquaTerm.xcodeproj/project.pbxproj.orig 2008-11-16 20:16:34.000000000 +0100 2 +++ AquaTerm.xcodeproj/project.pbxproj 2008-11-16 20:17:02.000000000 +0100 3 @@ -740,10 +740,6 @@ 4 CB699C7E08953AAD00C4B248 /* Development */ = { 5 isa = XCBuildConfiguration; 6 buildSettings = { 7 - ARCHS = ( 8 - ppc, 9 - i386, 10 - ); 11 COPY_PHASE_STRIP = NO; 12 DYLIB_COMPATIBILITY_VERSION = 1; 13 DYLIB_CURRENT_VERSION = 1; 14 @@ -780,10 +776,6 @@ 15 CB699C7F08953AAD00C4B248 /* Deployment */ = { 16 isa = XCBuildConfiguration; 17 buildSettings = { 18 - ARCHS = ( 19 - ppc, 20 - i386, 21 - ); 22 COPY_PHASE_STRIP = NO; 23 DYLIB_COMPATIBILITY_VERSION = 1; 24 DYLIB_CURRENT_VERSION = 1; 25 @@ -816,10 +808,6 @@ 26 CB699C8008953AAD00C4B248 /* BuildStyle */ = { 27 isa = XCBuildConfiguration; 28 buildSettings = { 29 - ARCHS = ( 30 - ppc, 31 - i386, 32 - ); 33 DYLIB_COMPATIBILITY_VERSION = 1; 34 DYLIB_CURRENT_VERSION = 1; 35 FRAMEWORK_VERSION = A; 36 @@ -849,10 +837,6 @@ 37 CB699C8108953AAD00C4B248 /* Default */ = { 38 isa = XCBuildConfiguration; 39 buildSettings = { 40 - ARCHS = ( 41 - ppc, 42 - i386, 43 - ); 44 DYLIB_COMPATIBILITY_VERSION = 1; 45 DYLIB_CURRENT_VERSION = 1; 46 FRAMEWORK_VERSION = A; 47 @@ -882,10 +866,6 @@ 48 CB699C8308953AAD00C4B248 /* Development */ = { 49 isa = XCBuildConfiguration; 50 buildSettings = { 51 - ARCHS = ( 52 - ppc, 53 - i386, 54 - ); 55 BUILD_VARIANTS = normal; 56 COPY_PHASE_STRIP = NO; 57 DEPLOYMENT_POSTPROCESSING = NO; 58 @@ -924,10 +904,6 @@ 59 CB699C8408953AAD00C4B248 /* Deployment */ = { 60 isa = XCBuildConfiguration; 61 buildSettings = { 62 - ARCHS = ( 63 - ppc, 64 - i386, 65 - ); 66 BUILD_VARIANTS = normal; 67 COPY_PHASE_STRIP = NO; 68 DEPLOYMENT_POSTPROCESSING = NO; 69 @@ -963,10 +939,6 @@ 70 CB699C8508953AAD00C4B248 /* BuildStyle */ = { 71 isa = XCBuildConfiguration; 72 buildSettings = { 73 - ARCHS = ( 74 - ppc, 75 - i386, 76 - ); 77 BUILD_VARIANTS = normal; 78 DEPLOYMENT_POSTPROCESSING = NO; 79 FRAMEWORK_SEARCH_PATHS = /Volumes/Ior/Source/aquaterm/build; 80 @@ -999,10 +971,6 @@ 81 CB699C8608953AAD00C4B248 /* Default */ = { 82 isa = XCBuildConfiguration; 83 buildSettings = { 84 - ARCHS = ( 85 - ppc, 86 - i386, 87 - ); 88 BUILD_VARIANTS = normal; 89 DEPLOYMENT_POSTPROCESSING = NO; 90 FRAMEWORK_SEARCH_PATHS = /Volumes/Ior/Source/aquaterm/build; -
Portfile
1 1 # $Id$ 2 2 3 3 PortSystem 1.0 4 PortGroup xcode 1.0 4 5 5 6 name aquaterm 6 7 version 1.0.1 8 revision 1 7 9 categories aqua math science 8 10 maintainers davidm@astro.berkeley.edu 9 11 description AquaTerm is a viewer that displays vector graphics on Mac OS X 10 12 long_description AquaTerm is a viewer app that displays vector \ 11 13 graphics. Other apps connect to AquaTerm using a \ 12 14 simple remote object messaging protocol. By adding \ 13 "adapters" to legacy code very little coding is \15 \"adapters\" to legacy code very little coding is \ 14 16 needed to bring it to OS X. 15 17 platforms darwin 16 18 homepage http://aquaterm.sourceforge.net/ 17 19 master_sites sourceforge 18 20 distname ${name}_src.${version} 19 checksums md5 aquaterm_src.1.0.1.tar.gz e9d3ecdfe770d6f09a748add9886d1a9 \20 sha1 aquaterm_src.1.0.1.tar.gz d5770bb3a95cfae21c5c39c96171a52d9af8ae24 \21 rmd160 aquaterm_src.1.0.1.tar.gz 24410589dd8c3071b6e0d5e652b7d92933d86b5f22 worksrcdir .23 21 24 patch { 25 # Change default location of AquaTerm.app to avoid requiring the 26 # use of AQUATERM_PATH. 27 reinplace "s|AquaTerm.app|MacPorts/AquaTerm.app|g" \ 28 ${workpath}/aquaterm/AQTClientManager.m 29 } 22 checksums md5 e9d3ecdfe770d6f09a748add9886d1a9 \ 23 sha1 d5770bb3a95cfae21c5c39c96171a52d9af8ae24 \ 24 rmd160 24410589dd8c3071b6e0d5e652b7d92933d86b5f 30 25 31 configure { 32 reinplace "s|/Users/per/Documents/Source/aquaterm/||" \ 33 ${workpath}/${name}/AquaTerm.pbproj/project.pbxproj 34 reinplace "s|/tmp/AquaTerm.dst||" \ 35 ${workpath}/${name}/AquaTerm.pbproj/project.pbxproj 36 reinplace "s|/usr/local/lib|${prefix}/lib|" \ 37 ${workpath}/${name}/AquaTerm.pbproj/project.pbxproj 38 file mkdir ${workpath}/${name}/build/include 39 system "cd ${workpath}/${name} && 40 ln -s ../.. build/include/aquaterm" 26 worksrcdir ${name} 41 27 42 reinplace "s|/usr/local|${prefix}|g" \ 43 ${workpath}/adapters/pgplot/ChangeLog \ 44 ${workpath}/adapters/pgplot/g77_gcc_AQT.conf \ 45 ${workpath}/adapters/pgplot/xlf_gcc_AQT.conf 46 reinplace "s|\$(HOME)|${prefix}|g" \ 47 ${workpath}/adapters/c/Makefile \ 48 ${workpath}/adapters/fortran/Makefile 49 reinplace "s|/*<PREFIX>|${prefix}|g" \ 50 ${workpath}/adapters/pgplot/g77_cc_AQT.conf \ 51 ${workpath}/adapters/pgplot/g77_gcc_AQT.conf \ 52 ${workpath}/adapters/pgplot/xlf_gcc_AQT.conf 53 reinplace "s|/sw|${prefix}|g" \ 54 ${workpath}/adapters/pgplot/ReadMe 55 } 28 patchfiles patch-frameworks-dir.diff \ 29 patch-disable-universal.diff 56 30 57 set xcodebuilddir build/Deployment 58 platform darwin 7 { 59 post-extract { 60 cd ${workpath}/${name} 61 file link -symbolic AquaTermFwk-Info.plist AquaTerm.framework-Info.plist 62 } 63 set xcodebuilddir build 64 } 31 xcode.target AquaTerm 65 32 66 platform darwin 8 { 67 if {$xcodeversion != "2.1"} { 68 set xcodebuilddir build 69 } 33 # Can be removed once MacPorts 1.7.0 is released 34 if {![info exists applications_dir]} { 35 set applications_dir /Applications/MacPorts 70 36 } 71 72 build.type pbx 73 build.dir ${workpath}/${name} 74 build.target -buildstyle Deployment -target AquaTerm 75 post-build { 76 system "install_name_tool -id ${prefix}/lib/libaquaterm.1.dylib \ 77 ${workpath}/${name}/${xcodebuilddir}/AquaTerm.framework/Versions/Current/AquaTerm" 78 system "install_name_tool -change /Library/Frameworks/AquaTerm.framework/Versions/A/AquaTerm ${prefix}/lib/libaquaterm.1.dylib \ 79 ${workpath}/${name}/${xcodebuilddir}/AquaTerm.app/Contents/MacOS/AquaTerm" 37 if {![info exists frameworks_dir]} { 38 set frameworks_dir ${prefix}/Library/Frameworks 80 39 } 81 40 82 destroot { 83 xinstall -d -m 0755 ${destroot}/Applications/MacPorts 84 xinstall -d -m 0755 ${destroot}/Library/Frameworks 85 xinstall -d -m 0755 ${destroot}${prefix}/include/${name} 86 xinstall -d -m 0755 ${destroot}${prefix}/share/${name} 41 xcode.build.settings USER_APPS_DIR=${applications_dir} \ 42 FRAMEWORKS_DIR=${frameworks_dir} 87 43 88 xinstall -m 0644 -W ${workpath}/${name} AQTAdapter.h aquaterm.h \ 89 ${destroot}${prefix}/include/${name} 44 xcode.destroot.type mixed 45 xcode.destroot.settings USER_APPS_DIR=${applications_dir} \ 46 FRAMEWORKS_DIR=${frameworks_dir} 90 47 91 system "cd ${workpath}/${name}/${xcodebuilddir} && 92 ln AquaTerm.framework/Versions/Current/AquaTerm libaquaterm.${version}.dylib && 93 ln -s libaquaterm.${version}.dylib ${destroot}${prefix}/lib/libaquaterm.dylib && 94 ln -s libaquaterm.${version}.dylib ${destroot}${prefix}/lib/libaquaterm.1.dylib" 95 96 xinstall -m 0755 ${workpath}/${name}/${xcodebuilddir}/libaquaterm.${version}.dylib \ 97 ${destroot}${prefix}/lib 98 copy ${workpath}/${name}/${xcodebuilddir}/AquaTerm.app \ 99 ${destroot}/Applications/MacPorts 100 copy ${workpath}/${name}/${xcodebuilddir}/AquaTerm.framework \ 101 ${destroot}/Library/Frameworks 102 103 104 foreach f {c fortran gnuplot pgplot plplot} { 105 copy ${workpath}/adapters/$f ${destroot}${prefix}/share/${name} 106 } 48 variant universal { 49 patchfiles-delete patch-disable-universal.diff 107 50 } 108