the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: ttf2eot
Version: 0.0.2
Revision: 2.1
#Doesn't currently work on powerpc due to endian issues.
Architecture: i386, x86_64
Description: Utility to convert TTF files to EOT
DescDetail: <<
EOT is used by Internet Explorer to support css @font-face declarations.
<<
DescUsage: <<
Converts stdin to stdout.
Example: ttf2eot
<<
License: BSD
Homepage: http://code.google.com/p/ttf2eot/
Maintainer: Daniel Johnson
Source: http://ttf2eot.googlecode.com/files/%n-%v-2.tar.gz
Source-MD5: 97c9ceb0ded362bf2e6dd3a3a9360f8d
SourceDirectory: %n-%v-2
#Patch to remove linux-only %m from format strings.
PatchFile: %n.patch
PatchFile-MD5: eca7b106516c633f1dd6e725e97ad238
BuildDepends: fink (>= 0.24.12)
CompileScript: <<
make
head -n 26 OpenTypeUtilities.h >LICENSE
<<
InstallScript: <<
install -d %i/bin
install -m 0755 ttf2eot %i/bin/ttf2eot
<<
DocFiles: ChangeLog README LICENSE
diff -ru ttf2eot-0.0.2-2.orig/ttf2eot.cpp ttf2eot-0.0.2-2/ttf2eot.cpp
--- ttf2eot-0.0.2-2.orig/ttf2eot.cpp 2009-04-30 05:18:46.000000000 -0400
+++ ttf2eot-0.0.2-2/ttf2eot.cpp 2009-08-30 13:06:47.000000000 -0400
@@ -5,6 +5,7 @@
#include
#include
#include
+#include
#include
@@ -56,13 +57,13 @@
} else {
input = fopen(argv[1], "rb");
if (input == NULL) {
- fprintf(stderr, "could not open input file %s, %m\n", argv[1]);
+ fprintf(stderr, "could not open input file %s, %s\n", argv[1], strerror (errno));
return 1;
}
}
if ((fontData = (unsigned char *) malloc(fontSize = kFontInitSize)) == NULL) {
- fprintf(stderr, "Allocation failure, %m\n");
+ fprintf(stderr, "Allocation failure, %s\n", strerror (errno));
return 1;
}
@@ -71,11 +72,11 @@
if (ret && fontSize <= SIZE_MAX / 2) {
fontOff += ret;
if ((fontData = (unsigned char *) realloc(fontData, fontSize *= 2)) == NULL) {
- fprintf(stderr, "Allocation failure, %m\n");
+ fprintf(stderr, "Allocation failure, %s\n", strerror (errno));
return 1;
}
} else if (ret) {
- fprintf(stderr, "Too much data, %m\n");
+ fprintf(stderr, "Too much data, %s\n", strerror (errno));
return 1;
} else {
fontData = (unsigned char *) realloc(fontData, fontSize = fontOff);
@@ -88,7 +89,7 @@
fwrite(fontData, fontSize, 1, stdout);
return 0;
} else {
- fprintf(stderr, "unknown error parsing input font, %m\n");
+ fprintf(stderr, "unknown error parsing input font, %s\n", strerror (errno));
return 1;
}
}