Ticket #4408: freetype1.diff

File freetype1.diff, 2.3 KB (added by pguyot (Paul Guyot), 19 years ago)

patch to add contrib/* packages

  • Portfile

    RCS file: /Volumes/src/cvs/od/proj/darwinports/dports/print/freetype1/Portfile,v
    retrieving revision 1.3
    diff -u -r1.3 Portfile
     
    22PortSystem 1.0
    33name            freetype1
    44version         1.3.1
    5 revision        1
     5revision        2
    66categories      print
    77maintainers     olegb@opendarwin.org
    88description     Free and portable render engine for TrueType fonts
     
    2525                        ${worksrcpath}/Makefile.in
    2626        }
    2727}
     28
     29depends_lib     bin:msgfmt:gettext
     30patchfiles      patch-contrib-ttfbanner-ttfbanner.c
     31
    2832configure.args  --mandir=${prefix}/share/man --prefix=${destroot}${prefix}
     33post-build {
     34        # configure & build in contrib/*
     35        foreach package {ttf2bdf ttf2pfb ttf2pk ttfbanner} {
     36                system "cd ${worksrcpath}/contrib/$package && \
     37                        ${configure.cmd} --mandir=${destroot}${prefix}/share/man --prefix=${destroot}${prefix} --without-kpathsea-dir"
     38                system "cd ${worksrcpath}/contrib/$package && \
     39                        ${build.cmd} ${build.pre_args}"
     40        }
     41}
     42
    2943destroot        {
    3044                        system "cd ${worksrcpath}/lib \
    3145                        && make -f arch/unix/Makefile install"
    3246
    3347                        system "cd ${worksrcpath}/po \
    3448                        && make install"
     49
     50                        foreach package {ttf2bdf ttf2pfb ttf2pk ttfbanner} {
     51                                system "cd ${worksrcpath}/contrib/${package} \
     52                        && make install"
     53                        }
    3554                }
    3655post-destroot   {
    3756                        system "cd ${destroot}/${prefix} \
    3857                        && mv include/freetype include/freetype1"
     58                        # remove ttf2pfb's getafm, as it conflicts with psutils'
     59                        file delete "${destroot}/${prefix}/bin/getafm"
     60                        # remove ttf2pfb's t1asm, as it conflicts with t1utils'
     61                        file delete "${destroot}/${prefix}/bin/t1asm"
    3962                }
    4063variant x86             {
    4164        patchfiles-append       patch-configure
  • patch-contrib-ttfbanner-ttfbanner.c

    diff -u /dev/null files/patch-contrib-ttfbanner-ttfbanner.c
    old new  
     1--- contrib/ttfbanner/ttfbanner.c.orig  2005-08-13 14:57:41.000000000 +0900
     2+++ contrib/ttfbanner/ttfbanner.c       2005-08-13 14:57:49.000000000 +0900
     3@@ -4,7 +4,6 @@
     4 
     5 #include <stdlib.h>
     6 #include <stdio.h>
     7-#include <malloc.h>
     8 #include <string.h>
     9 #include "freetype.h"
     10 #include "ttfbanner.h"