Line 1: |
Line 1: |
− | Welcome to Simone Giustetti's wiki pages.
| + | {{header_en|title=Building a K3b localization package for TDE| keyword={{Template:keyword_en_tde}}| description=Building, installing and configuring a working K3b localization package for TDE and Slackware Linux | link_page=TDE_k3b-i18n}} |
− | | |
− | | |
− | Languages: '''English''' - [http://www.giustetti.net/wiki/index.php?title=TDE_k3b-i18n Italiano]
| |
− | | |
− | ----
| |
| | | |
| == K3B-I18N == | | == K3B-I18N == |
− | [[En/trinity_desktop_environment#Applications]] | + | [[En/trinity_desktop_environment#Applications | TDE - Applications]] |
| | | |
| The package includes the localization files for '''K3b''' in other words the program translation to languages other then English, the default '''Trinity Desktop Environment''' one. The '''k3b-i18n''' package includes files for more than 50 different languages. | | The package includes the localization files for '''K3b''' in other words the program translation to languages other then English, the default '''Trinity Desktop Environment''' one. The '''k3b-i18n''' package includes files for more than 50 different languages. |
| + | |
| | | |
| == K3b-i18n and Slackware == | | == K3b-i18n and Slackware == |
| | | |
| Like '''K3b''', the main optical media burning package, '''K3b-i18n''' has been part of the official Slackware distribution for many years: The existing build script, updated and integrated, was used for the TDE distributed K3b release. '''Autotools''' were used for the task as the package has not been ported to [http://www.cmake.org cmake] yet. The following rules were applied when compiling the package to ensure a clean build: | | Like '''K3b''', the main optical media burning package, '''K3b-i18n''' has been part of the official Slackware distribution for many years: The existing build script, updated and integrated, was used for the TDE distributed K3b release. '''Autotools''' were used for the task as the package has not been ported to [http://www.cmake.org cmake] yet. The following rules were applied when compiling the package to ensure a clean build: |
− | * Directory '''/opt/trinity''' was set as package root directory. | + | * Directory ''/opt/trinity'' was set as package root directory. |
| * Some missing makefiles were created running the '''make''' command from inside the main directory of the code extracted from the source archive. | | * Some missing makefiles were created running the '''make''' command from inside the main directory of the code extracted from the source archive. |
| * No specific option was set for the '''configure''' command as the package does not seem to need any. | | * No specific option was set for the '''configure''' command as the package does not seem to need any. |
Line 22: |
Line 18: |
| | | |
| Some configuration scripts required by the build procedure are missing from the source tarball. We create the makefiles using the make command: | | Some configuration scripts required by the build procedure are missing from the source tarball. We create the makefiles using the make command: |
| + | <syntaxhighlight lang="bash"> |
| # Prepare the package for building (Create the configure script). | | # Prepare the package for building (Create the configure script). |
| echo "(II) admin makefile run here" >> ${OUTPUT}/${PRGNAM}_configure.log | | echo "(II) admin makefile run here" >> ${OUTPUT}/${PRGNAM}_configure.log |
| make -f admin/Makefile.common \ | | make -f admin/Makefile.common \ |
| 2>&1 | tee -a ${OUTPUT}/${PRGNAM}_configure.log | | 2>&1 | tee -a ${OUTPUT}/${PRGNAM}_configure.log |
| + | </syntaxhighlight> |
| '''The script specifically sets Qt libraries paths''' in order for other scripts to find them at build time: | | '''The script specifically sets Qt libraries paths''' in order for other scripts to find them at build time: |
| + | <syntaxhighlight lang="bash"> |
| # Add temporary paths to handle new libraries during build | | # Add temporary paths to handle new libraries during build |
| export QTDIR=/opt/trinity | | export QTDIR=/opt/trinity |
Line 33: |
Line 32: |
| export LD_LIBRARY_PATH=/usr/lib${LIBDIRSUFFIX}:/opt/trinity/lib${LIBDIRSUFFIX} | | export LD_LIBRARY_PATH=/usr/lib${LIBDIRSUFFIX}:/opt/trinity/lib${LIBDIRSUFFIX} |
| export PKG_CONFIG_PATH=:/usr/lib${LIBDIRSUFFIX}/pkgconfig:/opt/trinity/lib${LIBDIRSUFFIX}/pkgconfig:$PKG_CONFIG_PATH | | export PKG_CONFIG_PATH=:/usr/lib${LIBDIRSUFFIX}/pkgconfig:/opt/trinity/lib${LIBDIRSUFFIX}/pkgconfig:$PKG_CONFIG_PATH |
| + | </syntaxhighlight> |
| Finally the script runs the '''./configure''' command to configure source code in accordance to the destination environment: | | Finally the script runs the '''./configure''' command to configure source code in accordance to the destination environment: |
| + | <syntaxhighlight lang="bash"> |
| # Configure the package | | # Configure the package |
| LDFLAGS="${SLKLDFLAGS}" \ | | LDFLAGS="${SLKLDFLAGS}" \ |
Line 49: |
Line 50: |
| --disable-rpath \ | | --disable-rpath \ |
| 2>&1 | tee -a ${OUTPUT}/${PRGNAM}_configure.log | | 2>&1 | tee -a ${OUTPUT}/${PRGNAM}_configure.log |
| + | </syntaxhighlight> |
| Once the configuration successfully concludes, the script runs the make command then goes on with packaging the software. | | Once the configuration successfully concludes, the script runs the make command then goes on with packaging the software. |
| | | |
Line 58: |
Line 60: |
| | | |
| External Links | | External Links |
| + | |
| ---- | | ---- |
| + | |
| * [http://www.trinitydesktop.org/wiki/bin/view/Developers/HowToBuild TDE build guide] | | * [http://www.trinitydesktop.org/wiki/bin/view/Developers/HowToBuild TDE build guide] |
| * [http://www.k3b.org/ K3b home page] | | * [http://www.k3b.org/ K3b home page] |
Line 65: |
Line 69: |
| ---- | | ---- |
| | | |
− | Languages: '''English''' - [http://www.giustetti.net/wiki/index.php?title=TDE_k3b-i18n Italiano]
| + | {{footer_en | link_page=TDE_k3b-i18n}} |