openbsd-ports/fonts/terminus-font/Makefile
espie 9a11505f7a resurrect USE_X11, only for the few ports that require xenocara components
but don't have explicit WANTLIB that point to X11.
2012-10-29 15:19:02 +00:00

52 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.5 2012/10/29 15:19:03 espie Exp $
COMMENT = fixed width fonts especially for long hacking sessions
DISTNAME = terminus-font-4.38
CATEGORIES = fonts x11
HOMEPAGE = http://terminus-font.sourceforge.net/
MAINTAINER = LEVAI Daniel <leva@ecentrum.hu>
# OFL http://scripts.sil.org/OFL
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=terminus-font/}
CONFIGURE_STYLE = simple
NO_REGRESS = Yes
USE_X11 = Yes
ALL_TARGET = pcf
FONTDIR = ${PREFIX}/lib/X11/fonts/terminus
USE_GMAKE = Yes
FLAVORS = symquotes
FLAVOR ?=
.if ${FLAVOR:L:Msymquotes}
post-patch:
${PATCH} -d ${WRKSRC} < ${WRKSRC}/alt/gq2.diff
.endif
do-install:
${GZIP_CMD} ${WRKSRC}/*.pcf
${X11BASE}/bin/mkfontdir ${WRKSRC}
egrep '\.pcf\.gz' ${WRKSRC}/fonts.dir | \
sed 's/\.pcf\.gz//g' > ${WRKSRC}/fonts.alias
${INSTALL_DATA_DIR} ${FONTDIR}
${INSTALL_DATA} ${WRKSRC}/*.pcf.gz ${FONTDIR}
${INSTALL_DATA} ${WRKBUILD}/fonts.alias ${FONTDIR}/fonts.alias-terminus
# XXX workaround for 4.38
post-extract:
chmod a+x ${WRKSRC}/configure
.include <bsd.port.mk>