summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2004-03-01 19:12:25 +0000
committerwiz <wiz@pkgsrc.org>2004-03-01 19:12:25 +0000
commit5b42d2b843b8f31c0f1cbf973d254664c33f715f (patch)
tree253dc47017328f1eb97b736499164b3e5186daa2 /security
parent1f5a56ec40bc2096476a8558aab5052e24dac540 (diff)
downloadpkgsrc-5b42d2b843b8f31c0f1cbf973d254664c33f715f.tar.gz
Make build on m68kelf, and honour M68060 variable for quite a bit
of speedup on m68060 machines. From S.P. Zeidler in PR 24579.
Diffstat (limited to 'security')
-rw-r--r--security/gnupg/Makefile10
-rw-r--r--security/gnupg/distinfo3
-rw-r--r--security/gnupg/patches/patch-ab19
3 files changed, 29 insertions, 3 deletions
diff --git a/security/gnupg/Makefile b/security/gnupg/Makefile
index 18bf1d62647..ee9479a305b 100644
--- a/security/gnupg/Makefile
+++ b/security/gnupg/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.60 2004/02/08 01:00:13 kleink Exp $
+# $NetBSD: Makefile,v 1.61 2004/03/01 19:12:25 wiz Exp $
DISTNAME= gnupg-1.2.4
PKGREVISION= 1
@@ -33,7 +33,7 @@ INFO_FILES= gpg.info gpgv.info
.include "../../mk/bsd.prefs.mk"
-BUILD_DEFS+= USE_I586 USE_IDEA USE_OPENLDAP
+BUILD_DEFS+= USE_I586 USE_IDEA USE_OPENLDAP M68060
.if defined(USE_I586) && ${USE_I586} == YES
# use assembler routines optimized for i586
@@ -41,6 +41,12 @@ ONLY_FOR_PLATFORM= *-*-i386
MACHINE_GNU_ARCH= i586
.endif
+.if defined(M68060) && ${M68060} == YES
+# be more efficient on M68060 machines
+CONFIGURE_ENV+= M68060=${M68060}
+CFLAGS+= -m68060
+.endif
+
.if defined(USE_IDEA) && ${USE_IDEA} == YES
# use of IDEA as crypto function
LICENCE= fee-based-commercial-use
diff --git a/security/gnupg/distinfo b/security/gnupg/distinfo
index f941dbdbefd..4f39de532d0 100644
--- a/security/gnupg/distinfo
+++ b/security/gnupg/distinfo
@@ -1,10 +1,11 @@
-$NetBSD: distinfo,v 1.25 2003/12/25 14:05:02 wiz Exp $
+$NetBSD: distinfo,v 1.26 2004/03/01 19:12:25 wiz Exp $
SHA1 (gnupg-1.2.4.tar.bz2) = 10972d11aeb9f88369557f351f0e9d95542e778b
Size (gnupg-1.2.4.tar.bz2) = 2377277 bytes
SHA1 (idea.c.gz) = 82fded4ec31b97b3b2dd22741880b67cfee40f84
Size (idea.c.gz) = 5216 bytes
SHA1 (patch-aa) = 3babbdc4386f0edaed4a6e1bb851312528d6ff9e
+SHA1 (patch-ab) = 074bdc631b1558d11b4b640ea3aa6a9be04a9368
SHA1 (patch-ac) = bf663caa3d7f9b9bb8c4b3f698038efc0683f9cd
SHA1 (patch-ad) = fc9e85c88e53738faa47f55b769e98dce2c190dc
SHA1 (patch-ae) = 287a24a881d6886e8a6be5f2826ffa2ea85aadbf
diff --git a/security/gnupg/patches/patch-ab b/security/gnupg/patches/patch-ab
new file mode 100644
index 00000000000..cf7ba875a60
--- /dev/null
+++ b/security/gnupg/patches/patch-ab
@@ -0,0 +1,19 @@
+$NetBSD: patch-ab,v 1.22 2004/03/01 19:12:25 wiz Exp $
+
+--- mpi/config.links.orig Wed Dec 3 11:10:16 2003
++++ mpi/config.links
+@@ -200,6 +200,14 @@ case "${target}" in
+ cat $srcdir/mpi/m68k/syntax.h >>./mpi/asm-syntax.h
+ path="m68k"
+ ;;
++ m68k*-*-netbsdelf)
++ echo '#define ELF_SYNTAX' >>./mpi/asm-syntax.h
++ cat $srcdir/mpi/m68k/syntax.h >>./mpi/asm-syntax.h
++ path="m68k"
++ if ! test x$M68060 = xYES; then
++ path="m68k/mc68020 m68k"
++ fi
++ ;;
+ m68k-atari-mint)
+ echo '#define MIT_SYNTAX' >>./mpi/asm-syntax.h
+ cat $srcdir/mpi/m68k/syntax.h >>./mpi/asm-syntax.h