]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Add implicit dependencies for development packages.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 2 Sep 2010 21:59:27 +0000 (23:59 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 2 Sep 2010 21:59:27 +0000 (23:59 +0200)
If you are building a package which has headers that depend on
other headers, they will be included here.

References #53.

pkgs/Templates [new file with mode: 0644]

diff --git a/pkgs/Templates b/pkgs/Templates
new file mode 100644 (file)
index 0000000..5d398d8
--- /dev/null
@@ -0,0 +1,37 @@
+
+###############################################################################
+#
+# Template definitions of the naoki build system
+#
+###############################################################################
+
+
+###############################################################################
+# Devel template
+###############################################################################
+
+PKG_DESCRIPTION-$(PKG_NAME_REAL)-devel = Development files of $(THISAPP).
+PKG_SUMMARY-$(PKG_NAME_REAL)-devel = $(PKG_DESCRIPTION-$(PKG_NAME_REAL)-devel)
+
+PKG_DEPS-$(PKG_NAME_REAL)-devel = $(foreach dep,$(PKG_BUILD_DEPS),$(if $(findstring -devel,$(dep)),$(dep)))
+
+define PKG_FILES-$(PKG_NAME_REAL)-devel
+       /usr/bin/*-config
+       /usr/include
+       /usr/lib/pkgconfig
+       /usr/share/aclocal
+       */lib/*.so
+endef
+
+
+###############################################################################
+# Library template
+###############################################################################
+
+PKG_DESCRIPTION-$(PKG_NAME_REAL)-libs  = Library files of $(THISAPP).
+PKG_SUMMARY-$(PKG_NAME_REAL)-libs = $(PKG_DESCRIPTION-$(PKG_NAME_REAL)-libs)
+
+define PKG_FILES-$(PKG_NAME_REAL)-libs
+       /lib/lib*.so.*
+       /usr/lib/lib*.so.*
+endef