The following commit has been merged in the master branch:
commit ecd1a695dc811ccab162099ad7e208f736e60706
Author: Andres Mejia <[email protected]>
Date:   Sat May 16 17:01:13 2009 -0400

    Patch CMakeLists.txt to install alsoft.conf.

diff --git a/debian/patches/install-alsoft.conf.patch 
b/debian/patches/install-alsoft.conf.patch
new file mode 100644
index 0000000..325c8ed
--- /dev/null
+++ b/debian/patches/install-alsoft.conf.patch
@@ -0,0 +1,27 @@
+Patch to optionally install alsoft.conf file
+==========================================================================
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -37,6 +37,8 @@
+ 
+ OPTION(EXAMPLES  "Build example programs"              ON)
+ 
++OPTION(ALSOFT_CONFIG "Install alsoft.conf configuration file" OFF)
++
+ 
+ IF(WIN32)
+     SET(LIBNAME OpenAL32)
+@@ -407,6 +409,13 @@
+ INSTALL(FILES "${OpenAL_BINARY_DIR}/admin/pkgconfig/openal.pc"
+         DESTINATION "${LIB_INSTALL_DIR}/pkgconfig")
+ 
++# Install alsoft.conf configuration file
++IF(ALSOFT_CONFIG)
++    INSTALL(FILES alsoftrc.sample DESTINATION /etc/openal
++        RENAME alsoft.conf
++    )
++ENDIF()
++
+ IF(EXAMPLES)
+     ADD_EXECUTABLE(openal-info examples/openal-info.c)
+     TARGET_LINK_LIBRARIES(openal-info ${LIBNAME})
diff --git a/debian/patches/series b/debian/patches/series
index f1419b8..f01c0fc 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 static_lib.patch
 alsoftrc-fix.patch
+install-alsoft.conf.patch
diff --git a/debian/rules b/debian/rules
index d4a16dc..0114206 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,6 +13,7 @@ DEB_CMAKE_OPTIONS ?= -DCMAKE_VERBOSE_MAKEFILE=ON \
                -DCMAKE_INSTALL_PREFIX="/usr" \
                -DCMAKE_C_FLAGS="$(DEB_CFLAGS)" \
                -DBUILD_STATIC=ON \
+               -DALSOFT_CONFIG=ON \
                ..
 
 BUILD_TREE=$(CURDIR)/build-tree
@@ -33,7 +34,6 @@ override_dh_auto_build:
 
 override_dh_auto_install:
        $(MAKE) --directory=$(BUILD_TREE) install DESTDIR=$(CURDIR)/debian/tmp
-       install -D -m 0644 alsoftrc.sample debian/tmp/etc/openal/alsoft.conf
        install -D -m 0755 debian/openal-config debian/tmp/usr/bin/openal-config
 
 override_dh_strip:

-- 
Packaging for openal-soft

_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits

Reply via email to