1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-31 05:41:08 +00:00

x11-fonts/ibmfonts: Add new port

These are some of the bitmap fonts also available from
x11-fonts/oldschool-pc-fonts, converted to BDF and compiled to PCF,
which works better with e.g. xterm for pixel-perfect rendering.
This commit is contained in:
Felix Palmen 2024-02-14 10:12:41 +01:00
parent f938c44689
commit 10949ea3c0
6 changed files with 117 additions and 0 deletions

View File

@ -135,6 +135,7 @@
SUBDIR += hanazono-fonts-ttf
SUBDIR += hermit
SUBDIR += iansui
SUBDIR += ibmfonts
SUBDIR += inconsolata-lgc-ttf
SUBDIR += inconsolata-ttf
SUBDIR += intel-one-mono

View File

@ -0,0 +1,40 @@
PORTNAME= ibmfonts
DISTVERSION= 0.1
CATEGORIES= x11-fonts
MAINTAINER= zirias@FreeBSD.org
COMMENT= IBM Fonts in PCF format
LICENSE= CC-BY-SA-4.0 MIT
LICENSE_COMB= multi
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= bdftopcf:x11-fonts/bdftopcf
USES= fonts
FONTPATHSPEC= ${FONTNAME}
USE_GITHUB= yes
GH_ACCOUNT= farsil
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --bsd-make \
--installdir=${FONTSDIR} \
--prefix=${PREFIX}
NO_ARCH= yes
OPTIONS_DEFINE= VT100 XFTFIX
OPTIONS_DEFAULT= VT100 XFTFIX
VT100_DESC= Remove glyphs at 00-1F confusable for VT100 drawing
XFTFIX_DESC= Fix Xft names removing repeated IBM in FAMILY_NAME
post-patch-VT100-on:
@${REINPLACE_CMD} \
-e 's/CHARS 782/CHARS 750/' -e 's/uni0000.*/space/' \
-e '/ENCODING 0/,/STARTCHAR space/d' ${WRKSRC}/bdf/*.bdf
post-patch-XFTFIX-on:
@${REINPLACE_CMD} \
's/FAMILY_NAME "IBM /FAMILY_NAME "/' ${WRKSRC}/bdf/*.bdf
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1708027202
SHA256 (farsil-ibmfonts-0.1_GH0.tar.gz) = 86f6d295561947f7e0a42e6e2bd405f63625095353468c6a6e752c0cba727dc9
SIZE (farsil-ibmfonts-0.1_GH0.tar.gz) = 253247

View File

@ -0,0 +1,45 @@
--- configure.orig 2016-11-07 10:04:21 UTC
+++ configure
@@ -6,22 +6,20 @@ OBJDIR=""
INSTALLDIR=""
MAKEVAR="gnu"
-eval set -- "`getopt -o p:i:o:s:b --long prefix:,objdir:,srcdir:,installdir:,bsd-make -n "$0" -- "$@"`"
-
while true ; do
case "$1" in
- -p|--prefix)
- PREFIX="$2"; shift 2 ;;
- -o|--objdir)
- OBJDIR="$2"; shift 2 ;;
- -s|--srcdir)
- SRCDIR="$2"; shift 2 ;;
- -b|--bsd-make)
+ --prefix=*)
+ PREFIX="${1#*=}"; shift ;;
+ --objdir=*)
+ OBJDIR="${1#*=}"; shift ;;
+ --srcdir=*)
+ SRCDIR="${1#*=}"; shift ;;
+ --bsd-make)
MAKEVAR="bsd"; shift ;;
- -i|--installdir)
- INSTALLDIR="$2"; shift 2 ;;
- --)
- shift; break ;;
+ --installdir=*)
+ INSTALLDIR="${1#*=}"; shift ;;
+ '')
+ break ;;
*)
exit 1 ;;
esac
@@ -104,7 +102,7 @@ clean:
install: all
install -dm755 \$(DESTDIR)\$(installdir)
- install -D -m 644 -t \$(DESTDIR)\$(installdir) \$(COMPILED)
+ install -m644 \$(COMPILED) \$(DESTDIR)\$(installdir)
uninstall:
rm -f \$(INSTALLED)

View File

@ -0,0 +1,9 @@
A collection of monospaced, bitmap fonts in BDF format that origin from IBM
text mode and system fonts. They include extended latin, greek, cyrillic and
hebrew scripts and several extra characters, for a total of 782 glyphs each.
The fonts are in BDF 2.1 format and fully compatible with applications that
make use of either Xft or XLFD.
This is a format conversion of some of the bitmap fonts available from the
x11-fonts/oldschool-pc-fonts package. The BDF (compiled to PCF) format might
work better with applications that can use X Toolkit fonts, notably x11/xterm.

View File

@ -0,0 +1,19 @@
%%FONTSDIR%%/ib16x16u.pcf.gz
%%FONTSDIR%%/ib16x8u.pcf.gz
%%FONTSDIR%%/ib8x16u.pcf.gz
%%FONTSDIR%%/ib8x8u.pcf.gz
%%FONTSDIR%%/ic16x16u.pcf.gz
%%FONTSDIR%%/ic8x16u.pcf.gz
%%FONTSDIR%%/ic8x8u.pcf.gz
%%FONTSDIR%%/icl16x16u.pcf.gz
%%FONTSDIR%%/icl8x16u.pcf.gz
%%FONTSDIR%%/icl8x8u.pcf.gz
%%FONTSDIR%%/ie16x14u.pcf.gz
%%FONTSDIR%%/ie18x14u.pcf.gz
%%FONTSDIR%%/ie8x14u.pcf.gz
%%FONTSDIR%%/ie9x14u.pcf.gz
%%FONTSDIR%%/im9x14u.pcf.gz
%%FONTSDIR%%/iv16x16u.pcf.gz
%%FONTSDIR%%/iv18x16u.pcf.gz
%%FONTSDIR%%/iv8x16u.pcf.gz
%%FONTSDIR%%/iv9x16u.pcf.gz