Ignore:
Timestamp:
Mar 15, 2004, 6:24:09 PM (16 years ago)
Author:
waqar
Message:

updated to install using xcode, incase the user has changed the build directory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/sysutils/osxutils/Portfile

    r5535 r5826  
    1 # $Id: Portfile,v 1.10 2004/02/22 05:14:36 waqar Exp $
     1# $Id: Portfile,v 1.11 2004/03/15 18:24:09 waqar Exp $
    22
    33PortSystem 1.0
     
    2525set b_progs     "lsmac setfcomment setfctypes setfflags setlabel setsuffix"
    2626set i_progs     "cpath google trash"
    27 pre-build       {
    28         system "cd ${worksrcpath}/setfcomment && \
    29                 mv setfcomment.c main.c"
    30         system "cd ${worksrcpath}/setlabel && \
    31                 mv setlabel.c main.c"
     27configure       {
     28        reinplace "s|main.c|setfcomment.c|g"    \
     29                ${worksrcpath}/setfcomment/setfcomment.pbproj/project.pbxproj
     30        reinplace "s|main.c|setlabel.c|g"       \
     31                ${worksrcpath}/setlabel/setlabel.xcode/project.pbxproj
    3232}
    3333build           {
    3434        foreach prog ${b_progs} {
    3535                cd ${worksrcpath}/${prog}
    36                 system "${build.cmd}"
     36                system "${build.cmd} build"
    3737        }
    3838}       
     
    4040destroot        {
    4141        foreach prog ${i_progs} {
    42                 system "cd ${worksrcpath}/${prog} && install -m 555 \
    43                         ${prog} ${destroot}${prefix}/bin/"
    44                 system "cd ${worksrcpath}/${prog} && install -m 444 \
     42                system "cd ${worksrcpath}/${prog} && install -m 755 \
     43                        ${prog} ${destroot}${prefix}/bin/"
     44                system "cd ${worksrcpath}/${prog} && install -m 644 \
    4545                        ${prog}.1 ${destroot}/${prefix}/share/man/man1/"
    4646        }
    4747        foreach prog ${b_progs} {
    48                 system "cd ${worksrcpath}/${prog}/build && install -m 555 \
    49                         ${prog} ${destroot}${prefix}/bin/"
    50                 system "cd ${worksrcpath}/${prog} && install -m 444 \
     48                system "cd ${worksrcpath}/${prog} && ${build.cmd} install \
     49                        INSTALL_PATH=${prefix}/bin DSTROOT=${destroot}"
     50                system "cd ${worksrcpath}/${prog} && install -m 644 \
    5151                        ${prog}.1 ${destroot}/${prefix}/share/man/man1/"
    5252        }
    5353}
    54 
Note: See TracChangeset for help on using the changeset viewer.