[csw-devel] SF.net SVN: gar:[13653] csw/mgar/gar/v2/gar.pkg.mk
dmichelsen at users.sourceforge.net
dmichelsen at users.sourceforge.net
Mon Mar 7 19:32:15 CET 2011
Revision: 13653
http://gar.svn.sourceforge.net/gar/?rev=13653&view=rev
Author: dmichelsen
Date: 2011-03-07 18:32:15 +0000 (Mon, 07 Mar 2011)
Log Message:
-----------
mGAR v2: Allow finegrained adjustment of PKGFILES_DEVEL and add pkgfiles_lib
Modified Paths:
--------------
csw/mgar/gar/v2/gar.pkg.mk
Modified: csw/mgar/gar/v2/gar.pkg.mk
===================================================================
--- csw/mgar/gar/v2/gar.pkg.mk 2011-03-07 18:24:00 UTC (rev 13652)
+++ csw/mgar/gar/v2/gar.pkg.mk 2011-03-07 18:32:15 UTC (rev 13653)
@@ -322,15 +322,29 @@
# PKGFILES_RT selects files belonging to a runtime package
PKGFILES_RT += $(call baseisadirs,$(libdir),[^/]*\.so\.\d+(\.\d+)*)
+# PKGFILES_LIB selects just one library. The '.' will be escaped automatically!
+# Use PKGFILES_CSWlibfoo1 = $(call pkgfiles_lib,libfoo.so.1)
+pkgfiles_lib += $(call baseisadirs,$(libdir),$(subst .,\.,$(1))(\.\d+)*)
+
# PKGFILES_DEVEL selects files belonging to a developer package
-PKGFILES_DEVEL += $(call baseisadirs,$(bindir),[^/]*-config)
-PKGFILES_DEVEL += $(call baseisadirs,$(libdir),[^/]*\.so)
-PKGFILES_DEVEL += $(call baseisadirs,$(libdir),[^/]*\.(a|la))
-PKGFILES_DEVEL += $(call baseisadirs,$(libdir),pkgconfig(/.*)?)
-PKGFILES_DEVEL += $(includedir)/.*
-PKGFILES_DEVEL += $(sharedstatedir)/aclocal/.*
-PKGFILES_DEVEL += $(mandir)/man1/.*-config\.1.*
-PKGFILES_DEVEL += $(mandir)/man3/.*\.3
+PKGFILES_DEVEL_CONFIG ?= $(call baseisadirs,$(bindir),[^/]*-config)
+PKGFILES_DEVEL += $(PKGFILES_DEVEL_CONFIG)
+PKGFILES_DEVEL_SHAREDLIBLINK ?= $(call baseisadirs,$(libdir),[^/]*\.so)
+PKGFILES_DEVEL += $(PKGFILES_DEVEL_SHAREDLIBLINK)
+PKGFILES_DEVEL_STATICLIB ?= $(call baseisadirs,$(libdir),[^/]*\.a)
+PKGFILES_DEVEL += $(PKGFILES_DEVEL_STATICLIB)
+PKGFILES_DEVEL_LIBTOOL ?= $(call baseisadirs,$(libdir),[^/]*\.la)
+PKGFILES_DEVEL += $(PKGFILES_DEVEL_LIBTOOL)
+PKGFILES_DEVEL_PKGCONFIG ?= $(call baseisadirs,$(libdir),pkgconfig(/.*)?)
+PKGFILES_DEVEL += $(PKGFILES_DEVEL_PKGCONFIG)
+PKGFILES_DEVEL_INCLUDEDIR ?= $(includedir)/.*
+PKGFILES_DEVEL += $(PKGFILES_DEVEL_INCLUDEDIR)
+PKGFILES_DEVEL_ACLOCAL ?= $(sharedstatedir)/aclocal/.*
+PKGFILES_DEVEL += $(PKGFILES_DEVEL_ACLOCAL)
+PKGFILES_DEVEL_CONFIG_MANPAGE ?= $(mandir)/man1/.*-config\.1.*
+PKGFILES_DEVEL += $(PKGFILES_DEVEL_CONFIG_MANPAGE)
+PKGFILES_DEVEL_MAN3_MANPAGE ?= $(mandir)/man3/.*\.3
+PKGFILES_DEVEL += $(PKGFILES_DEVEL_MAN3_MANPAGE)
# PKGFILES_DOC selects files beloging to a documentation package
PKGFILES_DOC = $(docdir)/.*
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