aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/autoconvert/Makefile
blob: e148d790537574f81c0eb15cb01cc0066530847a (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
# Created by: Yin-Jieh Chen <yinjieh@csie.nctu.edu.tw>
# $FreeBSD$

PORTNAME=   autoconvert
PORTVERSION=    0.3.16
PORTREVISION=   5
CATEGORIES= chinese
MASTER_SITES=   GOOGLE_CODE
PROJECTHOST=    libhz
DISTNAME=   ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Intelligent Chinese encoding converter

LICENSE=    GPLv2 GPLv3
LICENSE_COMB=   dual

OPTIONS_DEFINE= DOCS

MAKE_JOBS_UNSAFE=   yes
USE_LDCONFIG=   yes
WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

post-patch:
    @${REINPLACE_CMD} -e 's|CFLAG|CFLAGS|' -e 's|make|$$(MAKE)|' \
        ${WRKSRC}/Makefile
    @${REINPLACE_CMD} -e 's|gcc|${CC}|' -e 's|LIBS=|&${LDFLAGS} |' \
        -e 's|CFLAGS=|&${CPPFLAGS} ${CFLAGS} |' \
        ${WRKSRC}/Makefile ${WRKSRC}/hzconvert/Makefile

post-install:
    ${MKDIR} ${STAGEDIR}${DOCSDIR}/
    cd ${WRKSRC}/ && ${INSTALL_DATA} ChangeLog Readme TODO Thanks Version ${STAGEDIR}${DOCSDIR}/

.include <bsd.port.mk>