openbsd-ports/fonts/gohufont/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

37 lines
993 B
Makefile

# $OpenBSD: Makefile,v 1.3 2012/10/29 15:19:03 espie Exp $
COMMENT = monospace bitmap font for programming and terminal use
PKG_ARCH = *
DISTNAME = gohufont-2.0
CATEGORIES = fonts x11
MAINTAINER = Tobias Ulmer <tobiasu@tmux.org>
REVISION = 0
HOMEPAGE = http://font.gohu.eu
MASTER_SITES = ${HOMEPAGE}/
# WTFPLv2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
NO_BUILD = Yes
NO_REGRESS = Yes
FONTDIR = ${PREFIX}/lib/X11/fonts/gohufont
USE_X11 = Yes
do-install:
${X11BASE}/bin/mkfontdir ${WRKSRC}
egrep '\.pcf\.gz' ${WRKSRC}/fonts.dir | \
grep '\-gohufont-' | \
sed 's/\.pcf\.gz//g' > ${WRKSRC}/fonts.alias
${INSTALL_DATA_DIR} ${FONTDIR}
${INSTALL_DATA} ${WRKDIST}/*.pcf.gz ${FONTDIR}
${INSTALL_DATA} ${WRKBUILD}/fonts.alias ${FONTDIR}/fonts.alias-gohufont
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gohufont
${INSTALL_DATA} ${WRKDIST}/{COPYING-LICENSE,README} \
${PREFIX}/share/doc/gohufont
.include <bsd.port.mk>