aboutsummaryrefslogtreecommitdiffstats
path: root/dns/idnkit/Makefile
blob: 3f5831ce75ad2d9fb6a0af0b7737a800d02266d7 (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: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$

PORTNAME=   idnkit
PORTVERSION=    1.0
PORTREVISION=   5
CATEGORIES= dns
MASTER_SITES=   http://www.nic.ad.jp/ja/idn/idnkit/download/sources/
DISTNAME=   ${PORTNAME}-${PORTVERSION}-src

MAINTAINER= ports@FreeBSD.org
COMMENT=    Library to handle internationalized domain names

USES=       iconv libtool
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= ${ICONV_CONFIGURE_BASE} \
        --enable-runidn \
        --enable-extra-ace

USE_LDCONFIG=   yes

OPTIONS_DEFINE= DOCS

post-patch:
    @${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
        's|mode=link $$(LD)|mode=link $$(CC)|'

post-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}/ja
    (cd ${WRKSRC} && ${INSTALL_DATA} ChangeLog NEWS README \
        ${STAGEDIR}${DOCSDIR})
    ${INSTALL_DATA} ${WRKSRC}/README.ja ${STAGEDIR}${DOCSDIR}/ja
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so

.include <bsd.port.mk>