aboutsummaryrefslogtreecommitdiffstats
path: root/devel/libidn/Makefile
blob: f36f52eea7d66a31bfaeb4477d7a6e629894f1d0 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# New ports collection makefile for:    libidn
# Date created:         19.06.2003
# Whom:                 Kirill Ponomarew <ponomarew@oberon.net>
#
# $FreeBSD$
#

PORTNAME=   libidn
PORTVERSION=    0.5.0
CATEGORIES= devel
MASTER_SITES=   ${MASTER_SITE_GNU_ALPHA} \
        http://josefsson.org/libidn/releases/
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= krion@FreeBSD.org
COMMENT=    Internationalized Domain Names command line tool

BUILD_DEPENDS=  gengetopt:${PORTSDIR}/devel/gengetopt

USE_GETOPT_LONG=    yes
USE_GNOME=  gnomehack gnometarget
USE_ICONV=  yes
USE_INC_LIBTOOL_VER=    13
USE_PERL5_BUILD=    yes
USE_REINPLACE=  yes
INSTALLS_SHLIB= yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LIBS="-L${LOCALBASE}/lib"

INFO=   libidn

.if !defined(WITHOUT_NLS)
USE_GETTEXT=    yes
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|@image{components}||g' \
        ${WRKSRC}/doc/libidn.texi

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for i in README FAQ
    ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

.include "Makefile.man"
.include <bsd.port.mk>