Changeset 82586


Ignore:
Timestamp:
Aug 16, 2011, 9:40:17 AM (9 years ago)
Author:
ryandesign@…
Message:

wap11gui: use app portgroup; fix x11 version

Location:
trunk/dports/net/wap11gui
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/net/wap11gui/Portfile

    r80042 r82586  
    11# $Id$
     2
    23PortSystem 1.0
     4PortGroup app 1.0
    35
    46name                    wap11gui
    57version                 0.12
    6 revision                11
     8revision                12
    79categories              net
    810maintainers             nomaintainer
     
    2022                                port:net-snmp \
    2123                                port:libpng \
    22                                 path:include/qt3/qt_x11.h:qt3 \
     24                                path:include/qt3/private/qt_x11_p.h:qt3 \
    2325                                port:openssl \
    2426                                port:zlib
     
    3133platform darwin {
    3234        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:qt3
     35                ![file isfile ${prefix}/include/qt3/private/qt_x11_p.h]} {
     36                depends_lib-delete      path:include/qt3/private/qt_x11_p.h:qt3
    3537                depends_lib-append      path:include/qt3/qt_mac.h:qt3-mac
    3638                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
    3749        }
    3850
     
    5163configure.cflags-append '-I${prefix}/include'
    5264configure.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/Contents
    58                 set plist ${appName}.app/Contents/Info.plist
    59                 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/Resources
    64                 set icns ${appName}.app/Contents/Resources/wap11.icns
    65                 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/MacOS
    68                 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.