Import sysutils/bdfresize.

Bdfresize is a command to magnify or reduce fonts which are described
with the standard BDF format.

OK awolk@
This commit is contained in:
fcambus 2017-06-13 21:46:16 +00:00
parent 4d2fe8507f
commit a13711d777
5 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,25 @@
# $OpenBSD: Makefile,v 1.1.1.1 2017/06/13 21:46:16 fcambus Exp $
COMMENT = tool for resizing BDF format fonts
DISTNAME = bdfresize-1.5
CATEGORIES = sysutils
MAINTAINER = Frederic Cambus <fcambus@openbsd.org>
# GPLv2+
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += c
MASTER_SITES = http://openlab.ring.gr.jp/efont/dist/tools/bdfresize/
CONFIGURE_STYLE = gnu
post-configure:
# Do not build embedded getopt
@sed -i 's|"getopt.h"|<getopt.h>|' ${WRKSRC}/bdfresize.c
@sed -i 's|charresize.o getopt.o|charresize.o|' ${WRKSRC}/Makefile
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (bdfresize-1.5.tar.gz) = RAz8BiCgI35GNSwUoHdMqj8wWXWbCiDe/vyU6EkIl6Y=
SIZE (bdfresize-1.5.tar.gz) = 50916

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-charresize_c,v 1.1.1.1 2017/06/13 21:46:16 fcambus Exp $
Fix conflicting types for 'malloc' error.
Index: charresize.c
--- charresize.c.orig
+++ charresize.c
@@ -46,7 +46,6 @@ static int bit[8] = { 0x80, 0x40, 0x20, 0x10, 0x08, 0x
void
processChar(void)
{
- char *malloc();
char *srcimage;
int *dstgray;

View File

@ -0,0 +1,2 @@
Bdfresize is a command to magnify or reduce fonts which are described
with the standard BDF format.

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2017/06/13 21:46:16 fcambus Exp $
@bin bin/bdfresize
@man man/man1/bdfresize.1