aboutsummaryrefslogtreecommitdiffstats
path: root/devel/libidn/Makefile
blob: 2fafeca7e13e49b5995c12eac80fb2dcc4b9028f (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
# New ports collection makefile for:    libidn
# Date created:         19.06.2003
# Whom:                 Kirill Ponomarew <ponomarew@oberon.net>
#
# $FreeBSD$
#

PORTNAME=   libidn
PORTVERSION=    0.2.0
CATEGORIES= devel
MASTER_SITES=   ftp://alpha.gnu.org/pub/gnu/${PORTNAME}/ \
        ftp://ftp.funet.fi/pub/mirrors/alpha.gnu.org/gnu/${PORTNAME}/

MAINTAINER= ponomarew@oberon.net
COMMENT=    Internationalized Domain Names command line tool

LIB_DEPENDS=    iconv:${PORTSDIR}/converters/libiconv

USE_LIBTOOL=    yes
GNU_CONFIGURE=  yes
INSTALLS_SHLIB= yes
USE_GETOPT_LONG=    yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LIBS="-L${LOCALBASE}/lib"

.if exists(${LOCALBASE}/bin/emacs)
PLIST_SUB+= EMACS="" EMACSDIR=share/emacs
.elif exists(${LOCALBASE}/bin/xemacs)
PLIST_SUB+= EMACS="" EMACSDIR=lib/xemacs
.else
PLIST_SUB+= EMACS="@comment " EMACSDIR=""
.endif

MAN1=   idn.1

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

.include <bsd.port.mk>