[csw-devel] SF.net SVN: gar:[13943] csw/mgar/pkg/libao/trunk/Makefile

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Fri Mar 25 11:09:55 CET 2011


Revision: 13943
          http://gar.svn.sourceforge.net/gar/?rev=13943&view=rev
Author:   dmichelsen
Date:     2011-03-25 10:09:54 +0000 (Fri, 25 Mar 2011)

Log Message:
-----------
libao: Relocate config file and update dependencies

Modified Paths:
--------------
    csw/mgar/pkg/libao/trunk/Makefile

Modified: csw/mgar/pkg/libao/trunk/Makefile
===================================================================
--- csw/mgar/pkg/libao/trunk/Makefile	2011-03-25 09:31:36 UTC (rev 13942)
+++ csw/mgar/pkg/libao/trunk/Makefile	2011-03-25 10:09:54 UTC (rev 13943)
@@ -23,7 +23,10 @@
 PKGFILES_CSWlibao4 += $(call pkgfiles_lib,libao.so.4)
 # These are private libraries
 PKGFILES_CSWlibao4 += $(call baseisadirs,$(libdir),ao/.*)
-RUNTIME_DEP_PKGS_CSWlibao4 += CSWesound
+PKGFILES_CSWlibao4 += $(sysconfdir)/.*
+PKGFILES_CSWlibao4 += $(mandir)/.*
+RUNTIME_DEP_PKGS_CSWlibao4 += CSWlibaudiofile0
+RUNTIME_DEP_PKGS_CSWlibao4 += CSWlibesd0
 OBSOLETES_CSWlibao4 = CSWlibao
 
 PACKAGES += CSWlibao-dev
@@ -32,9 +35,24 @@
 # PKGFILES is catchall
 RUNTIME_DEP_PKGS_CSWlibao-dev = CSWlibao4
 
+# Default is /etc/libao.conf
+LIBAO_CONF = $(sysconfdir)/libao.conf
+EXTRA_CPPFLAGS = -DAO_SYSTEM_CONFIG=\\\"$(LIBAO_CONF)\\\"
+
+PRESERVECONF = $(LIBAO_CONF)
+
 BUILD64 = 1
 CONFIGURE_ARGS = $(DIRPATHS)
 
 TEST_TARGET = check
 
 include gar/category.mk
+
+post-install-modulated:
+	perl -pi -e 's,/etc/libao.conf,$(LIBAO_CONF),;' \
+		$(DESTDIR)$(mandir)/man5/libao.conf.5 \
+		$(DESTDIR)$(docdir)/$(DISTNAME)/config.html
+	mkdir -p $(DESTDIR)$(dir $(LIBAO_CONF))
+	echo "default_driver=sun" > $(DESTDIR)$(LIBAO_CONF).CSW
+	@$(MAKECOOKIE)
+


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list