Ticket #19232: Portfile.diff

File Portfile.diff, 1.6 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 16 years ago)
  • Portfile

    old new  
    11# $Id: Portfile 45795 2009-01-22 08:02:35Z digdog@macports.org $
    22
    33PortSystem 1.0
     4PortGroup  muniversal 1.0
    45
    56name            gdbm
    67version         1.8.3
     
    1718homepage        http://www.gnu.org/software/gdbm/gdbm.html
    1819platforms       darwin
    1920master_sites    gnu
    20 distname        ${name}-${version}
    21 checksums       md5 1d1b1d5c0245b1c00aff92da751e9aa1
    22 patchfiles      patch-Makefile.in
    23 configure.args  --mandir=\\\${prefix}/share/man --infodir=\\\${prefix}/share/info
     21checksums       md5 1d1b1d5c0245b1c00aff92da751e9aa1 \
     22                sha1 a0296b1986a99cb9ec0dc3b17ea99aec76e9b760 \
     23                rmd160 0f5741ab32f95db721c5d9f4548447301171e938
     24configure.args  --mandir=${prefix}/share/man --infodir=${prefix}/share/info
    2425configure.ccache no
    2526post-configure {
    2627        if {[variant_isset universal]} {
    27             reinplace "s|-dynamiclib)|-dynamiclib) ${configure.universal_ldflags}|g" ${worksrcpath}/libtool
     28            foreach arch ${universal_archs_to_use} {
     29                reinplace "s|-dynamiclib)|-dynamiclib) ${configure.ldflags} [muniversal_get_arch_flag ${arch}]|" ${worksrcpath}-${arch}/libtool
     30            }
     31        } else {
     32                reinplace "s|-dynamiclib)|-dynamiclib) ${configure.ldflags}|" ${worksrcpath}/libtool
    2833        }
    2934}
    30 pre-destroot    {
    31         reinplace "s|-o \$(BINOWN) -g \$(BINGRP)||g" ${worksrcpath}/Makefile
     35post-patch {
     36        reinplace "s|-o \$(BINOWN) -g \$(BINGRP)||g" ${worksrcpath}/Makefile.in
    3237}
    33 destroot.args   prefix=${destroot}/${prefix}
     38destroot.destdir        prefix=${destroot}${prefix}
    3439
    3540livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)\\.tar