#!/bin/sh # ===================================================================== # Projet : DARKMAKE # Fichier : compile # Auteur : Nicolas "DarkHack" Chapuis (c) 2026 # ================== DARKHACK ================== # [ darkweb.fr - system online ] # Powered by Perplexity, your AI assistant # [https://www.perplexity.ai](https://www.perplexity.ai) # ============================================== # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0) # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ===================================================================== rootDarkMake="${rootDarkMake:-/etc/darkmake}" if ! type "shInclude" > /dev/null; then . /etc/darksh/lib/shTools shLog="${shLog:-"lib idn install"}" shDebugEnable="${shDebugEnable:-1}" shDebug "$*" rootDarkMake="${rootDarkMake:-/etc/darkmake}" $(shInclude ${rootDarkMake}/pkg/lib-sh/pkg-config) fi autoPath="lib/web/idn" shErrorOnMissing "autoPath" #extraConfigure="--disable-valgrind-tests --enable-gcc-warnings" \ #. ${rootDarkMake}/lib/autotools/libtool/install/basics path_install_vars="${rootDarkMake}/${autoPath}/global/install_vars" \ . "${rootDarkMake}/pkg/bin/checks" shLog="[ $pkgName/$pkgVersion ]" if [ ! -f "${pkgSrc}/.darkPatch" ];then touch "${pkgSrc}/.darkPatch" # for fileName in "stdio-write.c" "stdio-read.c";do # file="/usr/share/gnulib/lib/${fileName}" # [ -f "${file}" ] && for dest in "${pkgSrc}/gl";do # cp "${file}" "${dest}" && echo cp "${file}" "${dest}" # done # done cpt=$((cpt + 1 ));shDebug 1 "====== PATCH ${cpt}_patchjava.log" cd $pkgSrc patch < ${rootDarkMake}/lib/web/idn/patch/nojava.patch > $pkgDirLog/${cpt}_patchjava.log 2>&1 cd $pkgSrc/doc patch < ${rootDarkMake}/lib/web/idn/patch/nojava1.patch > $pkgDirLog/${cpt}_patchjava1.log 2>&1 file="${pkgSrc}/doc/reference/Makefile.am" sed -i "s/EXTRA_DIST/#EXTRA_DIST/g" "${file}" for file in "doc/Makefile.gdoc" "ChangeLog" "gtk-doc.make";do touch "${pkgSrc}/${file}" done echo "en@boldquot" > ${pkgSrc}/po/LINGUAS && echo "en@quot" >> ${pkgSrc}/po/LINGUAS fi #extraConfigure="--disable-valgrind-tests --enable-gcc-warnings" \ #. ${rootDarkMake}/lib/autotools/libtool/install/basics #exit cpt=0 #if [ ! -f "${pkgSrc}/configure" ];then cd $pkgSrc cpt=$((cpt + 1 ));shDebug 1 "====== make bootstrap ${cpt}_bootstrap.log" make bootstrap > $pkgDirLog/${cpt}_bootstrap.log 2>&1 cd $pkgSrc extraConfigure="--disable-valgrind-tests --enable-gcc-warnings --with-libiconv-prefix=/usr/local" \ . ${rootDarkMake}/lib/autotools/libtool/install/basics #fi #path_install_vars="${rootDarkMake}/lib/web/idn/global/install_vars" \ #. ${rootDarkMake}/lib/autotools/pkg-config/bin/checks #shLog="[ $pkgName/$pkgVersion ]" #cpt=0 #cd $pkgSrc #cpt=$((cpt + 1 ));shDebug 1 "====== APT ${cpt}_apt.log" #${rootDarkMake}/pkg/bin/aptCheck gengetopt fig2dev help2man ##> $pkgDirLog/${cpt}_apt.log #cd $pkgSrc #if [ ! -f "./configure" ];then # touch ${pkgSrc}/ChangeLog ## rm -f $pkgSrc/gtk-doc.make # touch ${pkgSrc}/doc/Makefile.gdoc # filesToInit="" ## for subFolder in lib lib/gl lib/gltest gl gltests fuzz src .;do # for subFolder in $(find . | grep "Makefile.am" | rev | cut -d / -f 2- | rev | tr '\n' ' ');do # if [ "$subFolder" = "." ];then continue; # else filesToInit="$filesToInit $pkgSrc/$subFolder/configure";fi # done # filesToInit="$filesToInit $pkgSrc/configure" # filesToInit="$filesToInit" \ #fi #if [ ! -f "./configure" ];then # cd $pkgSrc # cpt=$((cpt + 1 ));shDebug 1 "====== make bootstrap ${cpt}_bootstrap.log" # make bootstrap > $pkgDirLog/${cpt}_bootstrap.log 2>&1 #fi #cd $pkgSrc #cpt=$((cpt + 1 ));shDebug 1 " ======== CONFIGURE ======== ${cpt}_configure.log" #./configure --help > $pkgDirLog/configureHelp.log 2>&1 ##./configure --disable-valgrind-tests --enable-gcc-warnings > $pkgDirLog/${cpt}_configure.log 2>&1 #tail -50l $pkgDirLog/${cpt}_configure.log #echo "Press any key to continue... ";read REPLY #. ${rootDarkMake}/lib/autotools/make/install/stdCleanMakeInstall