From nobody Fri Feb 16 19:34:27 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Tc2F02qp6z56QbP; Fri, 16 Feb 2024 19:34:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tc2F00m8Zz4GPw; Fri, 16 Feb 2024 19:34:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708112068; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KAr0OI23ffPuE+LanVlV0QfqQN4VKJ40TQCu3cp2dcE=; b=lTrdKO/RXyengaPLApjU9a7e7IFthHxz3Ft9+ogf+A1GadjYzZCf4IDmiS0vXxRPbxQ/Cz XWaP2qXZz2tFPhQMSmJ38NyEduUqZa6ADx8B4kAXtUvsUSWBbqT6iTyTC0eXaHGtAKyFlS yni66JuUU1p6UU7MbgbvCqshUptiQcuetN7crmqBEXi9Is3Oue2IUKINgp6CqlCyfWhQ0q 3+/8HBQZYJJx2URvsTufRVRoz43QgtBDFpMdbXtShdvYM6GabuC7TWnbK7xNUXxwKyg4ot 1tMnXcsiY25Vle7V9PZM/F4484lbX/7jQdGln4N0KILP+nWSG9dUOQU1RFzfRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708112068; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KAr0OI23ffPuE+LanVlV0QfqQN4VKJ40TQCu3cp2dcE=; b=WLBWG3WbFIesAdd2IhXr0UfaoE14CZRfdSt8/D+Mu9eokVRv+Gj7jRq+V9a9SY1NpxPVcu AMZbAwI2gvstxGiAmlKhQX9GniGd5XmHEsxuqphzn7tMGcWKJiElF00e2eG79adm39Ljzi +FJzie3DYwgMdX0rBWXDlaMAJ5ineYGMfpSphTDPnYW3eoV7mUfbgQP3mlwdRajb8CPy2r jPHvnFXTA68f1ecpxYXLjT8dreb3RItoI1I2CirP1N7lpkV4p0AHQHrZ+asViB1y6+jnHn SGBtNS6dminyY2QqcgqniDGXoPjw4NKLopwiGFJYs1ziaGW0N9CVCPGoNoXqaA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708112068; a=rsa-sha256; cv=none; b=n8DaEVufrTSs2XZMYvgj7cmsbVKboicMhwWneMyuzoiO31z2kYd1mUevWs2uj4kqmJDjwD SOEW5f5sGDGuboPM7lmFwThT6FPH64kXPm6SWn46HyBNSKRE9OfhkPQzIdhNJqcfXHjq6j qce/GsWVlLUNCNEp5bPgvxUruV982gJKpIpHNl2gRhcHCEdcw2uot2u53JfycKZDQToJFU xRudr8Me4VnF01bLWB+Mjb31VtWUb5kdWqUzBl3dX7lMmrmrgsrIHyRXdvP0IpfCPS5nF3 MH8xmiW+nd9iKbkqmWokNVZIp6fDN/y9kHqcN6Sdf/0Vfge/GqbiHKcBtL3FQg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Tc2Dz6x3czdYc; Fri, 16 Feb 2024 19:34:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41GJYRwa094579; Fri, 16 Feb 2024 19:34:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41GJYRgg094576; Fri, 16 Feb 2024 19:34:27 GMT (envelope-from git) Date: Fri, 16 Feb 2024 19:34:27 GMT Message-Id: <202402161934.41GJYRgg094576@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Felix Palmen Subject: git: 10949ea3c082 - main - x11-fonts/ibmfonts: Add new port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zirias X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 10949ea3c082c1e8ba059c65ae1ebf868c4a190b Auto-Submitted: auto-generated The branch main has been updated by zirias: URL: https://cgit.FreeBSD.org/ports/commit/?id=10949ea3c082c1e8ba059c65ae1ebf868c4a190b commit 10949ea3c082c1e8ba059c65ae1ebf868c4a190b Author: Felix Palmen AuthorDate: 2024-02-14 09:12:41 +0000 Commit: Felix Palmen 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 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