aboutsummaryrefslogtreecommitdiff
path: root/arabic/arabtex/Makefile
blob: 9c219b6b7a93a38b6ada458b4b24fb970383b036 (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
48
49
50
51
52
53
# New ports collection makefile for:	arabtex
# Date created:		2005-07-15
# Whom:			Nicola Vitale <nivit@email.it>
#
# $FreeBSD$
#

PORTNAME=	arabtex
PORTVERSION=	3.11
PORTREVISION=	2
CATEGORIES=	arabic print
MASTER_SITES=	ftp://ftp.informatik.uni-stuttgart.de/pub/${PORTNAME}/
DISTNAME=	arab${PORTVERSION:S/.//}
EXTRACT_SUFX=	.tgz

MAINTAINER=	nivit@FreeBSD.org
COMMENT=	A TeX/LaTeX package to generate the arabic writing

BUILD_DEPENDS=	mktexlsr:${PORTSDIR}/print/teTeX \
		${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal
RUN_DEPENDS=	${BUILD_DEPENDS}

NO_WRKSUBDIR=	yes
NO_BUILD=	yes
PLIST_SUB=	MKTEXLSR=${MKTEXLSR}

TEXMFLOCAL=	${LOCALBASE}/share/texmf-local
TEXMFLOCAL_LSR=	${TEXMFLOCAL}/ls-R
MKTEXLSR=	${LOCALBASE}/bin/mktexlsr

FIND_DIRS=	-type d \! -empty
FIND_DATA=	-type f
FIND_HERE=	fonts tex

.if !defined(NOPORTDOCS)
FIND_HERE+=	doc
.endif

do-install:
	@cd ${WRKSRC}; \
	DIRS=$$(${FIND} ${FIND_HERE} ${FIND_DIRS}); \
	for DIR in $${DIRS}; do \
		${MKDIR} ${TEXMFLOCAL}/$${DIR}; \
	done; \
	FILES=$$(${FIND} ${FIND_HERE} ${FIND_DATA} ); \
	for FILE in $${FILES}; do \
		${INSTALL_DATA} $${FILE} ${TEXMFLOCAL}/$${FILE}; \
	done;

post-install:
	@${MKTEXLSR}

.include <bsd.port.mk>