Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=c75c2bb32d11703d59ba4d95092643bf9fb17a5c

commit c75c2bb32d11703d59ba4d95092643bf9fb17a5c
Author: Michel Hermier <herm...@frugalware.org>
Date:   Tue Jun 9 14:02:13 2009 +0200

configure.ac

* Allow to change default package extension and compression at configure
time.

diff --git a/configure.ac b/configure.ac
index 9caec18..2f392f6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -129,6 +129,18 @@ AC_SUBST(CARCH)
AC_SUBST(CARCHFLAGS)
AC_SUBST(CHOST)

+dnl Default package file extension
+AC_ARG_WITH([package-extension],
+       [AS_HELP_STRING([--with-package-extension=<extension>], [define the 
default package extension (default: fpm)])],
+       [PKG_EXT="$withval"], [PKG_EXT="fpm"])
+AC_SUBST(PKG_EXT)
+
+dnl Default package file compression
+AC_ARG_WITH([package-compression],
+       [AS_HELP_STRING([--with-package-compression=<compression>], [define the 
default package compression (default: bzip2)])],
+       [PKG_COMP="$withval"], [PKG_COMP="bzip2"])
+AC_SUBST(PKG_COMP)
+
dnl Build with Werror
AC_ARG_ENABLE(werror,
AC_HELP_STRING([--enable-werror], [Enable building with Werror]),
@@ -447,6 +459,9 @@ pacman-g2-$VERSION:
Architecture used cflag : ${CARCHFLAGS}
Architecture CHOST      : ${CHOST}

+       Default package extension       : ${PKG_EXT}
+       Default package compression     : ${PKG_COMP}
+
Doxygen support         : ${DOXYSTATUS}
Manpages                : ${ASCIISTATUS}
Manpage localization    : ${POSTATUS}
diff --git a/etc/makepkg.conf.in b/etc/makepkg.conf.in
index b8910a3..4de9c97 100644
--- a/etc/makepkg.conf.in
+++ b/etc/makepkg.conf.in
@@ -27,7 +27,10 @@ export CXXFLAGS="@CARCHFLAGS@ -O2 -pipe"
export BUILDSCRIPT="FrugalBuild"

# Package extension
-export PKG_EXT="fpm"
+export PKG_EXT="@PKG_EXT@"
+
+# Package compression
+export PKG_COMP="@PKG_COMP@"

# Database extension
export DB_EXT="fdb"
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to