Changeset 82586
- Timestamp:
- 08/16/11 02:40:17 (4 years ago)
- Location:
- trunk/dports/net/wap11gui
- Files:
-
- 1 deleted
- 1 edited
-
Portfile (modified) (4 diffs)
-
files/Info.plist.in (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/net/wap11gui/Portfile
r80042 r82586 1 1 # $Id$ 2 2 3 PortSystem 1.0 4 PortGroup app 1.0 3 5 4 6 name wap11gui 5 7 version 0.12 6 revision 1 18 revision 12 7 9 categories net 8 10 maintainers nomaintainer … … 20 22 port:net-snmp \ 21 23 port:libpng \ 22 path:include/qt3/ qt_x11.h:qt3 \24 path:include/qt3/private/qt_x11_p.h:qt3 \ 23 25 port:openssl \ 24 26 port:zlib … … 31 33 platform darwin { 32 34 if {[file isfile ${prefix}/include/qt3/qt_mac.h] || \ 33 ![file isfile ${prefix}/include/qt3/ qt_x11.h]} {34 depends_lib-delete path:include/qt3/ qt_x11.h:qt335 ![file isfile ${prefix}/include/qt3/private/qt_x11_p.h]} { 36 depends_lib-delete path:include/qt3/private/qt_x11_p.h:qt3 35 37 depends_lib-append path:include/qt3/qt_mac.h:qt3-mac 36 38 supported_archs i386 ppc 39 40 app.name WAP11GUI 41 app.executable ${worksrcpath}/${name}/${name} 42 app.icon ${filespath}/wap11.icns 43 44 post-destroot { 45 delete ${destroot}${prefix}/bin/${name} 46 } 47 } else { 48 app.create no 37 49 } 38 50 … … 51 63 configure.cflags-append '-I${prefix}/include' 52 64 configure.cxxflags-append '-I${prefix}/include' 53 54 post-build {55 if {[file isfile ${prefix}/include/qt3/qt_mac.h]} {56 set appName [string toupper ${name}]57 xinstall -d -m 0755 ${worksrcpath}/${name}/${appName}.app/Contents58 set plist ${appName}.app/Contents/Info.plist59 xinstall -m 0644 ${filespath}/Info.plist.in ${worksrcpath}/${name}/${plist}60 reinplace "s|@APPLNAME@|${appName}|" ${worksrcpath}/${name}/${plist}61 reinplace "s|@VERSION@|${version}|" ${worksrcpath}/${name}/${plist}62 system "echo 'APPL????' >${worksrcpath}/${name}/${appName}.app/Contents/PkgInfo"63 xinstall -d -m 0755 ${worksrcpath}/${name}/${appName}.app/Contents/Resources64 set icns ${appName}.app/Contents/Resources/wap11.icns65 xinstall -m 0644 ${filespath}/[file tail ${icns}] ${worksrcpath}/${name}/${icns}66 reinplace "s|@ICONFILE@|[file tail ${icns}]|" ${worksrcpath}/${name}/${plist}67 xinstall -d -m 0755 ${worksrcpath}/${name}/${appName}.app/Contents/MacOS68 xinstall -m 0755 ${worksrcpath}/${name}/${name} ${worksrcpath}/${name}/${appName}.app/Contents/MacOS/${appName}69 reinplace "s|@EXECFILE@|${appName}|" ${worksrcpath}/${name}/${plist}70 }71 }72 73 post-destroot {74 if {[file isfile ${prefix}/include/qt3/qt_mac.h]} {75 set appPath ${destroot}${applications_dir}76 set appName [string toupper ${name}]77 xinstall -d -m 0755 ${appPath}78 system "cp -R ${worksrcpath}/${name}/${appName}.app ${appPath}/${appName}.app"79 file delete ${destroot}${prefix}/bin/${name}80 }81 }82
Note: See TracChangeset
for help on using the changeset viewer.

