aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts/alef/Makefile
blob: 04f466ea5a8a72b25e2dcd272397579244f36710 (plain) (blame)
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
41
42
43
44
45
46
47
# $FreeBSD$

PORTNAME=   alef
PORTVERSION=    1.0
PORTREVISION=   1
CATEGORIES= x11-fonts
MASTER_SITES=   http://alef.hagilda.com/
DISTNAME=   Alef

MAINTAINER= cpm@fbsd.es
COMMENT=    Free multi-lingual font designed for screens

LICENSE=    OFL11
LICENSE_FILE=   ${WRKSRC}/OFL-license.txt

BUILD_DEPENDS=  mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
        mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale

USES=       zip
USE_XORG=   x11

NO_WRKSUBDIR=   yes
FONTSDIR=   ${PREFIX}/lib/X11/fonts/${PORTNAME}

PLIST_SUB=  FONTSDIR="${FONTSDIR:S|${PREFIX}/||}"

PORTDOCS=   COMING-SOON.txt readme.txt

MKFONTSCL_CMD=  ${LOCALBASE}/bin/mkfontscale
MKFONTDIR_CMD=  ${LOCALBASE}/bin/mkfontdir

OPTIONS_DEFINE= DOCS

post-extract:
    ${MV} ${WRKSRC}/--COMING-SOON--.txt ${WRKSRC}/COMING-SOON.txt

do-build:
    ${MKFONTSCL_CMD} ${WRKSRC}/TTF
    ${MKFONTDIR_CMD} ${WRKSRC}/TTF

do-install:
    @${MKDIR} ${STAGEDIR}${FONTSDIR}
    ${INSTALL_DATA} ${WRKSRC}/TTF/* ${STAGEDIR}${FONTSDIR}
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>