forked from mp3splt/mp3splt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile_win32.sh
executable file
·43 lines (33 loc) · 1.23 KB
/
compile_win32.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/sh
if [ ! -f /etc/fstab ];then
echo "C:\mp3splt_mingw\ /mingw" > /etc/fstab
fi
echo "unarchiving libmp3splt required libs ..."
tar jxf ../libmp3splt_mingw_required_libs.tar.bz2 -C / || exit 1
echo "unarchiving mp3splt-gtk required libs ..."
tar jxf ../mp3splt-gtk_mingw_required_libs.tar.bz2 -C / || exit 1
echo "unarchiving mp3splt-gtk runtime ..."
tar jxf ../mp3splt-gtk_runtime.tar.bz2 || exit 1
mkdir -p /opt/lib
cp -a /lib/* /opt/lib/
if ! grep -q "Generated by" /lib/libiconv.la;then
sed -i "s/# The name that/\n\
# libogg\.la - a libtool library file\n\
# Generated by ltmain.sh - GNU libtool 5.5.6 \(1.1220.2.95 2004\/04\/11 05:50:42\) Debian: 224 \$\n\
#\n\
# Please DO NOT delete this file!\n\
# It is necessary for linking the library\.\n\
\n\
# The name that/" /lib/libiconv.la
fi
cp /lib/pkg-config/* /lib/pkgconfig/
cp /lib/libexpat* /mingw/lib/
cp -a ./mp3splt-gtk_runtime/*.dll /usr/bin
mkdir -p /lib/.libs
cp /lib/libvorbis* /lib/libmad* /lib/libid3tag* /lib/libFLAC* /lib/.libs
cp /bin/libvorbis* /bin/libmad* /bin/libid3tag* /lib/.libs
cp /lib/libintl.la /mingw/lib/
cp /lib/libiconv.la /mingw/lib/
export PKG_CONFIG_PATH="/usr/lib/pkgconfig"
make -f Makefile.win32 || exit 1;
make -f Makefile.win32 dist || exit 1