summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-04-22 21:28:13 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-04-22 21:28:13 (EDT)
commitf4ced4ab6fd3d0fb381ca86c02d1089a7b529e66 (patch)
tree4d107b238d4c3a1a786f144dfd04ba32810ec1e8
parent856b0612097a4f6b9ab0f86332119726786c1e2e (diff)
build: Install package files.
-rwxr-xr-xbuild25
1 files changed, 25 insertions, 0 deletions
diff --git a/build b/build
index 77eb487..f3e182b 100755
--- a/build
+++ b/build
@@ -179,6 +179,31 @@ $(install_targets): build
-exec rm -f '{}' ';'
find $(destdir)/usr/share/info -type f -a -size 0c -a \
-exec rm -f '{}' ';'
+ # TODO: Provide these files in a fixincludes package (arch:any,
+ # target-specific?).
+ rm -Rf $(destdir)/usr/lib/$(target)/gcc-$(base_version)/install-tools/
+ # TODO: Provide these files in a libstdc++-*-dbg package.
+ rm -f $(destdir)/usr/lib/$(target)/libstdc++.so.*-gdb.py
+ rm -Rf $(destdir)/usr/share/gcc-*/python/libstdcxx/
+ # TODO: Provide these files in a doc package.
+ rm -Rf $(destdir)/usr/share/man/ $(destdir)/usr/share/info/
+ # TODO: Provide these files in a gcc-*-plugin-dev package.
+ rm -Rf $(destdir)/usr/lib/$(target)/gcc-$(base_version)/plugin/
+ OPK_PACKAGES="\
+ gcc-$(base_version)-$(target) \
+ cpp-$(base_version)-$(target) \
+ g++-$(base_version)-$(target) \
+ "; \
+ if [ "x$(target)" = 'x$(OPK_HOST_ARCH)' ]; then \
+ OPK_PACKAGES="$${OPK_PACKAGES} \
+ libgcc.1 \
+ libstdc++.6 \
+ libstdc++.6-$(base_version)-dev \
+ gcc-$(base_version)-locales \
+ "; \
+ fi; \
+ export OPK_PACKAGES; \
+ oh-installfiles -d "$(destdir)"
install: $(install_targets)