diff options
author | doko <doko@6ca36cf4-e1d1-0310-8c6f-e303bb2178ca> | 2012-11-13 21:43:03 +0000 |
---|---|---|
committer | doko <doko@6ca36cf4-e1d1-0310-8c6f-e303bb2178ca> | 2012-11-13 21:43:03 +0000 |
commit | 68e77b94805caad0d92a7fddda50a7a6cbd25034 (patch) | |
tree | 81d2bab4787bc262f1c1901eb39046d4371f830f /debian/rules.d/binary-libstdcxx.mk | |
parent | 4076d8331ed61a5ecdacd3e20dd3ecc554057792 (diff) | |
download | gcc-47-68e77b94805caad0d92a7fddda50a7a6cbd25034.tar.gz |
* Split out lib*stdc++-dev packages.
git-svn-id: svn://svn.debian.org/svn/gcccvs/branches/sid/gcc-4.7@6219 6ca36cf4-e1d1-0310-8c6f-e303bb2178ca
Diffstat (limited to 'debian/rules.d/binary-libstdcxx.mk')
-rw-r--r-- | debian/rules.d/binary-libstdcxx.mk | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/debian/rules.d/binary-libstdcxx.mk b/debian/rules.d/binary-libstdcxx.mk index 7d73555..2b27c51 100644 --- a/debian/rules.d/binary-libstdcxx.mk +++ b/debian/rules.d/binary-libstdcxx.mk @@ -4,36 +4,54 @@ ifeq ($(with_libcxx),yes) endif ifeq ($(with_lib64cxx),yes) $(lib_binaries) += lib64stdcxx + ifeq ($(with_cxxdev),yes) + $(lib_binaries) += lib64stdcxx-dev + endif endif ifeq ($(with_lib64cxxdbg),yes) $(lib_binaries) += lib64stdcxxdbg endif ifeq ($(with_lib32cxx),yes) $(lib_binaries) += lib32stdcxx + ifeq ($(with_cxxdev),yes) + $(lib_binaries) += lib32stdcxx-dev + endif endif ifeq ($(with_lib32cxxdbg),yes) $(lib_binaries) += lib32stdcxxdbg endif ifeq ($(with_libn32cxx),yes) $(lib_binaries) += libn32stdcxx + ifeq ($(with_cxxdev),yes) + $(lib_binaries) += libn32stdcxx-dev + endif endif ifeq ($(with_libn32cxxdbg),yes) $(lib_binaries) += libn32stdcxxdbg endif ifeq ($(with_libx32cxx),yes) $(lib_binaries) += libx32stdcxx + ifeq ($(with_cxxdev),yes) + $(lib_binaries) += libx32stdcxx-dev + endif endif ifeq ($(with_libx32cxxdbg),yes) $(lib_binaries) += libx32stdcxxdbg endif ifeq ($(with_libhfcxx),yes) $(lib_binaries) += libhfstdcxx + ifeq ($(with_cxxdev),yes) + $(lib_binaries) += libhfstdcxx-dev + endif endif ifeq ($(with_libhfcxxdbg),yes) $(lib_binaries) += libhfstdcxxdbg endif ifeq ($(with_libsfcxx),yes) $(lib_binaries) += libsfstdcxx + ifeq ($(with_cxxdev),yes) + $(lib_binaries) += libsfstdcxx-dev + endif endif ifeq ($(with_libsfcxxdbg),yes) $(lib_binaries) += libsfstdcxxdbg @@ -234,8 +252,41 @@ define __do_libstdcxx_dbg trap '' 1 2 3 15; touch $@; mv $(install_stamp)-tmp $(install_stamp) endef +define __do_libstdcxx_dev + dh_testdir + dh_testroot + mv $(install_stamp) $(install_stamp)-tmp + + mv $(d)/$(usr_lib$(2))/libstdc++.a $(d)/$(usr_lib$(2))/libsupc++.a \ + $(d)/$(gcc_lib_dir$(2))/ + + rm -rf $(d_l) + dh_installdirs -p$(p_l) $(gcc_lib_dir$(2)) + + DH_COMPAT=2 dh_movefiles -p$(p_l) \ + $(gcc_lib_dir$(2))/libstdc++.a \ + $(gcc_lib_dir$(2))/libsupc++.a \ + $(PF)/include/$(DEB_HOST_MULTIARCH)/c++/$(BASE_VERSION)/$(2) + $(call install_gcc_lib,libstdc++,$(CXX_SONAME),$(2),$(p_l)) + + debian/dh_doclink -p$(p_l) $(p_base) + debian/dh_rmemptydirs -p$(p_l) + + dh_strip -p$(p_l) + dh_compress -p$(p_l) + dh_fixperms -p$(p_l) + dh_shlibdeps -p$(p_l) + dh_gencontrol -p$(p_l) -- -v$(DEB_VERSION) $(common_substvars) + dh_installdeb -p$(p_l) + dh_md5sums -p$(p_l) + dh_builddeb -p$(p_l) + + trap '' 1 2 3 15; touch $@; mv $(install_stamp)-tmp $(install_stamp) +endef + do_libstdcxx = $(call __do_libstdcxx,lib$(1)stdc++$(CXX_SONAME),$(1)) do_libstdcxx_dbg = $(call __do_libstdcxx_dbg,lib$(1)stdc++$(CXX_SONAME)$(libstdc_ext),$(1)) +do_libstdcxx_dev = $(call __do_libstdcxx_dev,lib$(1)stdc++$(CXX_SONAME)-$(BASE_VERSION)-dev,$(1)) # ---------------------------------------------------------------------- $(binary_stamp)-libstdcxx: $(install_stamp) @@ -277,6 +328,24 @@ $(binary_stamp)-libhfstdcxxdbg: $(install_stamp) $(binary_stamp)-libsfstdcxxdbg: $(install_stamp) $(call do_libstdcxx_dbg,sf) +$(binary_stamp)-lib64stdcxx-dev: $(install_stamp) + $(call do_libstdcxx_dev,64) + +$(binary_stamp)-lib32stdcxx-dev: $(install_stamp) + $(call do_libstdcxx_dev,32) + +$(binary_stamp)-libn32stdcxx-dev: $(install_stamp) + $(call do_libstdcxx_dev,n32) + +$(binary_stamp)-libx32stdcxx-dev: $(install_stamp) + $(call do_libstdcxx_dev,x32) + +$(binary_stamp)-libhfstdcxx-dev: $(install_stamp) + $(call do_libstdcxx_dev,hf) + +$(binary_stamp)-libsfstdcxx-dev: $(install_stamp) + $(call do_libstdcxx_dev,sf) + # ---------------------------------------------------------------------- libcxxdev_deps = $(install_stamp) ifeq ($(with_libcxx),yes) |