diff options
author | P. J. McDermott <pjm@nac.net> | 2012-11-12 18:28:37 (EST) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-11-12 18:28:37 (EST) |
commit | 1e97bdef471197af3454cefe612624b90624326f (patch) | |
tree | 90db9036a3db615476669042c768ac886cda5efb /build | |
parent | ffee60125950bedb5051cf51a211e309e01f45f6 (diff) |
Add a binutils-locales binary package.
Diffstat (limited to 'build')
-rwxr-xr-x | build | 22 |
1 files changed, 15 insertions, 7 deletions
@@ -17,7 +17,6 @@ configure: # BFD and opcodes libraries. # * Don't enable multilib (multiarch is better). # * Enable plugins. - # * Don't expect to find Gettext. for target in $$(cat ../targets); do \ if [ '$(OPK_HOST_ARCH)' = "$${target}" ]; then \ LIB_PATH="=/usr/local/lib/$${target}=:/usr/local/lib"; \ @@ -33,7 +32,7 @@ configure: --with-sysroot="$${OPK_SYSROOT:-/}" \ --program-transform-name="s&^&$${target}-&" \ --enable-shared --disable-multilib \ - --enable-plugins --disable-nls \ + --enable-plugins \ --with-pkgversion='GNU Binutils for ProteanOS' || \ exit 1; \ done @@ -121,19 +120,28 @@ install: build >"$${ld_so_conf}"; \ done # Move documentation into binutils-doc data directory. - mkdir -p 'binutils-doc.data/usr' + # Move locale files into binutils-locales data directory. + mkdir -p 'binutils-doc.data/usr/share' + mkdir -p 'binutils-locales.data/usr/share' for target in $$(cat ../targets); do \ - if [ ! -d 'binutils-doc.data/usr/share' ]; then \ - mv "binutils-$${target}.data/usr/share" 'binutils-doc.data/usr' || \ + if [ ! -d 'binutils-doc.data/usr/share/man' ]; then \ + mv "binutils-$${target}.data/usr/share/man" 'binutils-doc.data/usr/share' || \ exit 1; \ for file in 'binutils-doc.data/usr/share/man/man1/'*; do \ mv "$${file}" "$${file%/*}/$${file##*/$${target}-}" || \ exit 1; \ done; \ - else \ - rm -Rf "binutils-$${target}.data/usr/share" || \ + fi; \ + if [ ! -d 'binutils-doc.data/usr/share/info' ]; then \ + mv "binutils-$${target}.data/usr/share/info" 'binutils-doc.data/usr/share' || \ exit 1; \ fi; \ + if [ ! -d 'binutils-locales.data/usr/share/locale' ]; then \ + mv "binutils-$${target}.data/usr/share/locale" 'binutils-locales.data/usr/share' || \ + exit 1; \ + fi; \ + rm -Rf "binutils-$${target}.data/usr/share" || \ + exit 1; \ done # Move BFD development files into libbfd-dev-* data directory. for target in $$(cat ../targets); do \ |