# $OpenBSD: Makefile,v 1.4 2021/01/14 21:55:22 fcambus Exp $

COMMENT =	tool for resizing BDF format fonts

DISTNAME =	bdfresize-1.5
REVISION =	0

CATEGORIES =	sysutils

# GPLv2+
PERMIT_PACKAGE =	Yes

WANTLIB +=	c

MASTER_SITES =	https://www.distfiles.pl/

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>
