summaryrefslogtreecommitdiffstats
path: root/sysutils/unidesc/Makefile
blob: 5ebe5a9226c91d1e6afe827aa3343ae32b15d504 (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
41
# New ports collection makefile for:	unidesc
# Date created:		Sun 15 May 2005
# Whom:			thierry@pompo.net
#
# $FreeBSD$
#

PORTNAME=	unidesc
PORTVERSION=	2.13
CATEGORIES=	sysutils textproc
MASTER_SITES=	http://www.cis.upenn.edu/~wjposer/.downloads/
EXTRACT_SUFX=	.tgz

MAINTAINER=	thierry@FreeBSD.org
COMMENT=	Unicode Description Utilities

USE_GETTEXT=	yes
USE_REINPLACE=	yes

TESTFILES=	TestData/Test1.ann TestData/Test1.u TestData/Test2.ann	\
		TestData/Test2.u TestData/Test3.ann TestData/Test3.u	\
		TestData/Test4.ann TestData/Test4.u
DEMOS=		demo.jpg demo.u demo32.u
PORTDOCS=	README

MAN1=		unidesc.1 uniname.1 ExplicateUTF8.1 unihist.1

pre-configure:
	@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|;s|%%LOCALBASE%%|${LOCALBASE}|'	\
		${WRKSRC}/Makefile
	@${REINPLACE_CMD} -e 's|TestData|${EXAMPLESDIR}|' ${WRKSRC}/README

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR} ${EXAMPLESDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
	${INSTALL_DATA} ${TESTFILES:S|^|${WRKSRC}/|} ${EXAMPLESDIR}
	${INSTALL_DATA} ${DEMOS:S|^|${WRKSRC}/|} ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud