aboutsummaryrefslogtreecommitdiffstats
path: root/security/shishi/Makefile
blob: 8000eb457e0f2b76b9e5a4fda2249363d42ba422 (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
# $FreeBSD$

PORTNAME=   shishi
PORTVERSION=    1.0.2
PORTREVISION=   9
CATEGORIES= security
MASTER_SITES=   GNU

MAINTAINER= johans@FreeBSD.org
COMMENT=    Free implementation of the Kerberos 5 network security system

LIB_DEPENDS=    libidn.so:${PORTSDIR}/dns/libidn \
        libtasn1.so:${PORTSDIR}/security/libtasn1 \
        libgcrypt.so:${PORTSDIR}/security/libgcrypt \
        libgnutls.so:${PORTSDIR}/security/gnutls

USES=       iconv libtool makeinfo pathfix perl5 pkgconfig
USE_LDCONFIG=   yes
USE_PERL5=  build
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-db-dir=/var/shishi
MAKE_ENV=   MAKEINFOFLAGS=--no-split
INSTALL_TARGET= install-strip

OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB=    yes
NLS_USES=   gettext
NLS_CONFIGURE_ENABLE=   nls

INFO=       shishi

SUB_FILES=  pkg-message

CPPFLAGS+=  -I${LOCALBASE}/include
LIBS+=      -L${LOCALBASE}/lib

post-extract:
    @${RM} -f ${WRKSRC}/doc/shishi.info*
    @cd ${WRKSRC}/db/gl && ${LN} -s ../../build-aux/link-warning.h

post-patch:
    @${REINPLACE_CMD} -e 's/$$(LINK_WARNING_H)/link-warning.h/' \
        ${WRKSRC}/db/gl/Makefile.in
    @${REINPLACE_CMD} -e 's:\.\./gl/libgnu.la:../db/gl/libgnu.la &:' \
        ${WRKSRC}/src/Makefile.in
    @${REINPLACE_CMD} -e '/^AM_CPPFLAGS/s:-I[^ ]*/gl ::g' \
        ${WRKSRC}/examples/Makefile.in

.include <bsd.port.mk>