This port was only useful with xfstt. Since then truetype font support
in X has improved. ok steven@ ajacoutot@ naddy@
This commit is contained in:
parent
0b91431068
commit
7fa19b75fc
@ -1,37 +0,0 @@
|
||||
# $OpenBSD: Makefile,v 1.12 2004/12/19 17:27:02 alek Exp $
|
||||
|
||||
COMMENT= "create fonts.scale file for the TrueType font server"
|
||||
|
||||
PKGNAME= ttmkfdir-2.0
|
||||
DISTNAME= ttmkfdir2.20021109
|
||||
CATEGORIES= x11
|
||||
|
||||
HOMEPAGE= http://people.redhat.com/yshao/
|
||||
|
||||
# X11
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
WANTLIB= c freetype m stdc++
|
||||
|
||||
MASTER_SITES= ${HOMEPAGE}
|
||||
EXTRACT_SUFX= .tar.bz2
|
||||
|
||||
USE_X11= Yes
|
||||
USE_GMAKE= Yes
|
||||
USE_LIBTOOL= Yes
|
||||
|
||||
MAKE_ENV= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
WRKDIST= ${WRKDIR}/ttmkfdir2
|
||||
|
||||
post-extract:
|
||||
@rm ${WRKDIST}/ttmkfdir.cpp.orig ${WRKDIST}/*.lo
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/ttmkfdir ${PREFIX}/bin/ttmkfdir
|
||||
|
||||
.include <bsd.port.mk>
|
@ -1,5 +0,0 @@
|
||||
MD5 (ttmkfdir2.20021109.tar.bz2) = eeBAE5PJcohlqnO7K9aN1A==
|
||||
RMD160 (ttmkfdir2.20021109.tar.bz2) = h4+1f4DnIj67P0IU7VhiGpCH5AQ=
|
||||
SHA1 (ttmkfdir2.20021109.tar.bz2) = vuGUTOPltsRQOhTmQpc3zFWKJMA=
|
||||
SHA256 (ttmkfdir2.20021109.tar.bz2) = YYKOYZuXRisywr5xdW3XPTBkW6tbiuJ+ENX5ISmIWSg=
|
||||
SIZE (ttmkfdir2.20021109.tar.bz2) = 701900
|
@ -1,32 +0,0 @@
|
||||
$OpenBSD: patch-Makefile,v 1.2 2004/07/08 19:11:50 naddy Exp $
|
||||
--- Makefile.orig Thu Nov 7 06:28:44 2002
|
||||
+++ Makefile Thu Jul 8 20:53:01 2004
|
||||
@@ -1,22 +1,19 @@
|
||||
-FREETYPE_BASE=/usr/include/freetype2
|
||||
-FREETYPE_INCL=-I$(FREETYPE_BASE)/.
|
||||
-FREETYPE_LIB=/usr/lib/libfreetype.so
|
||||
+FREETYPE_INCL=`freetype-config --cflags`
|
||||
+FREETYPE_LIB=`freetype-config --libs`
|
||||
|
||||
-DEBUG=-ggdb
|
||||
-CXX=g++
|
||||
-CXXFLAGS=-Wall -pedantic $(FREETYPE_INCL) $(DEBUG)
|
||||
+CXXFLAGS+=$(FREETYPE_INCL)
|
||||
|
||||
-LDFLAGS=$(FREETYPE_LIB) $(DEBUG)
|
||||
+LDFLAGS+=$(FREETYPE_LIB)
|
||||
|
||||
.PHONY: clean
|
||||
|
||||
all: ttmkfdir
|
||||
|
||||
.cpp.o:
|
||||
- libtool --mode=compile $(CXX) $(CXXFLAGS) -o $@ -c $^
|
||||
+ libtool --mode=compile --tag=CXX $(CXX) $(CXXFLAGS) -o $@ -c $^
|
||||
|
||||
ttmkfdir: ttmkfdir.o directory.o commandline.o ttf.o encoding.o parser.o builtin.o
|
||||
- libtool --mode=link $(CXX) -o $@ $^ $(LDFLAGS)
|
||||
+ libtool --mode=link --tag=CXX $(CXX) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
parser.cpp: encoding.l
|
||||
flex -i -8 -o$@ $<
|
@ -1,22 +0,0 @@
|
||||
$OpenBSD: patch-encoding_cpp,v 1.2 2004/11/06 16:15:08 naddy Exp $
|
||||
--- encoding.cpp.orig Thu Nov 7 06:28:44 2002
|
||||
+++ encoding.cpp Sat Nov 6 16:49:09 2004
|
||||
@@ -2,7 +2,8 @@
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
-#include "freetype/freetype.h"
|
||||
+#include <ft2build.h>
|
||||
+#include FT_FREETYPE_H
|
||||
|
||||
#include "ttmkfdir.h"
|
||||
#include "encoding.h"
|
||||
@@ -44,7 +45,7 @@ namespace {
|
||||
|
||||
strcat (name, file_name);
|
||||
|
||||
- sprintf (command, "exec %s < %s", (toupper(name[strlen (name) - 1]) == 'Z')
|
||||
+ snprintf (command, sizeof(command), "exec %s < %s", (toupper(name[strlen (name) - 1]) == 'Z')
|
||||
? "gzip -d" : "cat", name);
|
||||
return popen (command, "r");
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
$OpenBSD: patch-encoding_h,v 1.1 2004/11/06 16:15:08 naddy Exp $
|
||||
--- encoding.h.orig Sat Nov 6 16:51:50 2004
|
||||
+++ encoding.h Sat Nov 6 16:52:19 2004
|
||||
@@ -6,7 +6,8 @@
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
-#include "freetype/freetype.h"
|
||||
+#include <ft2build.h>
|
||||
+#include FT_FREETYPE_H
|
||||
|
||||
#include "util.h"
|
||||
|
@ -1,12 +0,0 @@
|
||||
$OpenBSD: patch-ttf_cpp,v 1.1 2004/02/12 01:32:03 kevlo Exp $
|
||||
--- ttf.cpp.orig 2004-02-11 17:10:31.000000000 +0000
|
||||
+++ ttf.cpp 2004-02-11 17:10:41.000000000 +0000
|
||||
@@ -226,7 +226,7 @@ Face::FontFamilyName (void) const
|
||||
for (i = 0; i < n; i++) {
|
||||
if ((fterror = FT_Get_Sfnt_Name (face, i, &NamePtr)) != FT_Err_Ok) {
|
||||
std::cout << "Warning: Can't SFNT name : " << FileName << "(" << fterror << ")" << std::endl;
|
||||
- return;
|
||||
+ return (0);
|
||||
};
|
||||
platform = NamePtr.platform_id;
|
||||
encoding = NamePtr.encoding_id;
|
@ -1,23 +0,0 @@
|
||||
$OpenBSD: patch-ttf_h,v 1.1 2004/11/06 16:15:08 naddy Exp $
|
||||
--- ttf.h.orig Sat Nov 6 16:39:58 2004
|
||||
+++ ttf.h Sat Nov 6 16:46:46 2004
|
||||
@@ -3,12 +3,13 @@
|
||||
#define TTF_H__
|
||||
|
||||
#include <string>
|
||||
-#include "freetype/freetype.h"
|
||||
-#include "freetype/tttables.h"
|
||||
-#include "freetype/ftsnames.h"
|
||||
-#include "freetype/ttnameid.h"
|
||||
-#include "freetype/fterrors.h"
|
||||
-#include "freetype/ftmodule.h"
|
||||
+#include <ft2build.h>
|
||||
+#include FT_FREETYPE_H
|
||||
+#include FT_TRUETYPE_TABLES_H
|
||||
+#include FT_SFNT_NAMES_H
|
||||
+#include FT_TRUETYPE_IDS_H
|
||||
+#include FT_ERRORS_H
|
||||
+#include FT_MODULE_H
|
||||
|
||||
#include "util.h"
|
||||
#include "encoding.h"
|
@ -1,3 +0,0 @@
|
||||
This program is for users of xfsft by Juliusz Chroboczek and Mark
|
||||
Leisher. It reads TrueType fonts and creates a suitable fonts.scale
|
||||
file for use with the above mentioned X font server.
|
@ -1,2 +0,0 @@
|
||||
@comment $OpenBSD: PLIST,v 1.3 2004/02/12 01:32:05 kevlo Exp $
|
||||
bin/ttmkfdir
|
Loading…
Reference in New Issue
Block a user