From 581287188526de282d27f2fae1b434db7b1e892a Mon Sep 17 00:00:00 2001 From: "Tom G. Christensen" Date: Sun, 11 Apr 2004 20:46:22 +0000 Subject: [PATCH] Make default ./configure args configurable. Add another command --- buildpkg.functions | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/buildpkg.functions b/buildpkg.functions index 0e90360..9f50b45 100644 --- a/buildpkg.functions +++ b/buildpkg.functions @@ -58,6 +58,7 @@ CMP=/bin/cmp GREP=/bin/grep UNIQ=/bin/uniq BASENAME=/bin/basename +DIRNAME=/bin/dirname TR=/bin/tr # Groff stuff for manpages @@ -81,6 +82,9 @@ srcfiles=$buildpkgbase/srcfiles topinstalldir=/usr/local prefix=$topinstalldir +# Keep this in hard-quotes to delay expansion +configure_args='--prefix=$prefix --disable-nls' + # Docdir relative to $prefix _docdir=doc # Other relative dirs @@ -453,7 +457,7 @@ generic_build() { setdir source - ./configure --prefix=$prefix --disable-nls + ./configure $(_upls $configure_args) if [ $? -ne 0 ]; then error $E_BAD_CONFIG generic_build fi