Ignore:
Timestamp:
Sep 30, 2005, 7:09:59 AM (15 years ago)
Author:
mww
Message:

move creation of dylib into patch, make all symlinks to lib, ensure gcc4 on darwin8, inc. revision

Location:
trunk/dports/multimedia/smpeg
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/multimedia/smpeg/Portfile

    r13562 r14339  
    1 # $Id: Portfile,v 1.5 2005/08/15 23:42:10 mww Exp $
     1# $Id: Portfile,v 1.6 2005/09/30 07:09:58 mww Exp $
    22
    33PortSystem 1.0
    44name            smpeg
    55version         0.4.4
    6 revision        4
     6revision        5
    77categories      multimedia
    88maintainers     mww@opendarwin.org
     
    1313
    1414homepage        http://www.lokigames.com/development/smpeg.php3
    15 master_sites    ftp://ftp.lokigames.com/pub/open-source/smpeg/ \
     15master_sites    ftp://ftp.lokigames.com/pub/open-source/smpeg/ freebsd \
    1616                        opendarwin::lt
    1717distfiles-append        ltconfig13:lt \
     
    2323                        ltmain13 md5 e094ae92724c4015dbab97de151c2525
    2424
    25 depends_lib     lib:libSDL:libsdl
     25depends_lib     port:libsdl
    2626
    27 patchfiles      patch-smpeg.h patch-glmovie-tile.c patch-glmovie.c
     27patchfiles      patch-smpeg.h patch-glmovie-tile.c patch-glmovie.c patch-Makefile.in
    2828post-patch {
    2929        file copy -force ${distpath}/ltconfig13 ${worksrcpath}/ltconfig
     
    3131}
    3232
    33 configure.env   CC=g++
    3433configure.args  --without-x \
    3534                --disable-gtktest \
     
    3736                --disable-static \
    3837                --disable-sdltest \
    39                 --mandir=${prefix}/share/man
     38                --mandir=${prefix}/share/man \
     39                --enable-shared=no
    4040
    41 build.target
     41configure.env   CC=g++
     42platform darwin 8 {
     43        configure.env   CC=/usr/bin/g++-4.0 CXX=/usr/bin/g++-4.0
     44}
    4245
    43 set libname     "libsmpeg.${version}.dylib"
    44 platform darwin 8 {
    45         configure.args-append   --enable-shared=no
    46         post-build {
    47                 system "cd ${worksrcpath} && g++ -dynamiclib *.o audio/*.o video/*.o -o ${libname} -current_version ${version} -compatibility_version ${version} -install_name ${prefix}/lib/${libname} -L${prefix}/lib -lSDL -lSDLmain"
    48         }
    49         post-destroot {
    50                 xinstall -m 644 ${worksrcpath}/${libname} ${destroot}${prefix}/lib
    51                 system "cd ${destroot}${prefix}/lib && ln -s ${libname} libsmpeg.dylib"
    52                 reinplace "s|library_names=\'\'|library_names=\'${libname}\'|g" \
    53                         ${destroot}${prefix}/lib/libsmpeg.la
    54         }
     46set libname     libsmpeg.${version}.dylib
     47set ln  "ln -s ${libname}"
     48post-destroot {
     49        xinstall -m 644 ${worksrcpath}/${libname} ${destroot}${prefix}/lib
     50        system "cd ${destroot}${prefix}/lib && ${ln} libsmpeg.dylib \
     51                && ${ln} libsmpeg.0.dylib && ${ln} libsmpeg.0.4.dylib"
     52        reinplace "s|library_names=\'\'|library_names=\'${libname}\'|g" \
     53                ${destroot}${prefix}/lib/libsmpeg.la
    5554}
Note: See TracChangeset for help on using the changeset viewer.