kopia lustrzana https://github.com/Hamlib/Hamlib
Merge branch 'master' of https://github.com/mdblack98/Hamlib
commit
e4aa3a28aa
|
@ -190,7 +190,7 @@ END_OF_README
|
||||||
LDFLAGS="-L${LIBUSB_1_0_BIN_PATH}/MinGW32/dll"
|
LDFLAGS="-L${LIBUSB_1_0_BIN_PATH}/MinGW32/dll"
|
||||||
|
|
||||||
|
|
||||||
make install
|
make -j 4 install
|
||||||
|
|
||||||
mkdir -p ${ZIP_DIR}/bin ${ZIP_DIR}/lib/msvc ${ZIP_DIR}/lib/gcc ${ZIP_DIR}/include ${ZIP_DIR}/doc
|
mkdir -p ${ZIP_DIR}/bin ${ZIP_DIR}/lib/msvc ${ZIP_DIR}/lib/gcc ${ZIP_DIR}/include ${ZIP_DIR}/doc
|
||||||
cp -a src/libhamlib.def ${ZIP_DIR}/lib/msvc/libhamlib-4.def; todos ${ZIP_DIR}/lib/msvc/libhamlib-4.def
|
cp -a src/libhamlib.def ${ZIP_DIR}/lib/msvc/libhamlib-4.def; todos ${ZIP_DIR}/lib/msvc/libhamlib-4.def
|
||||||
|
@ -222,12 +222,35 @@ cp -a /usr/i686-w64-mingw32/lib/libwinpthread-1.dll ${ZIP_DIR}/bin/.
|
||||||
cp -a ${LIBUSB_1_0_BIN_PATH}/MinGW32/dll/libusb-1.0.dll ${ZIP_DIR}/bin/libusb-1.0.dll
|
cp -a ${LIBUSB_1_0_BIN_PATH}/MinGW32/dll/libusb-1.0.dll ${ZIP_DIR}/bin/libusb-1.0.dll
|
||||||
|
|
||||||
# Required for MinGW with GCC 6.3
|
# Required for MinGW with GCC 6.3
|
||||||
|
FILE="/usr/lib/gcc/i686-w64-mingw32/6.3-posix/libgcc_s_sjlj-1.dll"
|
||||||
|
if test -f "$FILE"; then
|
||||||
cp -a /usr/lib/gcc/i686-w64-mingw32/6.3-posix/libgcc_s_sjlj-1.dll ${ZIP_DIR}/bin/libgcc_s_sjlj-1.dll
|
cp -a /usr/lib/gcc/i686-w64-mingw32/6.3-posix/libgcc_s_sjlj-1.dll ${ZIP_DIR}/bin/libgcc_s_sjlj-1.dll
|
||||||
|
cp -a ${FILE} ${ZIP_DIR}/bin/libgcc_s_sjlj-1.dll
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Required for MinGW with GCC 8.3
|
||||||
|
FILE="/usr/lib/gcc/i686-w64-mingw32/8.3-posix/libgcc_s_sjlj-1.dll"
|
||||||
|
if test -f "$FILE"; then
|
||||||
|
cp -a ${FILE} ${ZIP_DIR}/bin/libgcc_s_sjlj-1.dll
|
||||||
|
fi
|
||||||
|
|
||||||
|
pushd .
|
||||||
|
cd ${ZIP_DIR}/lib/msvc/
|
||||||
## Need VC++ free toolkit installed (default Wine directory installation shown)
|
## Need VC++ free toolkit installed (default Wine directory installation shown)
|
||||||
# Path for 2003 version of Visual C++ Toolkit
|
# Path for 2003 version of Visual C++ Toolkit
|
||||||
#-( cd ${ZIP_DIR}/lib/msvc/ && wine ~/.wine/drive_c/Program\ Files/Microsoft\ Visual\ C++\ Toolkit\ 2003/bin/link.exe /lib /machine:i386 /def:libhamlib-4.def )
|
#wine ~/.wine/drive_c/Program\ Files/Microsoft\ Visual\ C++\ Toolkit\ 2003/bin/link.exe /lib /machine:i386 /def:libhamlib-4.def
|
||||||
# Path for Current version of Visual Studio
|
# Path for 2017 version of Visual Studio
|
||||||
( cd ${ZIP_DIR}/lib/msvc/ && wine ~/.wine/drive_c/Program\ Files\ (x86)\/Microsoft\ Visual\ Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x86/bin/link.exe /lib /machine:i386 /def:libhamlib-4.def )
|
wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x86/bin/link.exe /lib /machine:i386 /def:libhamlib-4.def
|
||||||
|
if [ $? -ne 0 ];then
|
||||||
|
echo Did not find 2017 link.exe...trying 2019
|
||||||
|
# Path for 2019 version Visual Studio Community
|
||||||
|
wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x86/bin/link.exe /lib /machine:i386 /def:libhamlib-4.def
|
||||||
|
fi
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo Cannot find MSVC link executable!!
|
||||||
|
echo You must put in your own path in here
|
||||||
|
popd
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
popd
|
||||||
/usr/bin/zip -r ${HL_FILENAME}.zip `basename ${ZIP_DIR}`
|
/usr/bin/zip -r ${HL_FILENAME}.zip `basename ${ZIP_DIR}`
|
||||||
|
|
|
@ -190,7 +190,7 @@ END_OF_README
|
||||||
LDFLAGS="-L${LIBUSB_1_0_BIN_PATH}/MinGW64/dll"
|
LDFLAGS="-L${LIBUSB_1_0_BIN_PATH}/MinGW64/dll"
|
||||||
|
|
||||||
|
|
||||||
make install
|
make -j 4 install
|
||||||
|
|
||||||
mkdir -p ${ZIP_DIR}/bin ${ZIP_DIR}/lib/gcc ${ZIP_DIR}/include ${ZIP_DIR}/doc ${ZIP_DIR}/lib/msvc # ${ZIP_DIR}/pdf
|
mkdir -p ${ZIP_DIR}/bin ${ZIP_DIR}/lib/gcc ${ZIP_DIR}/include ${ZIP_DIR}/doc ${ZIP_DIR}/lib/msvc # ${ZIP_DIR}/pdf
|
||||||
cp -a src/libhamlib.def ${ZIP_DIR}/lib/msvc/libhamlib-4.def; todos ${ZIP_DIR}/lib/msvc/libhamlib-4.def
|
cp -a src/libhamlib.def ${ZIP_DIR}/lib/msvc/libhamlib-4.def; todos ${ZIP_DIR}/lib/msvc/libhamlib-4.def
|
||||||
|
@ -222,9 +222,41 @@ cp -a /usr/x86_64-w64-mingw32/lib/libwinpthread-1.dll ${ZIP_DIR}/bin/.
|
||||||
cp -a ${LIBUSB_1_0_BIN_PATH}/MinGW64/dll/libusb-1.0.dll ${ZIP_DIR}/bin/libusb-1.0.dll
|
cp -a ${LIBUSB_1_0_BIN_PATH}/MinGW64/dll/libusb-1.0.dll ${ZIP_DIR}/bin/libusb-1.0.dll
|
||||||
|
|
||||||
# Required for MinGW with GCC 6.3
|
# Required for MinGW with GCC 6.3
|
||||||
cp -a /usr/lib/gcc/x86_64-w64-mingw32/6.3-posix/libgcc_s_seh-1.dll ${ZIP_DIR}/bin/libgcc_s_seh-1.dll
|
FILE= /usr/lib/gcc/i686-w64-mingw32/6.3-posix/libgcc_s_sjlj-1.dll
|
||||||
|
if test -f "$FILE"; then
|
||||||
|
cp -a /usr/lib/gcc/i686-w64-mingw32/6.3-posix/libgcc_s_sjlj-1.dll ${ZIP_DIR}/bin/libgcc_s_sjlj-1.dll
|
||||||
|
cp -a ${FILE} ${ZIP_DIR}/bin/libgcc_s_sjlj-1.dll
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Required for MinGW with GCC 8.3
|
||||||
|
FILE= /usr/lib/gcc/i686-w64-mingw32/8.3-posix/libgcc_s_sjlj-1.dll
|
||||||
|
if test -f "$FILE"; then
|
||||||
|
cp -a ${FILE} ${ZIP_DIR}/bin/libgcc_s_sjlj-1.dll
|
||||||
|
fi
|
||||||
|
|
||||||
|
pushd .
|
||||||
|
cd ${ZIP_DIR}/lib/msvc/
|
||||||
|
|
||||||
## Need VC++ free toolkit installed (default Wine directory installation shown)
|
## Need VC++ free toolkit installed (default Wine directory installation shown)
|
||||||
( cd ${ZIP_DIR}/lib/msvc/ && wine ~/.wine/drive_c/Program\ Files/Microsoft\ Visual\ C++\ Toolkit\ 2003/bin/link.exe /lib /machine:amd64 /def:libhamlib-4.def )
|
wine ~/.wine/drive_c/Program\ Files/Microsoft\ Visual\ C++\ Toolkit\ 2003/bin/link.exe /lib /machine:amd64 /def:libhamlib-4.def
|
||||||
|
|
||||||
zip -r ${HL_FILENAME}.zip `basename ${ZIP_DIR}`
|
## Need VC++ free toolkit installed (default Wine directory installation shown)
|
||||||
|
# Path for 2003 version of Visual C++ Toolkit -- anybody have this anymore?
|
||||||
|
# Commented out 20200418
|
||||||
|
#( cd ${ZIP_DIR}/lib/msvc/ && wine ~/.wine/drive_c/Program\ Files/Microsoft\ Visual\ C++\ Toolkit\ 2003/bin/link.exe /lib /machine:i386 /def:libhamlib-4.def )
|
||||||
|
if [ $? -ne 0 ];then
|
||||||
|
# Path for 2017 version of Visual Studio
|
||||||
|
( cd ${ZIP_DIR}/lib/msvc/ && wine ~/.wine/drive_c/Program\ Files\ (x86)\/Microsoft\ Visual\ Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x86/bin/link.exe /lib /machine:i386 /def:libhamlib-4.def )
|
||||||
|
fi
|
||||||
|
if [ $? -ne 0 ];then
|
||||||
|
echo Did not find 2017 link.exe...trying 2019
|
||||||
|
# Path for 2019 version Visual Studio Community
|
||||||
|
#( cd ${ZIP_DIR}/lib/msvc/ && wine ~/.wine/drive_c/Program\ Files\ \(x86)\\/Microsoft\ Visual\ Studio\2019\Community\VC\Tools\MSVC\14.25.28610\bin\Hostx64\x86\bin\link.exe /lib /machine:i386 /def:libhamlib-4.def )
|
||||||
|
#else
|
||||||
|
echo Cannot find MSVC link executable!!
|
||||||
|
echo You must put in your own path in here
|
||||||
|
popd
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
popd
|
||||||
|
/usr/bin/zip -r ${HL_FILENAME}.zip `basename ${ZIP_DIR}`
|
||||||
|
|
Ładowanie…
Reference in New Issue