1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/japanese/plain2/Makefile
Rong-En Fan 4d7036c976 - Fix build with gcc 4.x
PR:		ports/131746 (part of)
Submitted by:	Tsurutani Naoki <turutani at scphys.kyoto-u.ac.jp>
2009-03-01 12:19:31 +00:00

40 lines
1.1 KiB
Makefile

# 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
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -DBSD -DKANJI -DPICTURE -DHTML"
ALL_TARGET= ${PORTNAME}
.include <bsd.port.pre.mk>
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.post.mk>