summaryrefslogtreecommitdiff
path: root/fonts/liberation-ttf/Makefile
blob: 57bd8f0455fcaf4653f0dcb7b7595b0d9838deb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# $NetBSD: Makefile,v 1.3 2008/12/13 15:34:17 ahoka Exp $
#

DISTNAME=	liberation-fonts-1.04
PKGNAME=	${DISTNAME:S/fonts/ttf/}
CATEGORIES=	fonts

# The official repo is https only,
# so we have to fetch from this strange URL.
#
LF_HASH=	4846797ef0fc70b0cbaede2514677c58
LF_BASEURL=	http://cvs.fedoraproject.org/repo/pkgs/liberation-fonts
MASTER_SITES=	${LF_BASEURL}/${DISTNAME}.tar.gz/${LF_HASH}/

MAINTAINER=	bartosz.kuzma@gmail.com
HOMEPAGE=	http://www.redhat.com/promo/fonts/
COMMENT=	TrueType fonts from RedHat

PKG_DESTDIR_SUPPORT=	user-destdir

NO_BUILD=	yes
NO_CONFIGURE=	yes

WRKSRC=		${WRKDIR}/${PKGNAME_NOREV:S/ttf/fonts/}

DOCDIR=		${PREFIX}/share/doc/liberation-ttf
FONTDIR=	${PREFIX}/lib/X11/fonts/TTF
FONTS_DIR.ttf=	${FONTDIR}

INSTALLATION_DIRS=	${DOCDIR} ${FONTDIR}

do-install:
	cd ${WRKSRC} && for f in *.ttf ; do \
		${INSTALL_DATA} $$f ${DESTDIR}${FONTDIR}/$$f ; \
	done

	${INSTALL_DATA} ${WRKSRC}/COPYING ${WRKSRC}/License.txt \
		${DESTDIR}${DOCDIR}

.include "../../mk/bsd.pkg.mk"