aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/plain2/Makefile
blob: cb25c06d478eb4f33d588edd3972c8145d2c6caf (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
# New ports collection makefile for:    plain2
# Date created:     20 April 1997
# Whom:         nkazushi@highway.or.jp
#
# $FreeBSD$
#

PORTNAME=   plain2
PORTVERSION=    2.54.1
PORTREVISION=   2
CATEGORIES= japanese textproc
MASTER_SITES=   http://ftp.debian.or.jp/debian-jp/pool/main/p/plain2/
DISTNAME=   ${PORTNAME}_${PORTVERSION:R}p${PORTVERSION:E}.orig

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

MAINTAINER= ports@FreeBSD.org
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

USE_REINPLACE=  yes
MAKE_ARGS=  CC="${CC}" CFLAGS="${CFLAGS} -DBSD -DKANJI -DPICTURE -DHTML -fwritable-strings"
ALL_TARGET= ${PORTNAME}

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

do-install:
    ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} ${PREFIX}/bin
    @${MKDIR} ${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/lib/*.p2 ${DATADIR}

.include <bsd.port.mk>