freebsd-ports/security/gnutls/Makefile
Norikatsu Shigemura 2fcea17417 - Add a knob for OpenCDK support (WITH_OPENCDK=yes), disabled by default
- Bump PORTREVISION - although there are no changes with the default options,
  hint users to upgrade to take advantage of OpenCDK support
- Re-sort MASTER_SITES (ftp.gnutls.org is temporarily unavailable)
- Allow user to specify their own CPPFLAGS and LDFLAGS
- Remove useless .la files
- Re-sort pkg-plist

PR:		ports/47525
Submitted by:	Sergei Kolobov <sergei@kolobov.com> (maintainer)
2003-01-28 22:12:42 +00:00

58 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= http://gd.tuwien.ac.at/privacy/gnupg/alpha/gnutls/ \
http://www.mirrors.wiretapped.net/security/network-security/gnutls/ \
ftp://ftp.gnupg.org/pub/gcrypt/alpha/gnutls/ \
ftp://ftp.mirrors.wiretapped.net/security/network-security/gnutls/ \
ftp://ftp.gnutls.org/pub/gnutls/
MAINTAINER= sergei@kolobov.com
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>