summaryrefslogtreecommitdiff
path: root/archivers/dar
diff options
context:
space:
mode:
authordsainty <dsainty>2006-07-08 07:09:34 +0000
committerdsainty <dsainty>2006-07-08 07:09:34 +0000
commit430e16ab1dc86a1b6b8ff3154887cf7cb3315ea3 (patch)
treea8364d7a3dc31e598ea2aed82e2f700b36919ac4 /archivers/dar
parente76b64adde88b178d8df622048a9f78d27d1193c (diff)
downloadpkgsrc-430e16ab1dc86a1b6b8ff3154887cf7cb3315ea3.tar.gz
Add support for dar-int32 and dar-int64 package options.
Dar is built by default with an arbitrary-size-integer library for managing all file length/timestamp details. If 32-bit or 64-bit integers (with overflow protection) are sufficient for requirements, the dar-int32 and dar-int64 options can significantly reduce the run-time memory and CPU overheads of Dar. Leave the default unchanged (thus no package version bump).
Diffstat (limited to 'archivers/dar')
-rw-r--r--archivers/dar/Makefile19
1 files changed, 18 insertions, 1 deletions
diff --git a/archivers/dar/Makefile b/archivers/dar/Makefile
index 0664c2c88cd..6f44574cb11 100644
--- a/archivers/dar/Makefile
+++ b/archivers/dar/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2006/05/26 10:10:08 adam Exp $
+# $NetBSD: Makefile,v 1.22 2006/07/08 07:09:34 dsainty Exp $
DISTNAME= dar-2.3.0
CATEGORIES= archivers sysutils
@@ -20,6 +20,23 @@ CONFIGURE_ARGS+= --disable-nodump-flag
CONFIGURE_ARGS+= --disable-upx
CONFIGURE_ARGS+= --enable-examples
+PKG_OPTIONS_VAR= PKG_OPTIONS.dar
+PKG_SUPPORTED_OPTIONS= dar-int32 dar-int64
+PKG_SUGGESTED_OPTIONS=
+
+.include "../../mk/bsd.options.mk"
+
+# Dar is built by default with an arbitrary-size-integer library for
+# managing all file length/timestamp details. If 32-bit or 64-bit
+# integers (with overflow protection) are sufficient for requirements,
+# the following options can significantly reduce the run-time memory
+# and CPU overheads of Dar.
+.if !empty(PKG_OPTIONS:Mdar-int64)
+CONFIGURE_ARGS+= --enable-mode=64
+.elif !empty(PKG_OPTIONS:Mdar-int32)
+CONFIGURE_ARGS+= --enable-mode=32
+.endif
+
PKGCONFIG_OVERRIDE= src/libdar/libdar.pc.tmpl.in
UNLIMIT_RESOURCES= datasize