summaryrefslogtreecommitdiff
path: root/japanese/plain2/Makefile
blob: 680c1efd33a97a3e43162a137429e073366cc5af (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
# Created by: nkazushi@highway.or.jp
# $FreeBSD$

PORTNAME=	plain2
PORTVERSION=	2.54.1
PORTREVISION=	2
CATEGORIES=	japanese textproc
MASTER_SITES=	LOCAL
MASTER_SITE_SUBDIR=	hrs
DISTNAME=	${PORTNAME}_${PORTVERSION:R}p${PORTVERSION:E}.orig

PATCH_SITES=	${MASTER_SITES}
PATCH_SITE_SUBDIR=	${MASTER_SITE_SUBDIR}
PATCHFILES=	${PORTNAME}_${PORTVERSION:R}p${PORTVERSION:E}-4.2.diff.gz
PATCH_DIST_STRIP=	-p1

MAINTAINER=	turutani@scphys.kyoto-u.ac.jp
COMMENT=	A text converter from plain to any format

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION:R}p${PORTVERSION:E}.orig
BUILD_WRKSRC=	${WRKDIR}/${PORTNAME}-${PORTVERSION:R}p${PORTVERSION:E}.orig/src
PLIST_FILES=	bin/plain2
PORTDATA=	OHP.p2 OHP_t.p2 header.p2 header_t.p2 jbook.p2 supsnum.p2

CFLAGS+=	-DBSD -DKANJI -DPICTURE -DHTML
ALL_TARGET=	${PORTNAME}

NO_STAGE=	yes
post-patch:
	@${REINPLACE_CMD} -e \
		's|/usr/lib/plain2|${DATADIR}|g' ${BUILD_WRKSRC}/plain2.h

do-install:
	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} ${PREFIX}/bin
.if !defined(NOPORTDATA)
	@${MKDIR} ${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/lib/*.p2 ${DATADIR}
.endif

.include <bsd.port.mk>