1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/security/gnutls/Makefile
2003-02-21 13:28:59 +00:00

60 lines
1.5 KiB
Makefile

# New ports collection makefile for: gnutls
# Date created: 13 Nov 2002
# Whom: Sergei Kolobov <sergei@kolobov.com>
#
# $FreeBSD$
#
PORTNAME= gnutls
PORTVERSION= 0.6.0
PORTREVISION= 1
CATEGORIES= security net
MASTER_SITES= ${MASTER_SITE_GNUPG} \
http://www.mirrors.wiretapped.net/security/network-security/gnutls/ \
ftp://ftp.mirrors.wiretapped.net/security/network-security/gnutls/ \
ftp://ftp.gnutls.org/pub/gnutls/
MASTER_SITE_SUBDIR= alpha/gnutls
MAINTAINER= sergei@kolobov.com
COMMENT= GNU Transport Layer Security library
LIB_DEPENDS= gcrypt.6:${PORTSDIR}/security/libgcrypt \
tasn1.0:${PORTSDIR}/security/libtasn1
.if defined(WITH_OPENCDK)
LIB_DEPENDS+= opencdk.5:${PORTSDIR}/security/opencdk
.endif
USE_LIBTOOL= yes
INSTALLS_SHLIB= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
DOCS= AUTHORS NEWS README THANKS
pre-configure:
@${ECHO_MSG} ""
.if defined (WITH_OPENCDK)
@${ECHO_MSG} "Enabled OpenCDK support"
.else
@${ECHO_MSG} "OpenCDK support is disabled by default"
@${ECHO_MSG} "Use WITH_OPENCDK=yes to enable"
.endif
@${ECHO_MSG} ""
post-install:
${RM} -f ${PREFIX}/lib/libgnutls.la ${PREFIX}/lib/libgnutls-extra.la
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/doc/examples/*.c ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
${INSTALL_DATA} ${WRKSRC}/doc/tex/*.ps ${DOCSDIR}
.endif
.include <bsd.port.mk>