aboutsummaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1999-12-27 09:15:39 +0800
committersteve <steve@FreeBSD.org>1999-12-27 09:15:39 +0800
commit7aa8a1997bef87fcc626c135e2bad8503cfe160d (patch)
treeaab7f06768a497d36263ce8d1231d104b97d6aeb /japanese
parente11c325f9baf1b3384a2cc3dd46219763df99d2a (diff)
downloadfreebsd-ports-graphics-7aa8a1997bef87fcc626c135e2bad8503cfe160d.tar.gz
freebsd-ports-graphics-7aa8a1997bef87fcc626c135e2bad8503cfe160d.tar.zst
freebsd-ports-graphics-7aa8a1997bef87fcc626c135e2bad8503cfe160d.zip
Adding ptex-pkfonts* ports.
English PK fonts, for ghostscript5, xdvik, dvipsk, and so on. PR: 15650 Submitted by: Kentaro Inagaki <inagaki@tg.rim.or.jp>
Diffstat (limited to 'japanese')
-rw-r--r--japanese/Makefile6
-rw-r--r--japanese/ptex-pkfonts118/Makefile15
-rw-r--r--japanese/ptex-pkfonts240/Makefile15
-rw-r--r--japanese/ptex-pkfonts300/Makefile57
-rw-r--r--japanese/ptex-pkfonts300/files/REQ.tmpl14
-rw-r--r--japanese/ptex-pkfonts300/pkg-comment1
-rw-r--r--japanese/ptex-pkfonts300/pkg-descr3
-rw-r--r--japanese/ptex-pkfonts300/pkg-plist0
-rw-r--r--japanese/ptex-pkfonts360/Makefile15
-rw-r--r--japanese/ptex-pkfonts400/Makefile15
-rw-r--r--japanese/ptex-pkfonts600/Makefile15
11 files changed, 156 insertions, 0 deletions
diff --git a/japanese/Makefile b/japanese/Makefile
index e860a85eaf2..0166bfe4f82 100644
--- a/japanese/Makefile
+++ b/japanese/Makefile
@@ -193,6 +193,12 @@
SUBDIR += ptex-common
SUBDIR += ptex-euc
SUBDIR += ptex-jis
+ SUBDIR += ptex-pkfonts118
+ SUBDIR += ptex-pkfonts240
+ SUBDIR += ptex-pkfonts300
+ SUBDIR += ptex-pkfonts360
+ SUBDIR += ptex-pkfonts400
+ SUBDIR += ptex-pkfonts600
SUBDIR += ptex-sjis
SUBDIR += qkc
SUBDIR += recjis
diff --git a/japanese/ptex-pkfonts118/Makefile b/japanese/ptex-pkfonts118/Makefile
new file mode 100644
index 00000000000..c1de857687d
--- /dev/null
+++ b/japanese/ptex-pkfonts118/Makefile
@@ -0,0 +1,15 @@
+# New ports collection makefile for: ptex-pkfonts
+# Version required: ?
+# Date created: 24 Dec 1999
+# Whom: Kentaro Inagaki <inagaki@tg.rim.or.jp>
+#
+# $FreeBSD$
+#
+
+RESOLUTION= 118
+
+.include <bsd.port.pre.mk>
+
+MASTERDIR= ${PORTSDIR}/japanese/ptex-pkfonts300
+
+.include "${MASTERDIR}/Makefile"
diff --git a/japanese/ptex-pkfonts240/Makefile b/japanese/ptex-pkfonts240/Makefile
new file mode 100644
index 00000000000..e5f97aacafd
--- /dev/null
+++ b/japanese/ptex-pkfonts240/Makefile
@@ -0,0 +1,15 @@
+# New ports collection makefile for: ptex-pkfonts
+# Version required: ?
+# Date created: 24 Dec 1999
+# Whom: Kentaro Inagaki <inagaki@tg.rim.or.jp>
+#
+# $FreeBSD$
+#
+
+RESOLUTION= 240
+
+.include <bsd.port.pre.mk>
+
+MASTERDIR= ${PORTSDIR}/japanese/ptex-pkfonts300
+
+.include "${MASTERDIR}/Makefile"
diff --git a/japanese/ptex-pkfonts300/Makefile b/japanese/ptex-pkfonts300/Makefile
new file mode 100644
index 00000000000..2318a1b2b6e
--- /dev/null
+++ b/japanese/ptex-pkfonts300/Makefile
@@ -0,0 +1,57 @@
+# New ports collection makefile for: ptex-pkfonts
+# Version required: ?
+# Date created: 24 Dec 1999
+# Whom: Kentaro Inagaki <inagaki@tg.rim.or.jp>
+#
+# $FreeBSD$
+#
+
+DISTNAME= ptex-pkfonts
+PKGNAME?= ja-ptex-pkfonts${RESOLUTION}-1.0
+CATEGORIES= japanese print
+DISTFILES= #null
+
+MAINTAINER= inagaki@tg.rim.or.jp
+
+RUN_DEPENDS= ${LOCALBASE}/lib/fonts/pk${RESOLUTION}:${PORTSDIR}/print/pkfonts${RESOLUTION}
+
+.include <bsd.port.pre.mk>
+
+NO_BUILD= yes
+PKGREQ= ${WRKDIR}/REQ
+
+# ******************
+# USEPK_MODE:
+# Mode name of Metafont to give to print/pkfonts* is set.
+# It is care-and-attention to the other program how MetaFont wants to
+# be executed that do not use modeless. Kpathsea always searches
+# modeless because even if you specify any kind of mode.
+# MAKETEX_MODE:
+# It is mode name of default at executing MetaFont. The default is ljfour.
+# This needs not to be changed. It can be changed with an option or resource.
+# ******************
+USEPK_MODE?= preview
+MAKETEX_MODE?= ${USEPK_MODE}
+RESOLUTION?= 300
+
+.BEGIN:
+.if defined(RESOLUTION) && \
+ ${RESOLUTION} != 118 && ${RESOLUTION} != 240 && \
+ ${RESOLUTION} != 300 && ${RESOLUTION} != 360 && \
+ ${RESOLUTION} != 400 && ${RESOLUTION} != 600
+ @${ECHO} "Error: invalid value for RESOLUTION: \"${RESOLUTION}\""
+ @${ECHO} "Possible values are: 118, 240, 300, 360, 400 and 600."
+ @${FALSE}
+.endif
+
+do-extract:
+ @${MKDIR} ${WRKDIR}
+ @${SED} -e 's,%%RESOLUTION%%,${RESOLUTION},g' \
+ -e 's,%%USEPK_MODE%%,${USEPK_MODE},g' \
+ < ${FILESDIR}/REQ.tmpl > ${WRKDIR}/REQ; \
+
+do-install:
+ @${SETENV} PKG_PREFIX=${PREFIX} \
+ ${SH} ${WRKDIR}/REQ ${PKGNAME} INSTALL
+
+.include <bsd.port.post.mk>
diff --git a/japanese/ptex-pkfonts300/files/REQ.tmpl b/japanese/ptex-pkfonts300/files/REQ.tmpl
new file mode 100644
index 00000000000..4f03ebaddf0
--- /dev/null
+++ b/japanese/ptex-pkfonts300/files/REQ.tmpl
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+if [ "x$1" = "x" ]; then
+ exit 1;
+fi
+
+if [ "x$2" = "xINSTALL" ]; then
+ mkdir -p ${PKG_PREFIX}/share/texmf/fonts/pk/%%USEPK_MODE%%
+ ln -sf ${PKG_PREFIX}/lib/fonts/pk%%RESOLUTION%% ${PKG_PREFIX}/share/texmf/fonts/pk/%%USEPK_MODE%%/
+fi
+
+if [ "x$2" = "xDEINSTALL" ]; then
+ rm ${PKG_PREFIX}/share/texmf/fonts/pk/%%USEPK_MODE%%/pk%%RESOLUTION%%
+fi
diff --git a/japanese/ptex-pkfonts300/pkg-comment b/japanese/ptex-pkfonts300/pkg-comment
new file mode 100644
index 00000000000..898796e448d
--- /dev/null
+++ b/japanese/ptex-pkfonts300/pkg-comment
@@ -0,0 +1 @@
+English PK fonts, for ghostscripts, xdvik, dvipsk and so on
diff --git a/japanese/ptex-pkfonts300/pkg-descr b/japanese/ptex-pkfonts300/pkg-descr
new file mode 100644
index 00000000000..dd059550213
--- /dev/null
+++ b/japanese/ptex-pkfonts300/pkg-descr
@@ -0,0 +1,3 @@
+This makes symlink to English PK fonts package.
+
+This package depends on one of print/pkfont*.
diff --git a/japanese/ptex-pkfonts300/pkg-plist b/japanese/ptex-pkfonts300/pkg-plist
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/japanese/ptex-pkfonts300/pkg-plist
diff --git a/japanese/ptex-pkfonts360/Makefile b/japanese/ptex-pkfonts360/Makefile
new file mode 100644
index 00000000000..411e86d3e23
--- /dev/null
+++ b/japanese/ptex-pkfonts360/Makefile
@@ -0,0 +1,15 @@
+# New ports collection makefile for: ptex-pkfonts
+# Version required: ?
+# Date created: 24 Dec 1999
+# Whom: Kentaro Inagaki <inagaki@tg.rim.or.jp>
+#
+# $FreeBSD$
+#
+
+RESOLUTION= 360
+
+.include <bsd.port.pre.mk>
+
+MASTERDIR= ${PORTSDIR}/japanese/ptex-pkfonts300
+
+.include "${MASTERDIR}/Makefile"
diff --git a/japanese/ptex-pkfonts400/Makefile b/japanese/ptex-pkfonts400/Makefile
new file mode 100644
index 00000000000..6d8e6355244
--- /dev/null
+++ b/japanese/ptex-pkfonts400/Makefile
@@ -0,0 +1,15 @@
+# New ports collection makefile for: ptex-pkfonts
+# Version required: ?
+# Date created: 24 Dec 1999
+# Whom: Kentaro Inagaki <inagaki@tg.rim.or.jp>
+#
+# $FreeBSD$
+#
+
+RESOLUTION= 400
+
+.include <bsd.port.pre.mk>
+
+MASTERDIR= ${PORTSDIR}/japanese/ptex-pkfonts300
+
+.include "${MASTERDIR}/Makefile"
diff --git a/japanese/ptex-pkfonts600/Makefile b/japanese/ptex-pkfonts600/Makefile
new file mode 100644
index 00000000000..10b33787e2c
--- /dev/null
+++ b/japanese/ptex-pkfonts600/Makefile
@@ -0,0 +1,15 @@
+# New ports collection makefile for: ptex-pkfonts
+# Version required: ?
+# Date created: 24 Dec 1999
+# Whom: Kentaro Inagaki <inagaki@tg.rim.or.jp>
+#
+# $FreeBSD$
+#
+
+RESOLUTION= 600
+
+.include <bsd.port.pre.mk>
+
+MASTERDIR= ${PORTSDIR}/japanese/ptex-pkfonts300
+
+.include "${MASTERDIR}/Makefile"