git: 10949ea3c082 - main - x11-fonts/ibmfonts: Add new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 16 Feb 2024 19:34:27 UTC
The branch main has been updated by zirias: URL: https://cgit.FreeBSD.org/ports/commit/?id=10949ea3c082c1e8ba059c65ae1ebf868c4a190b commit 10949ea3c082c1e8ba059c65ae1ebf868c4a190b Author: Felix Palmen <zirias@FreeBSD.org> AuthorDate: 2024-02-14 09:12:41 +0000 Commit: Felix Palmen <zirias@FreeBSD.org> CommitDate: 2024-02-16 19:34:09 +0000 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. --- x11-fonts/Makefile | 1 + x11-fonts/ibmfonts/Makefile | 40 ++++++++++++++++++++++++++++ x11-fonts/ibmfonts/distinfo | 3 +++ x11-fonts/ibmfonts/files/patch-configure | 45 ++++++++++++++++++++++++++++++++ x11-fonts/ibmfonts/pkg-descr | 9 +++++++ x11-fonts/ibmfonts/pkg-plist | 19 ++++++++++++++ 6 files changed, 117 insertions(+) diff --git a/x11-fonts/Makefile b/x11-fonts/Makefile index 2277a915dfe2..e34986bf6483 100644 --- a/x11-fonts/Makefile +++ b/x11-fonts/Makefile @@ -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 diff --git a/x11-fonts/ibmfonts/Makefile b/x11-fonts/ibmfonts/Makefile new file mode 100644 index 000000000000..8d1977fd4d26 --- /dev/null +++ b/x11-fonts/ibmfonts/Makefile @@ -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> diff --git a/x11-fonts/ibmfonts/distinfo b/x11-fonts/ibmfonts/distinfo new file mode 100644 index 000000000000..7cff1a4a5c6b --- /dev/null +++ b/x11-fonts/ibmfonts/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1708027202 +SHA256 (farsil-ibmfonts-0.1_GH0.tar.gz) = 86f6d295561947f7e0a42e6e2bd405f63625095353468c6a6e752c0cba727dc9 +SIZE (farsil-ibmfonts-0.1_GH0.tar.gz) = 253247 diff --git a/x11-fonts/ibmfonts/files/patch-configure b/x11-fonts/ibmfonts/files/patch-configure new file mode 100644 index 000000000000..ac79f2e3333e --- /dev/null +++ b/x11-fonts/ibmfonts/files/patch-configure @@ -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) diff --git a/x11-fonts/ibmfonts/pkg-descr b/x11-fonts/ibmfonts/pkg-descr new file mode 100644 index 000000000000..afc145768a60 --- /dev/null +++ b/x11-fonts/ibmfonts/pkg-descr @@ -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. diff --git a/x11-fonts/ibmfonts/pkg-plist b/x11-fonts/ibmfonts/pkg-plist new file mode 100644 index 000000000000..4bb7198f3f6a --- /dev/null +++ b/x11-fonts/ibmfonts/pkg-plist @@ -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