diff options
-rw-r--r-- | binutils-locales.pkg/control | 6 | ||||
-rwxr-xr-x | build | 22 | ||||
-rw-r--r-- | control | 2 |
3 files changed, 22 insertions, 8 deletions
diff --git a/binutils-locales.pkg/control b/binutils-locales.pkg/control new file mode 100644 index 0000000..ccc5a0d --- /dev/null +++ b/binutils-locales.pkg/control @@ -0,0 +1,6 @@ +Architecture: all +Platform: all +Depends: binutils-common (= ${Binary-Version}) +Description: GNU binary utilities - locales + This package provides native language support for the GNU assembler, linker, + and various other utilities for manipulating binary files. @@ -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 \ @@ -1,3 +1,3 @@ Maintainer: "P. J. McDermott" <pjm@nac.net> -Build-Depends: libz-dev, opkhelper-3.0 +Build-Depends: libz-dev, opkhelper-3.0, gettext Homepage: https://www.gnu.org/software/binutils/ |