RCS file: /Volumes/src/cvs/od/proj/darwinports/dports/print/freetype1/Portfile,v
retrieving revision 1.3
diff -u -r1.3 Portfile
|
|
|
2 | 2 | PortSystem 1.0 |
3 | 3 | name freetype1 |
4 | 4 | version 1.3.1 |
5 | | revision 1 |
| 5 | revision 2 |
6 | 6 | categories print |
7 | 7 | maintainers olegb@opendarwin.org |
8 | 8 | description Free and portable render engine for TrueType fonts |
… |
… |
|
25 | 25 | ${worksrcpath}/Makefile.in |
26 | 26 | } |
27 | 27 | } |
| 28 | |
| 29 | depends_lib bin:msgfmt:gettext |
| 30 | patchfiles patch-contrib-ttfbanner-ttfbanner.c |
| 31 | |
28 | 32 | configure.args --mandir=${prefix}/share/man --prefix=${destroot}${prefix} |
| 33 | post-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 | |
29 | 43 | destroot { |
30 | 44 | system "cd ${worksrcpath}/lib \ |
31 | 45 | && make -f arch/unix/Makefile install" |
32 | 46 | |
33 | 47 | system "cd ${worksrcpath}/po \ |
34 | 48 | && make install" |
| 49 | |
| 50 | foreach package {ttf2bdf ttf2pfb ttf2pk ttfbanner} { |
| 51 | system "cd ${worksrcpath}/contrib/${package} \ |
| 52 | && make install" |
| 53 | } |
35 | 54 | } |
36 | 55 | post-destroot { |
37 | 56 | system "cd ${destroot}/${prefix} \ |
38 | 57 | && 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" |
39 | 62 | } |
40 | 63 | variant x86 { |
41 | 64 | patchfiles-append patch-configure |
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" |