summaryrefslogtreecommitdiff
path: root/security/botan/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'security/botan/Makefile')
-rw-r--r--security/botan/Makefile40
1 files changed, 24 insertions, 16 deletions
diff --git a/security/botan/Makefile b/security/botan/Makefile
index 1932d00671d..3313f5de710 100644
--- a/security/botan/Makefile
+++ b/security/botan/Makefile
@@ -1,31 +1,39 @@
-# $NetBSD: Makefile,v 1.13 2009/08/25 12:32:56 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2009/09/23 16:03:25 jmmv Exp $
-DISTNAME= Botan-1.4.11
-PKGNAME= botan-1.4.11
-PKGREVISION= 1
+DISTNAME= Botan-1.8.7
+PKGNAME= botan-1.8.7
CATEGORIES= security
-MASTER_SITES= http://files.randombit.net/botan/archive/v1.4/
+MASTER_SITES= http://files.randombit.net/botan/archive/v1.8/
EXTRACT_SUFX= .tgz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://botan.randombit.net/
COMMENT= Portable, easy to use, and efficient C++ crypto library
-USE_TOOLS+= perl
+PKG_DESTDIR_SUPPORT= user-destdir
-USE_LANGUAGES= c++
-REPLACE_PERL+= ./configure.pl
-HAS_CONFIGURE= yes
-CONFIG_SHELL= perl
-CONFIGURE_SCRIPT= ./configure.pl
+HAS_CONFIGURE= yes
+REPLACE_PYTHON+= configure.pl
+USE_LANGUAGES= c++
+
+PYTHON_FOR_BUILD_ONLY= yes
+
+CONFIG_SHELL= ${PYTHONBIN}
+CONFIGURE_SCRIPT= ./configure.py
CONFIGURE_ARGS+= --prefix=${PREFIX:Q}
-MAKE_FLAGS+= INSTALL_CMD_EXEC=${INSTALL_PROGRAM:Q}
-MAKE_FLAGS+= INSTALL_CMD_DATA=${INSTALL_DATA:Q}
MAKE_FLAGS+= LIB_OPT=${CXXFLAGS:Q}
-CXXFLAGS.DragonFly+= -D_DRAGONFLY_SOURCE
-CXXFLAGS.NetBSD+= -D_NETBSD_SOURCE
-BUILDLINK_TRANSFORM+= rm:-mcpu=i686
+.if ${MACHINE_ARCH} == "amd64"
+PLIST_SUBST+= AMD64=
+PLIST_SUBST+= AMD64_OR_IA32=
+.elif ${MACHINE_ARCH} == "i386"
+PLIST_SUBST+= AMD64="@comment "
+PLIST_SUBST+= AMD64_OR_IA32=
+.else
+PLIST_SUBST+= AMD64="@comment "
+PLIST_SUBST+= AMD64_OR_IA32="@comment "
+.endif
+.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"