aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/autoconvert/Makefile
blob: 5318bc8ce632e8e600a01ff769a5a69bd9188291 (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
# New ports collection makefile for:    autoconvert
# Date created:     26 Oct 1999
# Whom:         Yin-Jieh Chen <yinjieh@csie.nctu.edu.tw>
#
# $FreeBSD$
#

PORTNAME=   autoconvert
PORTVERSION=    0.3.13
CATEGORIES= chinese
MASTER_SITES=   http://people.debian.org/~ygh/

MAINTAINER= yinjieh@csie.nctu.edu.tw
COMMENT=    Intelligent Chinese encoding converter

USE_REINPLACE=  yes
USE_GETOPT_LONG=    yes
CFLAGS+=    "${CPPFLAGS}"
MAKE_ENV=   CFLAG="${CPPFLAGS}" LIBS="${LDFLAGS}"
INSTALLS_SHLIB= yes
DATADIR=    ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME}

post-patch:
.for dir in hzconvert contrib/xchat-plugins
    @${REINPLACE_CMD} -e "s|^CFLAGS|#CLFAGS|" ${WRKSRC}/${dir}/Makefile
.endfor

pre-install:
    @${MKDIR} ${DATADIR}
.for i in ChangeLog LICENSE Readme TODO Thanks Version hz.txt procmailrc.example shed.big5 shed.gb shed.uni shed.utf7 shed.utf8
    @${INSTALL_DATA} ${WRKSRC}/$i ${DATADIR}
.endfor

.include <bsd.port.mk>