diff options
author | nork <nork@FreeBSD.org> | 2003-01-28 22:12:42 +0000 |
---|---|---|
committer | nork <nork@FreeBSD.org> | 2003-01-28 22:12:42 +0000 |
commit | 0b84966b32c06a07ce8fb248a74c0f29f5210d01 (patch) | |
tree | 97e0f1319fc00e0420ab8105a6cffb66a29696f4 | |
parent | 6a3ec5464aedd670a24e34192d724763011f2a1b (diff) | |
download | FreeBSD-ports-0b84966b32c06a07ce8fb248a74c0f29f5210d01.zip FreeBSD-ports-0b84966b32c06a07ce8fb248a74c0f29f5210d01.tar.gz |
- 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)
-rw-r--r-- | security/gnutls-devel/Makefile | 29 | ||||
-rw-r--r-- | security/gnutls-devel/pkg-plist | 6 | ||||
-rw-r--r-- | security/gnutls/Makefile | 29 | ||||
-rw-r--r-- | security/gnutls/pkg-plist | 6 |
4 files changed, 50 insertions, 20 deletions
diff --git a/security/gnutls-devel/Makefile b/security/gnutls-devel/Makefile index c961bbb..4bf0a73 100644 --- a/security/gnutls-devel/Makefile +++ b/security/gnutls-devel/Makefile @@ -7,27 +7,44 @@ PORTNAME= gnutls PORTVERSION= 0.6.0 +PORTREVISION= 1 CATEGORIES= security net MASTER_SITES= http://gd.tuwien.ac.at/privacy/gnupg/alpha/gnutls/ \ - ftp://ftp.gnutls.org/pub/gnutls/ \ - ftp://ftp.gnupg.org/pub/gcrypt/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:${PORTSDIR}/security/libgcrypt \ - tasn1:${PORTSDIR}/security/libtasn1 +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} -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ - LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt" 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) diff --git a/security/gnutls-devel/pkg-plist b/security/gnutls-devel/pkg-plist index c3259e0..7df653a 100644 --- a/security/gnutls-devel/pkg-plist +++ b/security/gnutls-devel/pkg-plist @@ -1,9 +1,9 @@ -bin/libgnutls-config -bin/libgnutls-extra-config bin/gnutls-serv bin/gnutls-cli bin/gnutls-srpcrypt bin/gnutls-cli-debug +bin/libgnutls-config +bin/libgnutls-extra-config include/gnutls/extra.h include/gnutls/compat4.h include/gnutls/openssl.h @@ -11,11 +11,9 @@ include/gnutls/gnutls.h @dirrm include/gnutls lib/libgnutls.so.7 lib/libgnutls.so -lib/libgnutls.la lib/libgnutls.a lib/libgnutls-extra.so.7 lib/libgnutls-extra.so -lib/libgnutls-extra.la lib/libgnutls-extra.a share/aclocal/libgnutls.m4 share/aclocal/libgnutls-extra.m4 diff --git a/security/gnutls/Makefile b/security/gnutls/Makefile index c961bbb..4bf0a73 100644 --- a/security/gnutls/Makefile +++ b/security/gnutls/Makefile @@ -7,27 +7,44 @@ PORTNAME= gnutls PORTVERSION= 0.6.0 +PORTREVISION= 1 CATEGORIES= security net MASTER_SITES= http://gd.tuwien.ac.at/privacy/gnupg/alpha/gnutls/ \ - ftp://ftp.gnutls.org/pub/gnutls/ \ - ftp://ftp.gnupg.org/pub/gcrypt/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:${PORTSDIR}/security/libgcrypt \ - tasn1:${PORTSDIR}/security/libtasn1 +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} -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ - LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt" 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) diff --git a/security/gnutls/pkg-plist b/security/gnutls/pkg-plist index c3259e0..7df653a 100644 --- a/security/gnutls/pkg-plist +++ b/security/gnutls/pkg-plist @@ -1,9 +1,9 @@ -bin/libgnutls-config -bin/libgnutls-extra-config bin/gnutls-serv bin/gnutls-cli bin/gnutls-srpcrypt bin/gnutls-cli-debug +bin/libgnutls-config +bin/libgnutls-extra-config include/gnutls/extra.h include/gnutls/compat4.h include/gnutls/openssl.h @@ -11,11 +11,9 @@ include/gnutls/gnutls.h @dirrm include/gnutls lib/libgnutls.so.7 lib/libgnutls.so -lib/libgnutls.la lib/libgnutls.a lib/libgnutls-extra.so.7 lib/libgnutls-extra.so -lib/libgnutls-extra.la lib/libgnutls-extra.a share/aclocal/libgnutls.m4 share/aclocal/libgnutls-extra.m4 |