Commit 1b0868ed authored by Sam Hocevar's avatar Sam Hocevar

  * ./plugins/win32/win32.cpp: fixed `--intf intfwin' which wasn't working.
  * ./Makefile: we don't include the Gtk+ and SDL DLLs in the win32 package
    anymore, the package is now 700k instead of 4MB.
  * ./configure.in, ./Makefile, ./Makefile.opts.in: replaced LIB_FOO with
    foo_LDFLAGS and CFLAGS_BAR with bar_CFLAGS for faster builds, and moved a
    lot of stuff from Makefile.opts.in back to configure.in.
  * ./install-win32: updated script for NSIS 1.96.

   I hope this doesn't break too many other architectures...
parent 0d691469
.* .*
core core
core.* core.*
conftest
conftest.*
.dep .dep
gmon.out gmon.out
vlc-debug.log vlc-debug.log
......
...@@ -4,6 +4,13 @@ ...@@ -4,6 +4,13 @@
HEAD HEAD
* ./plugins/win32/win32.cpp: fixed `--intf intfwin' which wasn't working.
* ./Makefile: we don't include the Gtk+ and SDL DLLs in the win32 package
anymore, the package is now 700k instead of 4MB.
* ./configure.in, ./Makefile, ./Makefile.opts.in: replaced LIB_FOO with
foo_LDFLAGS and CFLAGS_BAR with bar_CFLAGS for faster builds, and moved a
lot of stuff from Makefile.opts.in back to configure.in.
* ./install-win32: updated script for NSIS 1.96.
* ./configure.in: added --enable-intfwin to enable the win32 interface and * ./configure.in: added --enable-intfwin to enable the win32 interface and
--with-bcbuilder to tell make where to find Borland C++ Builder. --with-bcbuilder to tell make where to find Borland C++ Builder.
* ./plugins/win32/intfwin.bpr: we now build intfwin.so at the right place. * ./plugins/win32/intfwin.bpr: we now build intfwin.so at the right place.
......
...@@ -123,10 +123,7 @@ Building Win32 interface with bcc32 (Borland's compiler) ...@@ -123,10 +123,7 @@ Building Win32 interface with bcc32 (Borland's compiler)
(This stage is only necessary if you want to use the Win32 native interface. (This stage is only necessary if you want to use the Win32 native interface.
If you are happy with the GTK interface, then you can skip this section) If you are happy with the GTK interface, then you can skip this section)
[Steps 2 and 3 are temporary]
1) Compile vlc as usual. 1) Compile vlc as usual.
include\defs.h should be generated.
2) From the plugin\win32 directory, use Borland C++ command-line tools 2) From the plugin\win32 directory, use Borland C++ command-line tools
as follows: as follows:
......
...@@ -211,7 +211,7 @@ endif ...@@ -211,7 +211,7 @@ endif
# #
# Misc variables # Misc variables
# #
VLC_QUICKVERSION := $(shell grep '^ *VERSION=' configure.in | head -1 | sed 's/"//g' | cut -f2 -d=) VERSION := $(shell grep '^ *VERSION=' configure.in | head -1 | sed 's/"//g' | cut -f2 -d=)
# All symbols must be exported # All symbols must be exported
export export
...@@ -235,10 +235,11 @@ Makefile.opts: ...@@ -235,10 +235,11 @@ Makefile.opts:
show: show:
@echo CC: $(CC) @echo CC: $(CC)
@echo CFLAGS: $(CFLAGS) @echo CFLAGS: $(CFLAGS)
@echo DCFLAGS: $(DCFLAGS)
@echo LDFLAGS: $(LDFLAGS) @echo LDFLAGS: $(LDFLAGS)
@echo PCFLAGS: $(PCFLAGS) @echo plugins_CFLAGS: $(plugins_CFLAGS)
@echo PLDFLAGS: $(PLDFLAGS) @echo plugins_LDFLAGS: $(plugins_LDFLAGS)
@echo builtins_CFLAGS: $(builtins_CFLAGS)
@echo builtins_LDFLAGS: $(builtins_LDFLAGS)
@echo C_OBJ: $(C_OBJ) @echo C_OBJ: $(C_OBJ)
@echo CPP_OBJ: $(CPP_OBJ) @echo CPP_OBJ: $(CPP_OBJ)
@echo PLUGIN_OBJ: $(PLUGIN_OBJ) @echo PLUGIN_OBJ: $(PLUGIN_OBJ)
...@@ -250,7 +251,7 @@ show: ...@@ -250,7 +251,7 @@ show:
clean: plugins-clean po-clean vlc-clean clean: plugins-clean po-clean vlc-clean
rm -f src/*/*.o extras/*/*.o rm -f src/*/*.o extras/*/*.o
rm -f lib/*.so* lib/*.a rm -f lib/*.so* lib/*.a
rm -f plugins/*.so plugins/*.a rm -f plugins/*.so plugins/*.a plugins/*.lib plugins/*.tds
rm -rf extras/MacOSX/build rm -rf extras/MacOSX/build
po-clean: po-clean:
...@@ -372,7 +373,7 @@ dist: ...@@ -372,7 +373,7 @@ dist:
for file in vlc_beos.rsrc vlc.icns gvlc_win32.ico vlc_win32_rc.rc ; do \ for file in vlc_beos.rsrc vlc.icns gvlc_win32.ico vlc_win32_rc.rc ; do \
cp share/$$file tmp/vlc/share/ ; done cp share/$$file tmp/vlc/share/ ; done
# Build archives # Build archives
F=vlc-${VLC_QUICKVERSION}; \ F=vlc-${VERSION}; \
mv tmp/vlc tmp/$$F; (cd tmp ; tar cf $$F.tar $$F); \ mv tmp/vlc tmp/$$F; (cd tmp ; tar cf $$F.tar $$F); \
bzip2 -f -9 < tmp/$$F.tar > $$F.tar.bz2; \ bzip2 -f -9 < tmp/$$F.tar > $$F.tar.bz2; \
gzip -f -9 tmp/$$F.tar ; mv tmp/$$F.tar.gz . gzip -f -9 tmp/$$F.tar ; mv tmp/$$F.tar.gz .
...@@ -390,24 +391,22 @@ package-win32: ...@@ -390,24 +391,22 @@ package-win32:
echo "OK."; mkdir tmp; \ echo "OK."; mkdir tmp; \
fi fi
# Create installation script # Create installation script
sed -e 's#@VERSION@#'${VLC_QUICKVERSION}'#' < install-win32 > tmp/nsi cp install-win32 tmp/nsi
# Copy relevant files # Copy relevant files
cp vlc.exe $(PLUGINS:%=plugins/%.so) tmp/ cp vlc.exe tmp/
$(STRIP) tmp/vlc.exe
cp INSTALL.win32 tmp/INSTALL.txt ; unix2dos tmp/INSTALL.txt cp INSTALL.win32 tmp/INSTALL.txt ; unix2dos tmp/INSTALL.txt
for file in AUTHORS COPYING ChangeLog README FAQ TODO ; \ for file in AUTHORS COPYING ChangeLog README FAQ TODO ; \
do cp $$file tmp/$${file}.txt ; \ do cp $$file tmp/$${file}.txt ; \
unix2dos tmp/$${file}.txt ; done unix2dos tmp/$${file}.txt ; done
for file in iconv.dll libgmodule-1.3-12.dll libgtk-0.dll libgdk-0.dll \ mkdir tmp/plugins
libgobject-1.3-12.dll libintl-1.dll libglib-1.3-12.dll \ cp $(PLUGINS:%=plugins/%.so) tmp/plugins/
libgthread-1.3-12.dll SDL.dll README-SDL.txt ; \ $(STRIP) tmp/$(PLUGINS:%=plugins/%.so)
do cp ${DLL_PATH}/$$file tmp/ ; done
mkdir tmp/share mkdir tmp/share
for file in default8x16.psf default8x9.psf ; \ for file in default8x16.psf default8x9.psf ; \
do cp share/$$file tmp/share/ ; done do cp share/$$file tmp/share/ ; done
# Create package # Create package
wine ~/.wine/fake_windows/Program\ Files/NSIS/makensis.exe /CD tmp/nsi wine ~/.wine/fake_windows/Program\ Files/NSIS/makensis.exe -- /DVERSION=${VERSION} /CD tmp/nsi
mv tmp/vlc-${VLC_QUICKVERSION}.exe \
vlc-${VLC_QUICKVERSION}-win32-installer.exe
# Clean up # Clean up
rm -Rf tmp rm -Rf tmp
...@@ -427,10 +426,10 @@ package-beos: ...@@ -427,10 +426,10 @@ package-beos:
for file in default8x16.psf default8x9.psf ; \ for file in default8x16.psf default8x9.psf ; \
do cp share/$$file tmp/vlc/share/ ; done do cp share/$$file tmp/vlc/share/ ; done
# Create package # Create package
mv tmp/vlc tmp/vlc-${VLC_QUICKVERSION} mv tmp/vlc tmp/vlc-${VERSION}
(cd tmp ; find vlc-${VLC_QUICKVERSION} | \ (cd tmp ; find vlc-${VERSION} | \
zip -9 -@ vlc-${VLC_QUICKVERSION}-beos.zip ) zip -9 -@ vlc-${VERSION}-beos.zip )
mv tmp/vlc-${VLC_QUICKVERSION}-BeOS-x86.zip . mv tmp/vlc-${VERSION}-BeOS-x86.zip .
# Clean up # Clean up
rm -Rf tmp rm -Rf tmp
...@@ -447,7 +446,7 @@ package-macosx: ...@@ -447,7 +446,7 @@ package-macosx:
cp AUTHORS COPYING ChangeLog README FAQ TODO tmp/ cp AUTHORS COPYING ChangeLog README FAQ TODO tmp/
# Create disk image # Create disk image
./macosx-dmg 0 "vlc-${VLC_QUICKVERSION}" tmp/* ./macosx-dmg 0 "vlc-${VERSION}" tmp/*
# Clean up # Clean up
rm -Rf tmp rm -Rf tmp
...@@ -528,7 +527,7 @@ endif ...@@ -528,7 +527,7 @@ endif
# Main application target # Main application target
# #
vlc: Makefile.opts Makefile.dep Makefile $(VLC_OBJ) $(BUILTIN_OBJ) vlc: Makefile.opts Makefile.dep Makefile $(VLC_OBJ) $(BUILTIN_OBJ)
$(CC) $(CFLAGS) -o $@ $(VLC_OBJ) $(BUILTIN_OBJ) $(LDFLAGS) $(LIB_VLC) $(LIB_BUILTINS) $(LIB_COMMON) $(CC) $(CFLAGS) -o $@ $(VLC_OBJ) $(BUILTIN_OBJ) $(LDFLAGS) $(vlc_LDFLAGS) $(builtins_LDFLAGS)
ifeq ($(SYS),beos) ifeq ($(SYS),beos)
xres -o $@ ./share/vlc_beos.rsrc xres -o $@ ./share/vlc_beos.rsrc
mimeset -f $@ mimeset -f $@
......
...@@ -50,7 +50,7 @@ CFLAGS += -DMAKE_DEP ...@@ -50,7 +50,7 @@ CFLAGS += -DMAKE_DEP
$(C_DEP): .dep/%.d: %.c $(C_DEP): .dep/%.d: %.c
@test -d .dep/$(dir $*) || mkdir -p $(shell dirname .dep/$*) @test -d .dep/$(dir $*) || mkdir -p $(shell dirname .dep/$*)
#@echo "regenerating dependencies for $*.c" #@echo "regenerating dependencies for $*.c"
@$(SHELL) -ec '$(CC) $(DCFLAGS) $(CFLAGS) $(DEFINE) 2>/dev/null $< \ @$(SHELL) -ec '$(CC) -M $(CFLAGS) 2>/dev/null $< \
| sed '\''s/$(subst .,\.,$(notdir $*))\.o[ :]*/$(subst /,\/,$*).o \ | sed '\''s/$(subst .,\.,$(notdir $*))\.o[ :]*/$(subst /,\/,$*).o \
.dep\/$(subst /,\/,$*).d : /g'\'' > $@; \ .dep\/$(subst /,\/,$*).d : /g'\'' > $@; \
[ -s $@ ] || rm -f $@' [ -s $@ ] || rm -f $@'
...@@ -58,7 +58,7 @@ $(C_DEP): .dep/%.d: %.c ...@@ -58,7 +58,7 @@ $(C_DEP): .dep/%.d: %.c
$(CPP_DEP): .dep/%.dpp: %.cpp $(CPP_DEP): .dep/%.dpp: %.cpp
@test -d .dep/$(dir $*) || mkdir -p $(shell dirname .dep/$*) @test -d .dep/$(dir $*) || mkdir -p $(shell dirname .dep/$*)
#@echo "regenerating dependencies for $*.c" #@echo "regenerating dependencies for $*.c"
@$(SHELL) -ec '$(CC) $(DCFLAGS) $(CFLAGS) $(DEFINE) 2>/dev/null $< \ @$(SHELL) -ec '$(CC) -M $(CFLAGS) 2>/dev/null $< \
| sed '\''s/$(subst .,\.,$(notdir $*))\.o[ :]*/$(subst /,\/,$*).o \ | sed '\''s/$(subst .,\.,$(notdir $*))\.o[ :]*/$(subst /,\/,$*).o \
.dep\/$(subst /,\/,$*).dpp : /g'\'' > $@; \ .dep\/$(subst /,\/,$*).dpp : /g'\'' > $@; \
[ -s $@ ] || rm -f $@' [ -s $@ ] || rm -f $@'
......
...@@ -14,8 +14,6 @@ include Makefile ...@@ -14,8 +14,6 @@ include Makefile
# Analyze the target we are asked to build # Analyze the target we are asked to build
# #
module_name := $(shell echo $(MAKECMDGOALS) | sed 's@.*/\(.*\)\..*@\1@') module_name := $(shell echo $(MAKECMDGOALS) | sed 's@.*/\(.*\)\..*@\1@')
MODULE_NAME := $(shell echo $(module_name) | tr '[a-z]' '[A-Z]')
suff := $(shell echo $(MAKECMDGOALS) | sed 's@.*\.@@' | tr so/a lo/o) suff := $(shell echo $(MAKECMDGOALS) | sed 's@.*\.@@' | tr so/a lo/o)
# #
...@@ -25,14 +23,14 @@ SRC_C := $(filter %.c,$($(module_name)_SOURCES)) ...@@ -25,14 +23,14 @@ SRC_C := $(filter %.c,$($(module_name)_SOURCES))
SRC_CPP := $(filter %.cpp,$($(module_name)_SOURCES)) SRC_CPP := $(filter %.cpp,$($(module_name)_SOURCES))
ifeq (lo,$(suff)) ifeq (lo,$(suff))
CFLAGS_EXTRA := -I../../include -I../../extras $(CFLAGS_$(MODULE_NAME)) \ extra_CFLAGS := $(plugins_CFLAGS) $($(module_name)_CFLAGS) \
-DMODULE_NAME=$(module_name) -DMODULE_NAME_IS_$(module_name) \ -DMODULE_NAME=$(module_name) -DMODULE_NAME_IS_$(module_name) \
-DPLUGIN $(CFLAGS_$(MODULE_NAME)_PLUGIN) $(PCFLAGS) $($(module_name)_so_CFLAGS)
OBJ_ALL := $(SRC_C:%.c=%.lo.$(module_name)) $(SRC_CPP:%.cpp=%.lo.$(module_name)) OBJ_ALL := $(SRC_C:%.c=%.lo.$(module_name)) $(SRC_CPP:%.cpp=%.lo.$(module_name))
else else
CFLAGS_EXTRA := -I../../include -I../../extras $(CFLAGS_$(MODULE_NAME)) \ extra_CFLAGS := $(builtins_CFLAGS) $($(module_name)_CFLAGS) \
-DMODULE_NAME=$(module_name) -DMODULE_NAME_IS_$(module_name) \ -DMODULE_NAME=$(module_name) -DMODULE_NAME_IS_$(module_name) \
-DBUILTIN $(CFLAGS_$(MODULE_NAME)_BUILTIN) $($(module_name)_a_CFLAGS)
OBJ_ALL := $(SRC_C:%.c=%.o.$(module_name)) $(SRC_CPP:%.cpp=%.o.$(module_name)) OBJ_ALL := $(SRC_C:%.c=%.o.$(module_name)) $(SRC_CPP:%.cpp=%.o.$(module_name))
endif endif
...@@ -51,7 +49,7 @@ all: ...@@ -51,7 +49,7 @@ all:
clean: clean:
# rm -f $(PLUGIN_ALL) $(BUILTIN_ALL) # rm -f $(PLUGIN_ALL) $(BUILTIN_ALL)
rm -f *.o *.o.* *.lo *.lo.* *.moc *.moc.* *.bak rm -f *.o *.o.* *.lo *.lo.* *.obj *.moc *.moc.* *.bak
rm -rf .dep rm -rf .dep
FORCE: FORCE:
...@@ -60,23 +58,23 @@ $(OBJ_ALL): ../../Makefile.modules ../../Makefile.dep ../../Makefile ../../Makef ...@@ -60,23 +58,23 @@ $(OBJ_ALL): ../../Makefile.modules ../../Makefile.dep ../../Makefile ../../Makef
$(OBJ_ALL): $(H_DEP:%=../../include/%) $(OBJ_ALL): $(H_DEP:%=../../include/%)
$(C_DEP): %.d: FORCE $(C_DEP): %.d: FORCE
@$(MAKE) -s --no-print-directory -f ../../Makefile.dep $@ CFLAGS="$(CFLAGS) $(CFLAGS_EXTRA)" @$(MAKE) -s --no-print-directory -f ../../Makefile.dep $@ CFLAGS="$(CFLAGS) $(extra_CFLAGS)"
$(CPP_DEP): %.dpp: FORCE $(CPP_DEP): %.dpp: FORCE
@$(MAKE) -s --no-print-directory -f ../../Makefile.dep $@ CFLAGS="$(CFLAGS) $(CFLAGS_EXTRA)" @$(MAKE) -s --no-print-directory -f ../../Makefile.dep $@ CFLAGS="$(CFLAGS) $(extra_CFLAGS)"
$(SRC_C:%.c=%.$(suff).$(module_name)): %.$(suff).$(module_name): .dep/%.d $(SRC_C:%.c=%.$(suff).$(module_name)): %.$(suff).$(module_name): .dep/%.d
$(SRC_C:%.c=%.$(suff).$(module_name)): %.$(suff).$(module_name): %.c $(SRC_C:%.c=%.$(suff).$(module_name)): %.$(suff).$(module_name): %.c
$(CC) $(CFLAGS) $(CFLAGS_EXTRA) -c $< -o $@ $(CC) $(CFLAGS) $(extra_CFLAGS) -c $< -o $@
$(SRC_CPP:%.cpp=%.$(suff).$(module_name)): %.$(suff).$(module_name): .dep/%.dpp $(SRC_CPP:%.cpp=%.$(suff).$(module_name)): %.$(suff).$(module_name): .dep/%.dpp
$(SRC_CPP:%.cpp=%.$(suff).$(module_name)): %.$(suff).$(module_name): %.cpp $(SRC_CPP:%.cpp=%.$(suff).$(module_name)): %.$(suff).$(module_name): %.cpp
$(CC) $(CFLAGS) $(CFLAGS_EXTRA) -c $< -o $@ $(CC) $(CFLAGS) $(extra_CFLAGS) -c $< -o $@
# foo_CUSTOM lets us override all target rules for foo.so and foo.a # foo_CUSTOM lets us override all target rules for foo.so and foo.a
ifeq (,$($(module_name)_CUSTOM)) ifeq (,$($(module_name)_CUSTOM))
../$(module_name).so: $(EXTRA_DEP) $(OBJ_ALL) ../$(module_name).so: $(EXTRA_DEP) $(OBJ_ALL)
$(CC) $(OBJ_ALL) $(PLDFLAGS) $(LIB_$(MODULE_NAME)) $(LIB_COMMON) -o $@ $(CC) $(OBJ_ALL) $(LDFLAGS) $(plugins_LDFLAGS) $($(module_name)_LDFLAGS) -o $@
chmod a-x $@ chmod a-x $@
../$(module_name).a: $(EXTRA_DEP) $(OBJ_ALL) ../$(module_name).a: $(EXTRA_DEP) $(OBJ_ALL)
......
...@@ -48,10 +48,10 @@ CC = @CC@ ...@@ -48,10 +48,10 @@ CC = @CC@
CFLAGS = @CFLAGS@ CFLAGS = @CFLAGS@
SHELL = @SHELL@ SHELL = @SHELL@
RANLIB = @RANLIB@ RANLIB = @RANLIB@
STRIP = @STRIP@
MOC = @MOC@ MOC = @MOC@
WINDRES = @WINDRES@ WINDRES = @WINDRES@
BCBUILDER = @BCBUILDER@ BCBUILDER = @BCBUILDER@
DLL_PATH = @DLL_PATH@
# #
# Installation environment # Installation environment
...@@ -64,77 +64,75 @@ libdir = @libdir@ ...@@ -64,77 +64,75 @@ libdir = @libdir@
includedir = @includedir@ includedir = @includedir@
# #
# Libraries for special cases # CFLAGS for special cases
# #
LIB_COMMON = @LIB_COMMON@ vlc_CFLAGS = @vlc_CFLAGS@
LIB_VLC = @LIB_VLC@ plugins_CFLAGS := @plugins_CFLAGS@
builtins_CFLAGS := @builtins_CFLAGS@
LIB_A52 = @LIB_A52@
LIB_AA = @LIB_AA@ arts_CFLAGS = @arts_CFLAGS@
LIB_ALSA = @LIB_ALSA@ dvd_CFLAGS = @dvd_CFLAGS@
LIB_ARTS = @LIB_ARTS@ dvdread_CFLAGS = @dvdread_CFLAGS@
LIB_BEOS = @LIB_BEOS@ directx_CFLAGS = @directx_CFLAGS@
LIB_CHROMA_I420_RGB = @LIB_CHROMA_I420_RGB@ esd_CFLAGS = @esd_CFLAGS@
LIB_DARWIN = @LIB_DARWIN@ glide_CFLAGS = @glide_CFLAGS@
LIB_DIRECTX = @LIB_DIRECTX@ gnome_CFLAGS = @gnome_CFLAGS@
LIB_DSP = @LIB_DSP@ gtk_CFLAGS = @gtk_CFLAGS@
LIB_DVD = @LIB_DVD@ kde_CFLAGS = @kde_CFLAGS@
LIB_DVDREAD = @LIB_DVDREAD@ idctaltivec_CFLAGS = @idctaltivec_CFLAGS@
LIB_ESD = @LIB_ESD@ macosx_CFLAGS = @macosx_CFLAGS@
LIB_FILTER_DISTORT = @LIB_FILTER_DISTORT@ mad_CFLAGS = @mad_CFLAGS@
LIB_GGI = @LIB_GGI@ memcpyaltivec_CFLAGS = @memcpyaltivec_CFLAGS@
LIB_GLIDE = @LIB_GLIDE@ motionaltivec_CFLAGS = @motionaltivec_CFLAGS@
LIB_GNOME = @LIB_GNOME@ qt_CFLAGS = @qt_CFLAGS@
LIB_GTK = @LIB_GTK@ sdl_CFLAGS = @sdl_CFLAGS@
LIB_IDCTALTIVEC = @LIB_IDCTALTIVEC@ x11_CFLAGS = @x11_CFLAGS@
LIB_IMDCT = @LIB_IMDCT@ xvideo_CFLAGS = @xvideo_CFLAGS@
LIB_IMDCT3DN = @LIB_IMDCT3DN@
LIB_IMDCTSSE = @LIB_IMDCTSSE@
LIB_IPV4 = @LIB_IPV4@
LIB_IPV6 = @LIB_IPV6@
LIB_KDE = @LIB_KDE@
LIB_LIRC = @LIB_LIRC@
LIB_MACOSX = @LIB_MACOSX@
LIB_MAD = @LIB_MAD@
LIB_MEMCPYALTIVEC = @LIB_MEMCPYALTIVEC@
LIB_MOTIONALTIVEC = @LIB_MOTIONALTIVEC@
LIB_MPEG_TS = @LIB_MPEG_TS@
LIB_NCURSES = @LIB_NCURSES@
LIB_QNX = @LIB_QNX@
LIB_QT = @LIB_QT@
LIB_RC = @LIB_RC@
LIB_SDL = @LIB_SDL@
LIB_VCD = @LIB_VCD@
LIB_VORBIS = @LIB_VORBIS@
LIB_WAVEOUT = @LIB_WAVEOUT@
LIB_WIN32 = @LIB_WIN32@
LIB_X11 = @LIB_X11@
LIB_XVIDEO = @LIB_XVIDEO@
# #
# CFLAGS for special cases # Libraries for special cases
# #
CFLAGS_COMMON = @CFLAGS_COMMON@ vlc_LDFLAGS = @vlc_LDFLAGS@
CFLAGS_VLC = @CFLAGS_VLC@ plugins_LDFLAGS += @plugins_LDFLAGS@
builtins_LDFLAGS += @builtins_LDFLAGS@
CFLAGS_ARTS = @CFLAGS_ARTS@
CFLAGS_DVD = @CFLAGS_DVD@ a52_LDFLAGS = @a52_LDFLAGS@
CFLAGS_DVDREAD = @CFLAGS_DVDREAD@ aa_LDFLAGS = @aa_LDFLAGS@
CFLAGS_ESD = @CFLAGS_ESD@ alsa_LDFLAGS = @alsa_LDFLAGS@
CFLAGS_GLIDE = @CFLAGS_GLIDE@ arts_LDFLAGS = @arts_LDFLAGS@
CFLAGS_GNOME = @CFLAGS_GNOME@ beos_LDFLAGS = @beos_LDFLAGS@
CFLAGS_GTK = @CFLAGS_GTK@ chroma_i420_rgb_LDFLAGS = @chroma_i420_rgb_LDFLAGS@
CFLAGS_KDE = @CFLAGS_KDE@ directx_LDFLAGS = @directx_LDFLAGS@
CFLAGS_IDCTALTIVEC = @CFLAGS_IDCTALTIVEC@ dsp_LDFLAGS = @dsp_LDFLAGS@
CFLAGS_MACOSX = @CFLAGS_MACOSX@ dvd_LDFLAGS = @dvd_LDFLAGS@
CFLAGS_MAD = @CFLAGS_MAD@ dvdread_LDFLAGS = @dvdread_LDFLAGS@
CFLAGS_MEMCPYALTIVEC = @CFLAGS_MEMCPYALTIVEC@ esd_LDFLAGS = @esd_LDFLAGS@
CFLAGS_MOTIONALTIVEC = @CFLAGS_MOTIONALTIVEC@ filter_distort_LDFLAGS = @filter_distort_LDFLAGS@
CFLAGS_QT = @CFLAGS_QT@ ggi_LDFLAGS = @ggi_LDFLAGS@
CFLAGS_SDL = @CFLAGS_SDL@ glide_LDFLAGS = @glide_LDFLAGS@
CFLAGS_WIN32 = @CFLAGS_WIN32@ gnome_LDFLAGS = @gnome_LDFLAGS@
CFLAGS_X11 = @CFLAGS_X11@ gtk_LDFLAGS = @gtk_LDFLAGS@
CFLAGS_XVIDEO = @CFLAGS_XVIDEO@ idctaltivec_LDFLAGS = @idctaltivec_LDFLAGS@
imdct_LDFLAGS = @imdct_LDFLAGS@
imdct3dn_LDFLAGS = @imdct3dn_LDFLAGS@
imdctsse_LDFLAGS = @imdctsse_LDFLAGS@
ipv4_LDFLAGS = @ipv4_LDFLAGS@
kde_LDFLAGS = @kde_LDFLAGS@
lirc_LDFLAGS = @lirc_LDFLAGS@
macosx_LDFLAGS = @macosx_LDFLAGS@
mad_LDFLAGS = @mad_LDFLAGS@
memcpyaltivec_LDFLAGS = @memcpyaltivec_LDFLAGS@
motionaltivec_LDFLAGS = @motionaltivec_LDFLAGS@
ncurses_LDFLAGS = @ncurses_LDFLAGS@
qnx_LDFLAGS = @qnx_LDFLAGS@
qt_LDFLAGS = @qt_LDFLAGS@
rc_LDFLAGS = @rc_LDFLAGS@
sdl_LDFLAGS = @sdl_LDFLAGS@
vcd_LDFLAGS = @vcd_LDFLAGS@
vorbis_LDFLAGS = @vorbis_LDFLAGS@
waveout_LDFLAGS = @waveout_LDFLAGS@
x11_LDFLAGS = @x11_LDFLAGS@
xvideo_LDFLAGS = @xvideo_LDFLAGS@
# #
# Other special cases # Other special cases
...@@ -149,15 +147,15 @@ NEED_GETOPT = @NEED_GETOPT@ ...@@ -149,15 +147,15 @@ NEED_GETOPT = @NEED_GETOPT@
PROGRAM_OPTIONS = $(SYS) $(ARCH) PROGRAM_OPTIONS = $(SYS) $(ARCH)
ifeq ($(DEBUG),1) ifeq ($(DEBUG),1)
PROGRAM_OPTIONS += DEBUG PROGRAM_OPTIONS += DEBUG
DEFINE += -DDEBUG CFLAGS += -DDEBUG
endif endif
ifeq ($(CPROF),1) ifeq ($(CPROF),1)
PROGRAM_OPTIONS += CPROF PROGRAM_OPTIONS += CPROF
DEFINE += -DCPROF CFLAGS += -DCPROF
endif endif
ifeq ($(GPROF),1) ifeq ($(GPROF),1)
PROGRAM_OPTIONS += GPROF PROGRAM_OPTIONS += GPROF
DEFINE += -DGPROF CFLAGS += -DGPROF
endif endif
# PROGRAM_BUILD is a complete identification of the build # PROGRAM_BUILD is a complete identification of the build
...@@ -170,20 +168,15 @@ else ...@@ -170,20 +168,15 @@ else
PROGRAM_BUILD = `date` $(USER)@`hostname` PROGRAM_BUILD = `date` $(USER)@`hostname`
endif endif
# DEFINE will contain some of the constants definitions decided in Makefile,
# including SYS_xx. It will be passed to C compiler.
DEFINE_SYS := -DSYS_$(shell echo $(SYS) | sed -e 's/-.*//' | tr '[a-z].' '[A-Z]_')
DEFINE += $(DEFINE_SYS)
# On Linux and Solaris, activate 64-bit off_t (by default under BSD) # On Linux and Solaris, activate 64-bit off_t (by default under BSD)
DEFINE += -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE CFLAGS += -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE
# Gettext support # Gettext support
DEFINE += -DLOCALEDIR=\"$(datadir)/locale\" CFLAGS += -DLOCALEDIR=\"$(datadir)/locale\"
# Data and plugin location # Data and plugin location
DEFINE += -DDATA_PATH=\"@prefix@/share/videolan\" CFLAGS += -DDATA_PATH=\"@prefix@/share/videolan\"
DEFINE += -DPLUGIN_PATH=\"@prefix@/lib/videolan/vlc\" CFLAGS += -DPLUGIN_PATH=\"@prefix@/lib/videolan/vlc\"
############################################################################### ###############################################################################
# Tuning and other variables - do not change anything except if you know # Tuning and other variables - do not change anything except if you know
...@@ -193,25 +186,11 @@ DEFINE += -DPLUGIN_PATH=\"@prefix@/lib/videolan/vlc\" ...@@ -193,25 +186,11 @@ DEFINE += -DPLUGIN_PATH=\"@prefix@/lib/videolan/vlc\"
# #
# C headers directories # C headers directories
# #
INCLUDE += @INCLUDE@ CFLAGS += -Iinclude -Iextras
INCLUDE += -Iinclude -Iextras
#
# Libraries needed by built-in modules
#
LIB_BUILTINS := $(patsubst %,$$LIB_%,$(shell echo $(BUILTINS) | tr '[a-z]' '[A-Z]'))
#
# Libraries needed by the vlc executable
#
ifneq (,$(findstring mingw32,$(SYS)))
LIB_VLC += -lws2_32 -lnetapi32
endif
# #
# C compiler flags: mainstream compilation # C compiler flags: mainstream compilation
# #
CFLAGS += $(DEFINE) $(INCLUDE)
CFLAGS += -D_REENTRANT CFLAGS += -D_REENTRANT
CFLAGS += -D_GNU_SOURCE CFLAGS += -D_GNU_SOURCE
...@@ -219,23 +198,6 @@ ifeq ($(RELEASE),1) ...@@ -219,23 +198,6 @@ ifeq ($(RELEASE),1)
CFLAGS += -DHAVE_RELEASE CFLAGS += -DHAVE_RELEASE
endif endif
# flags needed for clean beos compilation
ifeq ($(SYS),beos)
CFLAGS += -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual
endif
ifneq (,$(findstring darwin,$(SYS)))
CFLAGS += -no-cpp-precomp
endif
ifneq (,$(findstring mingw32,$(SYS)))
CFLAGS += -fnative-struct -D_OFF_T_ -D_off_t=long
endif
ifneq (,$(findstring bsd,$(SYS)))
CFLAGS += -pthread
endif
# Optimizations : don't compile debug versions with them # Optimizations : don't compile debug versions with them
ifeq ($(OPTIMS),1) ifeq ($(OPTIMS),1)
CFLAGS += @CFLAGS_OPTIM@ CFLAGS += @CFLAGS_OPTIM@
...@@ -271,17 +233,10 @@ endif ...@@ -271,17 +233,10 @@ endif
#end of optimisations #end of optimisations
endif endif
#
# C compiler flags: dependancies
#
DCFLAGS += $(INCLUDE)
DCFLAGS += -M
# #
# C compiler flags: linking # C compiler flags: linking
# #
LDFLAGS += @LDFLAGS@ LDFLAGS += @LDFLAGS@
LDFLAGS += $(LIB)
LDFLAGS += -Wall LDFLAGS += -Wall
ifneq ($(DEBUG),1) ifneq ($(DEBUG),1)
ifneq ($(GPROF),1) ifneq ($(GPROF),1)
...@@ -290,23 +245,17 @@ ifneq ($(CPROF),1) ...@@ -290,23 +245,17 @@ ifneq ($(CPROF),1)
endif endif
endif endif
endif endif
ifneq (,$(findstring mingw32,$(SYS)))
LDFLAGS += -mwindows -Xlinker --force-exe-suffix
endif
# #
# C compiler flags: plugin compilation # C compiler flags: plugins and builtins compilation
# #
ifneq (,$(findstring mingw32,$(SYS))) plugins_CFLAGS += -DPLUGIN -I../../include -I../../extras
PCFLAGS += -fnative-struct builtins_CFLAGS += -DBUILTIN -I../../include -I../../extras
else
PCFLAGS += -fPIC
endif
# #
# C compiler flags: plugin linking # Linker flags: plugins and builtins linking
# #
PLDFLAGS += @PLDFLAGS@ builtins_LDFLAGS += $(patsubst %,$$%_LDFLAGS,$(BUILTINS))
# #
# Debugging and profiling support # Debugging and profiling support
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -9,6 +9,7 @@ CODENAME=Ourumov ...@@ -9,6 +9,7 @@ CODENAME=Ourumov
dnl Save CFLAGS and LDFLAGS dnl Save CFLAGS and LDFLAGS
save_CFLAGS="${CFLAGS}" save_CFLAGS="${CFLAGS}"
save_CPPFLAGS="${CPPFLAGS}"
save_LDFLAGS="${LDFLAGS}" save_LDFLAGS="${LDFLAGS}"
dnl Check for tools dnl Check for tools
...@@ -18,6 +19,7 @@ AC_PROG_CPP ...@@ -18,6 +19,7 @@ AC_PROG_CPP
dnl Find the right ranlib, even when cross-compiling dnl Find the right ranlib, even when cross-compiling
AC_CHECK_TOOL(RANLIB, ranlib, :) AC_CHECK_TOOL(RANLIB, ranlib, :)
AC_CHECK_TOOL(STRIP, strip, :)
dnl Check for GNU make dnl Check for GNU make
AC_PATH_PROG(GMAKE, gmake, no) AC_PATH_PROG(GMAKE, gmake, no)
...@@ -58,59 +60,85 @@ case x"${target_os}" in ...@@ -58,59 +60,85 @@ case x"${target_os}" in
;; ;;
xbsdi*) xbsdi*)
SYS=bsdi SYS=bsdi
LIB_DVD="${LIB_DVD} -ldvd" save_CFLAGS="${save_CFLAGS} -pthread"
LIB_VCD="${LIB_VCD} -ldvd" dvd_LDFLAGS="${dvd_LDFLAGS} -ldvd"
vcd_LDFLAGS="${vcd_LDFLAGS} -ldvd"
;;
x*bsd*)
SYS="${target_os}"
save_CFLAGS="${save_CFLAGS} -pthread"
;; ;;
xdarwin*) xdarwin*)
SYS=darwin SYS=darwin
save_CFLAGS="${save_CFLAGS} -no-cpp-precomp"
;; ;;
x*mingw32*) x*mingw32*)
SYS=mingw32 SYS=mingw32
AC_CHECK_TOOL(WINDRES, windres, :) AC_CHECK_TOOL(WINDRES, windres, :)
LIB_IPV4="${LIB_IPV4} -lws2_32" save_CFLAGS="${save_CFLAGS} -fnative-struct -D_OFF_T_ -D_off_t=long"
LIB_RC="${LIB_RC} -lws2_32" save_LDFLAGS="${save_LDFLAGS} -mwindows -Xlinker --force-exe-suffix"
vlc_LDFLAGS="${vlc_LDFLAGS} -lws2_32 -lnetapi32"
ipv4_LDFLAGS="${ipv4_LDFLAGS} -lws2_32"
rc_LDFLAGS="${rc_LDFLAGS} -lws2_32"
;; ;;
x*nto*) x*nto*)
SYS=nto SYS=nto
LIB_X11="${LIB_X11} -lsocket" x11_LDFLAGS="${x11_LDFLAGS} -lsocket"
LIB_XVIDEO="${LIB_XVIDEO} -lsocket" xvideo_LDFLAGS="${xvideo_LDFLAGS} -lsocket"
;; ;;
xbeos) xbeos)
SYS=beos SYS=beos
LIB_VLC="${LIB_VLC} -lbe" vlc_LDFLAGS="${vlc_LDFLAGS} -lbe"
LIB_BEOS="${LIB_BEOS} -lbe -lgame -lroot -ltracker" plugins_LDFLAGS="${plugins_LDFLAGS} -nostart"
LIB_IPV4="${LIB_IPV4} -lbind" beos_LDFLAGS="${beos_LDFLAGS} -lbe -lgame -lroot -ltracker"
PLDFLAGS="${PLDFLAGS} -nostart" ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind"
;; ;;
x*) x*)
SYS="${target_os}" SYS="${target_os}"
;; ;;
esac esac
dnl Flags needed for clean BeOS compilation
if test x"${SYS}" != xbeos
then
save_CFLAGS="${save_CFLAGS} -Wno-multichar -Wno-ctor-dtor-privacy -Woverloaded-virtual"
fi
dnl Flags for plugin compilation
if test x"${SYS}" = xmingw32
then
plugins_CFLAGS="${plugins_CFLAGS} -fnative-struct"
else
plugins_CFLAGS="${plugins_CFLAGS} -fPIC"
fi
dnl The -DSYS_FOO flag
save_CFLAGS="${save_CFLAGS} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr '[a-z].' '[A-Z]_'`"
dnl Check for system libs needed dnl Check for system libs needed
AC_CHECK_FUNCS(gettimeofday select strerror strtod strtol isatty usleep vasprintf swab sigrelse getpwuid memalign posix_memalign) AC_CHECK_FUNCS(gettimeofday select strerror strtod strtol isatty usleep vasprintf swab sigrelse getpwuid memalign posix_memalign)
AC_CHECK_FUNC(connect,,[ AC_CHECK_FUNC(connect,,[
AC_CHECK_LIB(socket,connect, AC_CHECK_LIB(socket,connect,
LIB_IPV4="${LIB_IPV4} -lsocket" ipv4_LDFLAGS="${ipv4_LDFLAGS} -lsocket"
LIB_VLC="${LIB_VLC} -lsocket" vlc_LDFLAGS="${vlc_LDFLAGS} -lsocket"
)]) )])
AC_CHECK_FUNC(gethostbyname,,[ AC_CHECK_FUNC(gethostbyname,,[
AC_CHECK_LIB(nsl,gethostbyname,LIB_IPV4="${LIB_IPV4} -lnsl") AC_CHECK_LIB(nsl,gethostbyname,ipv4_LDFLAGS="${ipv4_LDFLAGS} -lnsl")
]) ])
AC_CHECK_FUNC(gethostbyname,,[ AC_CHECK_FUNC(gethostbyname,,[
AC_CHECK_LIB(bind,gethostbyname,LIB_IPV4="${LIB_IPV4} -lbind") AC_CHECK_LIB(bind,gethostbyname,ipv4_LDFLAGS="${ipv4_LDFLAGS} -lbind")
]) ])
AC_CHECK_FUNC(nanosleep,,[ AC_CHECK_FUNC(nanosleep,,[
AC_CHECK_LIB(rt,nanosleep,LIB_VLC="${LIB_VLC} -lrt",[ AC_CHECK_LIB(rt,nanosleep,vlc_LDFLAGS="${vlc_LDFLAGS} -lrt",[
AC_CHECK_LIB(posix4,nanosleep,LIB_VLC="${LIB_VLC} -lposix4") AC_CHECK_LIB(posix4,nanosleep,vlc_LDFLAGS="${vlc_LDFLAGS} -lposix4")
]) ])
]) ])
AC_CHECK_FUNC(inet_aton,,[ AC_CHECK_FUNC(inet_aton,,[
AC_CHECK_LIB(resolv,inet_aton,LIB_IPV4="${LIB_IPV4} -lresolv") AC_CHECK_LIB(resolv,inet_aton,ipv4_LDFLAGS="${ipv4_LDFLAGS} -lresolv")
]) ])
AC_CHECK_FUNC(textdomain,,[ AC_CHECK_FUNC(textdomain,,[
AC_CHECK_LIB(intl,textdomain,LIB_VLC="${LIB_VLC} -lintl") AC_CHECK_LIB(intl,textdomain,vlc_LDFLAGS="${vlc_LDFLAGS} -lintl")
]) ])
dnl Check for getopt dnl Check for getopt
...@@ -118,19 +146,19 @@ NEED_GETOPT=0 ...@@ -118,19 +146,19 @@ NEED_GETOPT=0
AC_CHECK_FUNC(getopt_long,[AC_DEFINE(HAVE_GETOPT_LONG,1,long getopt support)], AC_CHECK_FUNC(getopt_long,[AC_DEFINE(HAVE_GETOPT_LONG,1,long getopt support)],
[ # FreeBSD has a gnugetopt library for this: [ # FreeBSD has a gnugetopt library for this:
AC_CHECK_LIB([gnugetopt],[getopt_long], AC_CHECK_LIB([gnugetopt],[getopt_long],
[AC_DEFINE(HAVE_GETOPT_LONG,1,getopt support) LIB_VLC="${LIB_VLC} -lgnugetopt"], [AC_DEFINE(HAVE_GETOPT_LONG,1,getopt support) vlc_LDFLAGS="${vlc_LDFLAGS} -lgnugetopt"],
[NEED_GETOPT=1])]) [NEED_GETOPT=1])])
AC_TYPE_SIGNAL AC_TYPE_SIGNAL
AC_CHECK_LIB(dl,dlopen,LIB_VLC="${LIB_VLC} -ldl") AC_CHECK_LIB(dl,dlopen,vlc_LDFLAGS="${vlc_LDFLAGS} -ldl")
AC_CHECK_LIB(m,cos, AC_CHECK_LIB(m,cos,
LIB_IMDCT="${LIB_IMDCT} -lm" imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
LIB_FILTER_DISTORT="${LIB_FILTER_DISTORT} -lm") filter_distort_LDFLAGS="${filter_distort_LDFLAGS} -lm")
AC_CHECK_LIB(m,pow, AC_CHECK_LIB(m,pow,
LIB_IMDCT="${LIB_IMDCT} -lm" imdct_LDFLAGS="${imdct_LDFLAGS} -lm"
LIB_IMDCT3DN="${LIB_IMDCT3DN} -lm" imdct3dn_LDFLAGS="${imdct3dn_LDFLAGS} -lm"
LIB_IMDCTSSE="${LIB_IMDCTSSE} -lm" imdctsse_LDFLAGS="${imdctsse_LDFLAGS} -lm"
LIB_CHROMA_I420_RGB="${LIB_CHROMA_I420_RGB} -lm" chroma_i420_rgb_LDFLAGS="${chroma_i420_rgb_LDFLAGS} -lm"
) )
dnl Check for pthreads - borrowed from XMMS dnl Check for pthreads - borrowed from XMMS
...@@ -182,15 +210,14 @@ then ...@@ -182,15 +210,14 @@ then
if test x$x_libraries = xNONE; then if test x$x_libraries = xNONE; then
x_libraries=/usr/X11R6/lib x_libraries=/usr/X11R6/lib
fi fi
saved_CPPFLAGS=$CPPFLAGS CPPFLAGS="$save_CPPFLAGS -I$x_includes"
CPPFLAGS="$CPPFLAGS -I$x_includes"
AC_CHECK_HEADERS(X11/extensions/dpms.h, [ AC_CHECK_HEADERS(X11/extensions/dpms.h, [
AC_EGREP_HEADER(DPMSInfo,X11/extensions/dpms.h,[ AC_EGREP_HEADER(DPMSInfo,X11/extensions/dpms.h,[
AC_DEFINE(DPMSINFO_IN_DPMS_H, 1, AC_DEFINE(DPMSINFO_IN_DPMS_H, 1,
Define if <X11/extensions/dpms.h> defines DPMSInfo.) Define if <X11/extensions/dpms.h> defines DPMSInfo.)
]) ])
]) ])
CPPFLAGS=$saved_CPPFLAGS CPPFLAGS="$save_CPPFLAGS"
fi fi
dnl Check for ntohl, etc. dnl Check for ntohl, etc.
...@@ -297,7 +324,7 @@ AC_CACHE_CHECK([if \$CC accepts -bundle -undefined error -lcc_dynamic], ...@@ -297,7 +324,7 @@ AC_CACHE_CHECK([if \$CC accepts -bundle -undefined error -lcc_dynamic],
[CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic" [CFLAGS="${save_CFLAGS} -bundle -undefined error -lcc_dynamic"
AC_TRY_COMPILE([],,ac_cv_ld_darwin=yes, ac_cv_ld_darwin=no)]) AC_TRY_COMPILE([],,ac_cv_ld_darwin=yes, ac_cv_ld_darwin=no)])
if test x"$ac_cv_ld_darwin" != x"no"; then if test x"$ac_cv_ld_darwin" != x"no"; then
PLDFLAGS="${PLDFLAGS} -bundle -undefined error -lcc_dynamic" plugins_LDFLAGS="${plugins_LDFLAGS} -bundle -undefined error -lcc_dynamic"
fi fi
dnl Check for standard plugin linking flags dnl Check for standard plugin linking flags
...@@ -306,7 +333,7 @@ AC_CACHE_CHECK([if \$CC accepts -shared], ...@@ -306,7 +333,7 @@ AC_CACHE_CHECK([if \$CC accepts -shared],
[CFLAGS="${save_CFLAGS} -shared" [CFLAGS="${save_CFLAGS} -shared"
AC_TRY_COMPILE([],, ac_cv_ld_plugins=yes, ac_cv_ld_plugins=no)]) AC_TRY_COMPILE([],, ac_cv_ld_plugins=yes, ac_cv_ld_plugins=no)])
if test x"$ac_cv_ld_plugins" != x"no"; then if test x"$ac_cv_ld_plugins" != x"no"; then
PLDFLAGS="${PLDFLAGS} -shared" plugins_LDFLAGS="${plugins_LDFLAGS} -shared"
fi fi
dnl Checks for __attribute__(aligned()) directive dnl Checks for __attribute__(aligned()) directive
...@@ -326,6 +353,7 @@ fi ...@@ -326,6 +353,7 @@ fi
dnl End of the bizarre compilation tests dnl End of the bizarre compilation tests
CFLAGS="${save_CFLAGS}" CFLAGS="${save_CFLAGS}"
CPPFLAGS="${save_CPPFLAGS}"
LDFLAGS="${save_LDFLAGS}" LDFLAGS="${save_LDFLAGS}"
dnl Check for boolean_t dnl Check for boolean_t
...@@ -431,10 +459,10 @@ AC_CACHE_CHECK([if \$CC groks Altivec inline assembly], ...@@ -431,10 +459,10 @@ AC_CACHE_CHECK([if \$CC groks Altivec inline assembly],
if test x"$ac_cv_altivec_inline" != x"no"; then if test x"$ac_cv_altivec_inline" != x"no"; then
AC_DEFINE(CAN_COMPILE_ALTIVEC, 1, Define if \$CC groks ALTIVEC inline assembly.) AC_DEFINE(CAN_COMPILE_ALTIVEC, 1, Define if \$CC groks ALTIVEC inline assembly.)
if test x"$ac_cv_altivec_inline" != x"yes"; then if test x"$ac_cv_altivec_inline" != x"yes"; then
CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_altivec_inline" idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_altivec_inline"
CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_altivec_inline" motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_altivec_inline"
CFLAGS_MEMCPYALTIVEC="$CFLAGS_MEMCPYALTIVEC $ac_cv_altivec_inline" memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_altivec_inline"
CFLAGS_VLC="$CFLAGS_VLC $ac_cv_altivec_inline" vlc_CFLAGS="$vlc_CFLAGS $ac_cv_altivec_inline"
fi fi
ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}" ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
fi fi
...@@ -447,7 +475,7 @@ AC_CACHE_CHECK([if \$CC groks Altivec C extensions], ...@@ -447,7 +475,7 @@ AC_CACHE_CHECK([if \$CC groks Altivec C extensions],
AC_TRY_COMPILE(,[vec_mtvscr((vector unsigned int)(0));], AC_TRY_COMPILE(,[vec_mtvscr((vector unsigned int)(0));],
ac_cv_c_altivec=-faltivec, [ ac_cv_c_altivec=-faltivec, [
# Linux/PPC test # Linux/PPC test
CFLAGS="$save_CFLAGS $CFLAGS_IDCTALTIVEC -fvec" CFLAGS="$save_CFLAGS $idctaltivec_CFLAGS -fvec"
AC_TRY_COMPILE(,[vec_mtvscr((vector unsigned int)(0));], AC_TRY_COMPILE(,[vec_mtvscr((vector unsigned int)(0));],
[ac_cv_c_altivec="-fvec"], ac_cv_c_altivec=no) [ac_cv_c_altivec="-fvec"], ac_cv_c_altivec=no)
]) ])
...@@ -455,10 +483,10 @@ AC_CACHE_CHECK([if \$CC groks Altivec C extensions], ...@@ -455,10 +483,10 @@ AC_CACHE_CHECK([if \$CC groks Altivec C extensions],
]) ])
if test x"$ac_cv_c_altivec" != x"no"; then if test x"$ac_cv_c_altivec" != x"no"; then
AC_DEFINE(CAN_COMPILE_C_ALTIVEC, 1, Define if your compiler groks C altivec extensions.) AC_DEFINE(CAN_COMPILE_C_ALTIVEC, 1, Define if your compiler groks C altivec extensions.)
CFLAGS_IDCTALTIVEC="$CFLAGS_IDCTALTIVEC $ac_cv_c_altivec" idctaltivec_CFLAGS="$idctaltivec_CFLAGS $ac_cv_c_altivec"
CFLAGS_MOTIONALTIVEC="$CFLAGS_MOTIONALTIVEC $ac_cv_c_altivec" motionaltivec_CFLAGS="$motionaltivec_CFLAGS $ac_cv_c_altivec"
CFLAGS_MEMCPYALTIVEC="$CFLAGS_MEMCPYALTIVEC $ac_cv_c_altivec" memcpyaltivec_CFLAGS="$memcpyaltivec_CFLAGS $ac_cv_c_altivec"
CFLAGS_VLC="$CFLAGS_VLC $ac_cv_c_altivec" vlc_CFLAGS="$vlc_CFLAGS $ac_cv_c_altivec"
ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}" ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
fi fi
...@@ -470,10 +498,10 @@ AC_CACHE_CHECK([if linker needs -framework vecLib], ...@@ -470,10 +498,10 @@ AC_CACHE_CHECK([if linker needs -framework vecLib],
LDFLAGS=$save_LDFLAGS LDFLAGS=$save_LDFLAGS
]) ])
if test x"$ac_cv_ld_altivec" != x"no"; then if test x"$ac_cv_ld_altivec" != x"no"; then
LIB_IDCTALTIVEC="${LIB_IDCTALTIVEC} -framework vecLib" idctaltivec_LDFLAGS="${idctaltivec_LDFLAGS} -framework vecLib"
LIB_MOTIONALTIVEC="${LIB_MOTIONALTIVEC} -framework vecLib" motionaltivec_LDFLAGS="${motionaltivec_LDFLAGS} -framework vecLib"
LIB_MEMCPYALTIVEC="${LIB_MEMCPYALTIVEC} -framework vecLib" memcpyaltivec_LDFLAGS="${memcpyaltivec_LDFLAGS} -framework vecLib"
LIB_VLC="${LIB_VLC} -framework vecLib" vlc_LDFLAGS="${vlc_LDFLAGS} -framework vecLib"
fi fi
fi # end if mingw32 fi # end if mingw32
...@@ -534,6 +562,7 @@ AC_ARG_ENABLE(debug, ...@@ -534,6 +562,7 @@ AC_ARG_ENABLE(debug,
dnl dnl
dnl Enable release-specific flags dnl Enable release-specific flags
dnl dnl
RELEASE=0
AC_ARG_ENABLE(release, AC_ARG_ENABLE(release,
[ --enable-release activate extra optimizations (default disabled)], [ --enable-release activate extra optimizations (default disabled)],
[ if test x$enableval = xyes; then RELEASE=1; fi ], [ if test x$enableval = xyes; then RELEASE=1; fi ],
...@@ -562,7 +591,7 @@ then ...@@ -562,7 +591,7 @@ then
then then
AC_CHECK_HEADERS(dvdcss/dvdcss.h, AC_CHECK_HEADERS(dvdcss/dvdcss.h,
[ PLUGINS="${PLUGINS} dvd" [ PLUGINS="${PLUGINS} dvd"
LIB_DVD="${LIB_DVD} -ldvdcss" ], dvd_LDFLAGS="${dvd_LDFLAGS} -ldvdcss" ],
[ AC_MSG_WARN([libdvdcss is no longer provided with vlc; please get libdvdcss from http://www.videolan.org/libdvdcss/ and build it. Then either use --with-dvdcss=<path/where/libdvdcss/was/installed> for dynamic linking (recommended under Unix) or --with-dvdcss-tree=<path/where/libdvdcss/was/built> for static linking (recommended under BeOS, Windows, MacOS X). Alternatively you can use --disable-dvd to disable the DVD plugin.]) [ AC_MSG_WARN([libdvdcss is no longer provided with vlc; please get libdvdcss from http://www.videolan.org/libdvdcss/ and build it. Then either use --with-dvdcss=<path/where/libdvdcss/was/installed> for dynamic linking (recommended under Unix) or --with-dvdcss-tree=<path/where/libdvdcss/was/built> for static linking (recommended under BeOS, Windows, MacOS X). Alternatively you can use --disable-dvd to disable the DVD plugin.])
AC_MSG_ERROR([cannot find libdvdcss headers]) ]) AC_MSG_ERROR([cannot find libdvdcss headers]) ])
else else
...@@ -579,8 +608,8 @@ then ...@@ -579,8 +608,8 @@ then
dnl Use a custom libdvdcss dnl Use a custom libdvdcss
AC_MSG_RESULT(${real_dvdcss_tree}/src/.libs/libdvdcss.a) AC_MSG_RESULT(${real_dvdcss_tree}/src/.libs/libdvdcss.a)
BUILTINS="${BUILTINS} dvd" BUILTINS="${BUILTINS} dvd"
LIB_DVD="${LIB_DVD} ${real_dvdcss_tree}/src/.libs/libdvdcss.a" dvd_LDFLAGS="${dvd_LDFLAGS} ${real_dvdcss_tree}/src/.libs/libdvdcss.a"
CFLAGS_DVD="${CFLAGS_DVD} -I${real_dvdcss_tree}/src" dvd_CFLAGS="${dvd_CFLAGS} -I${real_dvdcss_tree}/src"
else else
dnl The given libdvdcss wasn't built dnl The given libdvdcss wasn't built
AC_MSG_RESULT(no) AC_MSG_RESULT(no)
...@@ -591,8 +620,8 @@ then ...@@ -591,8 +620,8 @@ then
xno) xno)
dnl Compile without dvdcss (dlopen version, works only under Linux) dnl Compile without dvdcss (dlopen version, works only under Linux)
PLUGINS="${PLUGINS} dvd" PLUGINS="${PLUGINS} dvd"
CFLAGS_DVD="${CFLAGS_DVD} -DGOD_DAMN_DMCA" dvd_CFLAGS="${dvd_CFLAGS} -DGOD_DAMN_DMCA"
LIB_DVD="${LIB_DVD} -ldl" dvd_LDFLAGS="${dvd_LDFLAGS} -ldl"
;; ;;
*) *)
AC_MSG_CHECKING(for dvdcss headers in ${with_dvdcss}) AC_MSG_CHECKING(for dvdcss headers in ${with_dvdcss})
...@@ -601,8 +630,8 @@ then ...@@ -601,8 +630,8 @@ then
dnl Use ${with_dvdcss}/include/dvdcss/dvdcss.h dnl Use ${with_dvdcss}/include/dvdcss/dvdcss.h
AC_MSG_RESULT(yes) AC_MSG_RESULT(yes)
PLUGINS="${PLUGINS} dvd" PLUGINS="${PLUGINS} dvd"
LIB_DVD="${LIB_DVD} -L${with_dvdcss}/lib -ldvdcss" dvd_LDFLAGS="${dvd_LDFLAGS} -L${with_dvdcss}/lib -ldvdcss"
CFLAGS_DVD="${CFLAGS_DVD} -I${with_dvdcss}/include" dvd_CFLAGS="${dvd_CFLAGS} -I${with_dvdcss}/include"
else else
dnl No libdvdcss could be found, sorry dnl No libdvdcss could be found, sorry
AC_MSG_RESULT(no) AC_MSG_RESULT(no)
...@@ -625,7 +654,7 @@ then ...@@ -625,7 +654,7 @@ then
x) x)
AC_CHECK_HEADERS(dvdread/dvd_reader.h, AC_CHECK_HEADERS(dvdread/dvd_reader.h,
[ PLUGINS="${PLUGINS} dvdread" [ PLUGINS="${PLUGINS} dvdread"
LIB_DVDREAD="${LIB_DVDREAD} -ldvdread" ]) dvdread_LDFLAGS="${dvdread_LDFLAGS} -ldvdread" ])
;; ;;
*) *)
AC_MSG_CHECKING(for dvdread headers in ${withval}) AC_MSG_CHECKING(for dvdread headers in ${withval})
...@@ -633,8 +662,8 @@ then ...@@ -633,8 +662,8 @@ then
then then
AC_MSG_RESULT(yes) AC_MSG_RESULT(yes)
PLUGINS="${PLUGINS} dvdread" PLUGINS="${PLUGINS} dvdread"
LIB_DVDREAD="${LIB_DVDREAD} -L${withval}/lib -ldvdread" dvdread_LDFLAGS="${dvdread_LDFLAGS} -L${withval}/lib -ldvdread"
CFLAGS_DVDREAD="${CFLAGS_DVDREAD} -I${withval}/include" dvdread_CFLAGS="${dvdread_CFLAGS} -I${withval}/include"
else else
AC_MSG_RESULT(no) AC_MSG_RESULT(no)
AC_MSG_ERROR([Cannot find ${withval}/dvdread/dvd_reader.h]) AC_MSG_ERROR([Cannot find ${withval}/dvdread/dvd_reader.h])
...@@ -663,7 +692,7 @@ then ...@@ -663,7 +692,7 @@ then
if test "x${SYS}" = "xdarwin" if test "x${SYS}" = "xdarwin"
then then
PLUGINS="${PLUGINS} vcd" PLUGINS="${PLUGINS} vcd"
LIB_VCD="${LIB_VCD} -framework IOKit -framework CoreFoundation" vcd_LDFLAGS="${vcd_LDFLAGS} -framework IOKit -framework CoreFoundation"
fi fi
fi fi
...@@ -697,18 +726,18 @@ AC_ARG_ENABLE(mad, ...@@ -697,18 +726,18 @@ AC_ARG_ENABLE(mad,
if test x$enable_mad = xyes if test x$enable_mad = xyes
then then
PLUGINS="${PLUGINS} mad" PLUGINS="${PLUGINS} mad"
LIB_MAD="${LIB_MAD} -lmad" mad_LDFLAGS="${mad_LDFLAGS} -lmad"
AC_ARG_WITH(mad, AC_ARG_WITH(mad,
[ --with-mad=PATH path to libmad], [ --with-mad=PATH path to libmad],
[ if test "x$with_val" != "xno" -a "x$with_val" != "x" [ if test "x$with_val" != "xno" -a "x$with_val" != "x"
then then
CFLAGS_MAD="${CFLAGS_MAD} -I$with_val/include" mad_CFLAGS="${mad_CFLAGS} -I$with_val/include"
LIB_MAD="${LIB_MAD} -L$with_val/lib" mad_LDFLAGS="${mad_LDFLAGS} -L$with_val/lib"
fi ]) fi ])
save_CFLAGS=$CFLAGS save_CFLAGS=$CFLAGS
save_LDFLAGS=$LDFLAGS save_LDFLAGS=$LDFLAGS
CFLAGS="$CFLAGS $CFLAGS_MAD" CFLAGS="$CFLAGS $mad_CFLAGS"
LDFLAGS="$LDFLAGS $LIB_MAD" LDFLAGS="$LDFLAGS $mad_LDFLAGS"
AC_CHECK_HEADERS(mad.h, , AC_CHECK_HEADERS(mad.h, ,
[ echo "Cannot find development headers for libmad..." [ echo "Cannot find development headers for libmad..."
exit 1 exit 1
...@@ -725,9 +754,7 @@ dnl special case for BeOS ...@@ -725,9 +754,7 @@ dnl special case for BeOS
if test x$SYS = xbeos if test x$SYS = xbeos
then then
PLUGINS="${PLUGINS} beos" PLUGINS="${PLUGINS} beos"
fi
dnl default case
else
dnl dnl
dnl a52 AC3 decoder plugin dnl a52 AC3 decoder plugin
...@@ -738,7 +765,7 @@ if test "x$enableval" != "xno" -a x$SYS != xmingw32 ...@@ -738,7 +765,7 @@ if test "x$enableval" != "xno" -a x$SYS != xmingw32
then then
AC_CHECK_HEADERS(a52dec/a52.h, [ AC_CHECK_HEADERS(a52dec/a52.h, [
BUILTINS="${BUILTINS} a52" BUILTINS="${BUILTINS} a52"
LIB_A52="${LIB_A52} -la52 -lm" a52_LDFLAGS="${a52_LDFLAGS} -la52 -lm"
],[]) ],[])
fi fi
...@@ -751,7 +778,7 @@ if test "x$enableval" != "xno" ...@@ -751,7 +778,7 @@ if test "x$enableval" != "xno"
then then
AC_CHECK_HEADERS(ogg/ogg.h, [ AC_CHECK_HEADERS(ogg/ogg.h, [
PLUGINS="${PLUGINS} vorbis" PLUGINS="${PLUGINS} vorbis"
LIB_VORBIS="${LIB_VORBIS} -lvorbis" vorbis_LDFLAGS="${vorbis_LDFLAGS} -lvorbis"
],[]) ],[])
fi fi
...@@ -775,14 +802,13 @@ if test x$enable_x11 != xno && ...@@ -775,14 +802,13 @@ if test x$enable_x11 != xno &&
if test x$x_libraries = xNONE; then if test x$x_libraries = xNONE; then
x_libraries=/usr/X11R6/lib x_libraries=/usr/X11R6/lib
fi fi
saved_CPPFLAGS=$CPPFLAGS CPPFLAGS="$save_CPPFLAGS -I$x_includes"
CPPFLAGS="$CPPFLAGS -I$x_includes"
AC_CHECK_HEADERS(X11/Xlib.h, [ AC_CHECK_HEADERS(X11/Xlib.h, [
PLUGINS="${PLUGINS} x11" PLUGINS="${PLUGINS} x11"
LIB_X11="${LIB_X11} -L$x_libraries -lX11 -lXext" x11_LDFLAGS="${x11_LDFLAGS} -L$x_libraries -lX11 -lXext"
CFLAGS_X11="${CFLAGS_X11} -I$x_includes" x11_CFLAGS="${x11_CFLAGS} -I$x_includes"
]) ])
CPPFLAGS=$saved_CPPFLAGS CPPFLAGS="$save_CPPFLAGS"
fi fi
dnl dnl
...@@ -799,23 +825,23 @@ if test x$enable_xvideo != xno && ...@@ -799,23 +825,23 @@ if test x$enable_xvideo != xno &&
if test x$x_libraries = xNONE; then if test x$x_libraries = xNONE; then
x_libraries=/usr/X11R6/lib x_libraries=/usr/X11R6/lib
fi fi
saved_CPPFLAGS=$CPPFLAGS save_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$CPPFLAGS -I$x_includes" CPPFLAGS="$save_CPPFLAGS -I$x_includes"
AC_CHECK_HEADERS(X11/extensions/Xv.h, [ AC_CHECK_HEADERS(X11/extensions/Xv.h, [
saved_CFLAGS=$CFLAGS save_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext" CFLAGS="$CFLAGS -L$x_libraries -lX11 -lXext"
AC_CHECK_LIB(Xv_pic,XvSetPortAttribute, AC_CHECK_LIB(Xv_pic,XvSetPortAttribute,
# We have Xv_pic, that's good, we can build an xvideo.so plugin ! # We have Xv_pic, that's good, we can build an xvideo.so plugin !
PLUGINS="${PLUGINS} xvideo" PLUGINS="${PLUGINS} xvideo"
LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv_pic" xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv_pic"
CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes", xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes",
# We don't have Xv_pic, let's make xvideo.a as builtin # We don't have Xv_pic, let's make xvideo.a as builtin
BUILTINS="${BUILTINS} xvideo" BUILTINS="${BUILTINS} xvideo"
LIB_XVIDEO="${LIB_XVIDEO} -L$x_libraries -lX11 -lXext -lXv" xvideo_LDFLAGS="${xvideo_LDFLAGS} -L$x_libraries -lX11 -lXext -lXv"
CFLAGS_XVIDEO="${CFLAGS_XVIDEO} -I$x_includes") xvideo_CFLAGS="${xvideo_CFLAGS} -I$x_includes")
CFLAGS=$saved_CFLAGS CFLAGS="$save_CFLAGS"
] ]
CPPFLAGS=$saved_CPPFLAGS) CPPFLAGS="$save_CPPFLAGS")
fi fi
dnl dnl
...@@ -849,17 +875,16 @@ then ...@@ -849,17 +875,16 @@ then
if test x${SDL_CONFIG} != xno if test x${SDL_CONFIG} != xno
then then
PLUGINS="${PLUGINS} sdl" PLUGINS="${PLUGINS} sdl"
CFLAGS_SDL="${CFLAGS_SDL} `${SDL_CONFIG} --cflags`" sdl_CFLAGS="${sdl_CFLAGS} `${SDL_CONFIG} --cflags`"
LIB_SDL="${LIB_SDL} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`" sdl_LDFLAGS="${sdl_LDFLAGS} `${SDL_CONFIG} --libs | sed 's,-rdynamic,,'`"
save_CPPFLAGS=$CPPFLAGS CPPFLAGS="$save_CPPFLAGS $sdl_CFLAGS"
CPPFLAGS="$CPPFLAGS $CFLAGS_SDL"
AC_CHECK_HEADERS(${SDL_HEADER}, AC_DEFINE_UNQUOTED(SDL_INCLUDE_FILE, AC_CHECK_HEADERS(${SDL_HEADER}, AC_DEFINE_UNQUOTED(SDL_INCLUDE_FILE,
<${SDL_HEADER}>, Indicate whether we should use SDL/SDL.h or SDL11/SDL.h), <${SDL_HEADER}>, Indicate whether we should use SDL/SDL.h or SDL11/SDL.h),
[ AC_MSG_ERROR([The development package for SDL is not installed. [ AC_MSG_ERROR([The development package for SDL is not installed.
Please install it and try again. Alternatively you can also configure with Please install it and try again. Alternatively you can also configure with
--disable-sdl.]) --disable-sdl.])
]) ])
CPPFLAGS=$save_CPPFLAGS CPPFLAGS="$save_CPPFLAGS"
if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
then then
AC_MSG_ERROR([The development package for SDL is not installed. AC_MSG_ERROR([The development package for SDL is not installed.
...@@ -889,14 +914,14 @@ then ...@@ -889,14 +914,14 @@ then
then then
AC_CHECK_HEADERS(ddraw.h, AC_CHECK_HEADERS(ddraw.h,
[ PLUGINS="${PLUGINS} directx" [ PLUGINS="${PLUGINS} directx"
LIB_DIRECTX="${LIB_DIRECTX} -lgdi32" ]) directx_LDFLAGS="${directx_LDFLAGS} -lgdi32" ])
else else
AC_MSG_CHECKING(for directX headers in ${withval}) AC_MSG_CHECKING(for directX headers in ${withval})
if test -f ${withval}/ddraw.h if test -f ${withval}/ddraw.h
then then
PLUGINS="${PLUGINS} directx" PLUGINS="${PLUGINS} directx"
LIB_DIRECTX="${LIB_DIRECTX} -L${withval}/lib -lgdi32" directx_LDFLAGS="${directx_LDFLAGS} -L${withval}/lib -lgdi32"
INCLUDE="${INCLUDE} -I${withval}" directx_CFLAGS="${directx_CFLAGS} -I${withval}"
AC_MSG_RESULT(yes) AC_MSG_RESULT(yes)
else else
AC_MSG_RESULT(no) AC_MSG_RESULT(no)
...@@ -936,13 +961,13 @@ AC_ARG_ENABLE(ggi, ...@@ -936,13 +961,13 @@ AC_ARG_ENABLE(ggi,
if test x$enable_ggi = xyes if test x$enable_ggi = xyes
then then
PLUGINS="${PLUGINS} ggi" PLUGINS="${PLUGINS} ggi"
LIB_GGI="${LIB_GGI} -lggi" ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
AC_ARG_WITH(ggi, AC_ARG_WITH(ggi,
[ --with-ggi=PATH path to libggi], [ --with-ggi=PATH path to libggi],
[ if test "x$with_val" != "xno" -a "x$with_val" != "x" [ if test "x$with_val" != "xno" -a "x$with_val" != "x"
then then
CFLAGS_GGI="${CFLAGS_GGI} -I$with_val/include" CFLAGS_GGI="${CFLAGS_GGI} -I$with_val/include"
LIB_GGI="${LIB_GGI} -L$with_val/lib" ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_val/lib"
fi ]) fi ])
fi fi
...@@ -954,14 +979,14 @@ AC_ARG_ENABLE(glide, ...@@ -954,14 +979,14 @@ AC_ARG_ENABLE(glide,
if test x$enable_glide = xyes if test x$enable_glide = xyes
then then
PLUGINS="${PLUGINS} glide" PLUGINS="${PLUGINS} glide"
LIB_GLIDE="${LIB_GLIDE} -lglide2x -lm" glide_LDFLAGS="${glide_LDFLAGS} -lglide2x -lm"
CFLAGS_GLIDE="${CFLAGS_GLIDE} -I/usr/include/glide" glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
AC_ARG_WITH(glide, AC_ARG_WITH(glide,
[ --with-glide=PATH path to libglide], [ --with-glide=PATH path to libglide],
[ if test "x$with_val" != "xno" -a "x$with_val" != "x" [ if test "x$with_val" != "xno" -a "x$with_val" != "x"
then then
CFLAGS_GLIDE="${CFLAGS_GLIDE} -I$with_val/include" glide_CFLAGS="${glide_CFLAGS} -I$with_val/include"
LIB_GLIDE="${LIB_GLIDE} -L$with_val/lib" glide_LDFLAGS="${glide_LDFLAGS} -L$with_val/lib"
fi ]) fi ])
fi fi
...@@ -976,7 +1001,7 @@ then ...@@ -976,7 +1001,7 @@ then
if test x$have_aa = xtrue if test x$have_aa = xtrue
then then
PLUGINS="${PLUGINS} aa" PLUGINS="${PLUGINS} aa"
LIB_AA="${LIB_AA} -laa" aa_LDFLAGS="${aa_LDFLAGS} -laa"
fi fi
fi fi
...@@ -997,7 +1022,7 @@ if test x$enable_dsp != xno && ...@@ -997,7 +1022,7 @@ if test x$enable_dsp != xno &&
then then
AC_CHECK_HEADERS(soundcard.h sys/soundcard.h machine/soundcard.h, [ AC_CHECK_HEADERS(soundcard.h sys/soundcard.h machine/soundcard.h, [
PLUGINS="${PLUGINS} dsp" PLUGINS="${PLUGINS} dsp"
AC_CHECK_LIB(ossaudio,main,LIB_DSP="${LIB_DSP} -lossaudio") AC_CHECK_LIB(ossaudio,main,dsp_LDFLAGS="${dsp_LDFLAGS} -lossaudio")
]) ])
fi fi
...@@ -1012,8 +1037,8 @@ AC_ARG_ENABLE(esd, ...@@ -1012,8 +1037,8 @@ AC_ARG_ENABLE(esd,
if test x${ESD_CONFIG} != xno if test x${ESD_CONFIG} != xno
then then
PLUGINS="${PLUGINS} esd" PLUGINS="${PLUGINS} esd"
CFLAGS_ESD="${CFLAGS_ESD} `${ESD_CONFIG} --cflags`" esd_CFLAGS="${esd_CFLAGS} `${ESD_CONFIG} --cflags`"
LIB_ESD="${LIB_ESD} `${ESD_CONFIG} --libs`" esd_LDFLAGS="${esd_LDFLAGS} `${ESD_CONFIG} --libs`"
fi fi
fi]) fi])
...@@ -1028,8 +1053,8 @@ AC_ARG_ENABLE(arts, ...@@ -1028,8 +1053,8 @@ AC_ARG_ENABLE(arts,
if test x${ARTS_CONFIG} != xno if test x${ARTS_CONFIG} != xno
then then
PLUGINS="${PLUGINS} arts" PLUGINS="${PLUGINS} arts"
CFLAGS_ARTS="${CFLAGS_ARTS} `${ARTS_CONFIG} --cflags`" arts_CFLAGS="${arts_CFLAGS} `${ARTS_CONFIG} --cflags`"
LIB_ARTS="${LIB_ARTS} `${ARTS_CONFIG} --libs `" arts_LDFLAGS="${arts_LDFLAGS} `${ARTS_CONFIG} --libs `"
fi fi
fi]) fi])
...@@ -1044,7 +1069,7 @@ AC_ARG_ENABLE(alsa, ...@@ -1044,7 +1069,7 @@ AC_ARG_ENABLE(alsa,
if test x$have_alsa = xtrue if test x$have_alsa = xtrue
then then
PLUGINS="${PLUGINS} alsa" PLUGINS="${PLUGINS} alsa"
LIB_ALSA="${LIB_ALSA} -lasound -lm -ldl" alsa_LDFLAGS="${alsa_LDFLAGS} -lasound -lm -ldl"
fi fi
fi]) fi])
...@@ -1056,7 +1081,7 @@ AC_ARG_ENABLE(waveout, ...@@ -1056,7 +1081,7 @@ AC_ARG_ENABLE(waveout,
if test "x$enableval" != "xno" -a x$SYS = xmingw32 if test "x$enableval" != "xno" -a x$SYS = xmingw32
then then
PLUGINS="${PLUGINS} waveout" PLUGINS="${PLUGINS} waveout"
LIB_WAVEOUT="-lwinmm" waveout_LDFLAGS="-lwinmm"
fi fi
dnl dnl
...@@ -1092,11 +1117,10 @@ then ...@@ -1092,11 +1117,10 @@ then
then then
AC_MSG_ERROR([Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-gtk.]) AC_MSG_ERROR([Your development package for Gtk+ is too old, you need at least version 1.2.0. Please upgrade and try again. Alternatively you can also configure with --disable-gtk.])
fi fi
CFLAGS_GTK="${CFLAGS_GTK} `${GTK_CONFIG} --cflags gtk`" gtk_CFLAGS="${gtk_CFLAGS} `${GTK_CONFIG} --cflags gtk`"
LIB_GTK="${LIB_GTK} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`" gtk_LDFLAGS="${gtk_LDFLAGS} `${GTK_CONFIG} --libs gtk | sed 's,-rdynamic,,'`"
# now look for the gtk.h header # now look for the gtk.h header
saved_CPPFLAGS=$CPPFLAGS CPPFLAGS="$save_CPPFLAGS $gtk_CFLAGS"
CPPFLAGS="$CPPFLAGS $CFLAGS_GTK"
ac_cv_gtk_headers=yes ac_cv_gtk_headers=yes
AC_CHECK_HEADERS(gtk/gtk.h glib.h gdk/gdk.h, , [ AC_CHECK_HEADERS(gtk/gtk.h glib.h gdk/gdk.h, , [
ac_cv_gtk_headers=no ac_cv_gtk_headers=no
...@@ -1107,7 +1131,7 @@ then ...@@ -1107,7 +1131,7 @@ then
PLUGINS="${PLUGINS} gtk" PLUGINS="${PLUGINS} gtk"
ALIASES="${ALIASES} gvlc" ALIASES="${ALIASES} gvlc"
fi fi
CPPFLAGS=$saved_CPPFLAGS CPPFLAGS="$save_CPPFLAGS"
fi fi
fi fi
...@@ -1121,12 +1145,11 @@ AC_ARG_ENABLE(gnome, ...@@ -1121,12 +1145,11 @@ AC_ARG_ENABLE(gnome,
AC_PATH_PROG(GNOME_CONFIG, gnome-config, no) AC_PATH_PROG(GNOME_CONFIG, gnome-config, no)
if test -x ${GNOME_CONFIG} if test -x ${GNOME_CONFIG}
then then
CFLAGS_GNOME="${CFLAGS_GNOME} `${GNOME_CONFIG} --cflags gtk gnomeui`" gnome_CFLAGS="${gnome_CFLAGS} `${GNOME_CONFIG} --cflags gtk gnomeui`"
LIB_GNOME="${LIB_GNOME} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`" gnome_LDFLAGS="${gnome_LDFLAGS} `${GNOME_CONFIG} --libs gnomeui | sed 's,-rdynamic,,'`"
fi fi
# now look for the gnome.h header # now look for the gnome.h header
saved_CPPFLAGS=$CPPFLAGS CPPFLAGS="$save_CPPFLAGS $gnome_CFLAGS"
CPPFLAGS="$CPPFLAGS $CFLAGS_GNOME"
AC_CHECK_HEADERS(gnome.h, [ AC_CHECK_HEADERS(gnome.h, [
PLUGINS="${PLUGINS} gnome" PLUGINS="${PLUGINS} gnome"
ALIASES="${ALIASES} gnome-vlc" ALIASES="${ALIASES} gnome-vlc"
...@@ -1134,8 +1157,7 @@ AC_ARG_ENABLE(gnome, ...@@ -1134,8 +1157,7 @@ AC_ARG_ENABLE(gnome,
AC_MSG_ERROR([Can't find gnome headers. Please install the gnome AC_MSG_ERROR([Can't find gnome headers. Please install the gnome
developement tools or remove the --enable-gnome option]) developement tools or remove the --enable-gnome option])
]) ])
CPPFLAGS="$save_CPPFLAGS"
CPPFLAGS=$saved_CPPFLAGS
fi]) fi])
dnl dnl
...@@ -1146,8 +1168,8 @@ AC_ARG_ENABLE(qt, ...@@ -1146,8 +1168,8 @@ AC_ARG_ENABLE(qt,
[if test x$enable_qt = xyes; then [if test x$enable_qt = xyes; then
PLUGINS="${PLUGINS} qt" PLUGINS="${PLUGINS} qt"
ALIASES="${ALIASES} qvlc" ALIASES="${ALIASES} qvlc"
LIB_QT="${LIB_QT} -lqt -L${QTDIR}/lib" qt_LDFLAGS="${qt_LDFLAGS} -lqt -L${QTDIR}/lib"
CFLAGS_QT="${CFLAGS_QT} -I/usr/include/qt -I${QTDIR}/include" qt_CFLAGS="${qt_CFLAGS} -I/usr/include/qt -I${QTDIR}/include"
if test -x ${QTDIR}/bin/moc if test -x ${QTDIR}/bin/moc
then then
MOC=${QTDIR}/bin/moc MOC=${QTDIR}/bin/moc
...@@ -1164,9 +1186,9 @@ AC_ARG_ENABLE(kde, ...@@ -1164,9 +1186,9 @@ AC_ARG_ENABLE(kde,
[if test x$enable_kde = xyes; then [if test x$enable_kde = xyes; then
PLUGINS="${PLUGINS} kde" PLUGINS="${PLUGINS} kde"
ALIASES="${ALIASES} kvlc" ALIASES="${ALIASES} kvlc"
LIB_KDE="${LIB_KDE} -L${KDEDIR}/lib -lkfile" kde_LDFLAGS="${kde_LDFLAGS} -L${KDEDIR}/lib -lkfile"
CFLAGS_KDE="${CFLAGS_KDE} -I/usr/include/kde -I/usr/include/qt" kde_CFLAGS="${kde_CFLAGS} -I/usr/include/kde -I/usr/include/qt"
CFLAGS_KDE="${CFLAGS_KDE} -I${KDEDIR}/include -I${QTDIR}/include" kde_CFLAGS="${kde_CFLAGS} -I${KDEDIR}/include -I${QTDIR}/include"
if test -x ${QTDIR}/bin/moc if test -x ${QTDIR}/bin/moc
then then
MOC=${QTDIR}/bin/moc MOC=${QTDIR}/bin/moc
...@@ -1183,15 +1205,15 @@ AC_ARG_ENABLE(macosx, ...@@ -1183,15 +1205,15 @@ AC_ARG_ENABLE(macosx,
[if test x$enable_macosx = xyes [if test x$enable_macosx = xyes
then then
BUILTINS="${BUILTINS} macosx" BUILTINS="${BUILTINS} macosx"
LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc" macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC" macosx_CFLAGS="${macosx_CFLAGS} -ObjC"
LIB_COMMON="${LIB_COMMON} -ObjC" LDFLAGS="${LDFLAGS} -ObjC"
fi], fi],
[AC_CHECK_HEADERS(Cocoa/Cocoa.h, [AC_CHECK_HEADERS(Cocoa/Cocoa.h,
BUILTINS="${BUILTINS} macosx" BUILTINS="${BUILTINS} macosx"
LIB_MACOSX="${LIB_MACOSX} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc" macosx_LDFLAGS="${macosx_LDFLAGS} -framework CoreAudio -framework AudioToolbox -framework Cocoa -framework AGL -framework QuickTime -lobjc"
CFLAGS_MACOSX="${CFLAGS_MACOSX} -ObjC" macosx_CFLAGS="${macosx_CFLAGS} -ObjC"
LIB_COMMON="${LIB_COMMON} -ObjC" LDFLAGS="${LDFLAGS} -ObjC"
)]) )])
dnl dnl
...@@ -1203,7 +1225,7 @@ AC_ARG_ENABLE(qnx, ...@@ -1203,7 +1225,7 @@ AC_ARG_ENABLE(qnx,
then then
AC_CHECK_HEADERS(Ph.h, [ AC_CHECK_HEADERS(Ph.h, [
PLUGINS="${PLUGINS} qnx" PLUGINS="${PLUGINS} qnx"
LIB_QNX="${LIB_QNX} -lasound -lph" qnx_LDFLAGS="${qnx_LDFLAGS} -lasound -lph"
]) ])
fi fi
...@@ -1230,7 +1252,7 @@ AC_ARG_ENABLE(ncurses, ...@@ -1230,7 +1252,7 @@ AC_ARG_ENABLE(ncurses,
[ --enable-ncurses ncurses interface support (default disabled)], [ --enable-ncurses ncurses interface support (default disabled)],
[if test x$enable_ncurses = xyes; then [if test x$enable_ncurses = xyes; then
PLUGINS="${PLUGINS} ncurses" PLUGINS="${PLUGINS} ncurses"
LIB_NCURSES="${LIB_NCURSES} -lncurses" ncurses_LDFLAGS="${ncurses_LDFLAGS} -lncurses"
fi]) fi])
dnl dnl
...@@ -1244,13 +1266,10 @@ then ...@@ -1244,13 +1266,10 @@ then
if test x$have_lirc = xtrue if test x$have_lirc = xtrue
then then
PLUGINS="${PLUGINS} lirc" PLUGINS="${PLUGINS} lirc"
LIB_LIRC="${LIB_LIRC} -llirc_client" lirc_LDFLAGS="${lirc_LDFLAGS} -llirc_client"
fi fi
fi fi
dnl end of non-BeOS stuff
fi
AC_ARG_WITH(,[Misc options:]) AC_ARG_WITH(,[Misc options:])
dnl dnl
...@@ -1312,17 +1331,6 @@ then ...@@ -1312,17 +1331,6 @@ then
AC_DEFINE(WORDS_BIGENDIAN, 1, big endian system) AC_DEFINE(WORDS_BIGENDIAN, 1, big endian system)
fi fi
dnl
dnl DLLs - used for Win32 package build
dnl
DLL_PATH=.
AC_ARG_WITH(dll-path,
[ --with-dll-path=PATH path to Win32 DLLs (default search in \$PWD)],
[ if test "x$withval" != "xno"
then
DLL_PATH=$withval
fi ])
dnl dnl
dnl Profiling dnl Profiling
dnl dnl
...@@ -1336,7 +1344,7 @@ AC_ARG_ENABLE(cprof, ...@@ -1336,7 +1344,7 @@ AC_ARG_ENABLE(cprof,
[ --enable-cprof cprof profiling (default disabled)], [ --enable-cprof cprof profiling (default disabled)],
[ if test x$enableval = xyes; [ if test x$enableval = xyes;
then then
LIB_COMMON="${LIB_COMMON} -lcprof" LDFLAGS="${LDFLAGS} -lcprof"
CPROF=1 CPROF=1
fi fi
]) ])
...@@ -1369,7 +1377,7 @@ AC_ARG_ENABLE(st, ...@@ -1369,7 +1377,7 @@ AC_ARG_ENABLE(st,
fi]) fi])
]) ])
LIB_COMMON="${LIB_COMMON} ${THREAD_LIB}" LDFLAGS="${LDFLAGS} ${THREAD_LIB}"
dnl dnl
dnl Plug-ins - this must be AT THE END dnl Plug-ins - this must be AT THE END
...@@ -1415,7 +1423,6 @@ AC_SUBST(ARCH) ...@@ -1415,7 +1423,6 @@ AC_SUBST(ARCH)
AC_SUBST(PLUGINS) AC_SUBST(PLUGINS)
AC_SUBST(BUILTINS) AC_SUBST(BUILTINS)
AC_SUBST(ALIASES) AC_SUBST(ALIASES)
AC_SUBST(INCLUDE)
AC_SUBST(DEBUG) AC_SUBST(DEBUG)
AC_SUBST(ASM) AC_SUBST(ASM)
AC_SUBST(CPROF) AC_SUBST(CPROF)
...@@ -1426,83 +1433,78 @@ AC_SUBST(RELEASE) ...@@ -1426,83 +1433,78 @@ AC_SUBST(RELEASE)
AC_SUBST(MOC) AC_SUBST(MOC)
AC_SUBST(WINDRES) AC_SUBST(WINDRES)
AC_SUBST(BCBUILDER) AC_SUBST(BCBUILDER)
AC_SUBST(DLL_PATH)
AC_SUBST(VLC_PACKAGE) AC_SUBST(VLC_PACKAGE)
AC_SUBST(VLC_VERSION) AC_SUBST(VLC_VERSION)
AC_SUBST(NEED_GETOPT)
AC_SUBST(LDFLAGS)
AC_SUBST(PLDFLAGS)
AC_SUBST(LIB_COMMON)
AC_SUBST(LIB_VLC)
AC_SUBST(LIB_A52)
AC_SUBST(LIB_AA)
AC_SUBST(LIB_ALSA)
AC_SUBST(LIB_ARTS)
AC_SUBST(LIB_BEOS)
AC_SUBST(LIB_CHROMA_I420_RGB)
AC_SUBST(LIB_DARWIN)
AC_SUBST(LIB_DIRECTX)
AC_SUBST(LIB_DSP)
AC_SUBST(LIB_DVD)
AC_SUBST(LIB_DVDREAD)
AC_SUBST(LIB_ESD)
AC_SUBST(LIB_FILTER_DISTORT)
AC_SUBST(LIB_GGI)
AC_SUBST(LIB_GLIDE)
AC_SUBST(LIB_GNOME)
AC_SUBST(LIB_GTK)
AC_SUBST(LIB_IDCTALTIVEC)
AC_SUBST(LIB_IMDCT)
AC_SUBST(LIB_IMDCT3DN)
AC_SUBST(LIB_IMDCTSSE)
AC_SUBST(LIB_IPV4)
AC_SUBST(LIB_IPV6)
AC_SUBST(LIB_KDE)
AC_SUBST(LIB_LIRC)
AC_SUBST(LIB_MACOSX)
AC_SUBST(LIB_MAD)
AC_SUBST(LIB_MEMCPYALTIVEC)
AC_SUBST(LIB_MOTIONALTIVEC)
AC_SUBST(LIB_MPEG_TS)
AC_SUBST(LIB_NCURSES)
AC_SUBST(LIB_QNX)
AC_SUBST(LIB_QT)
AC_SUBST(LIB_RC)
AC_SUBST(LIB_SDL)
AC_SUBST(LIB_VCD)
AC_SUBST(LIB_VORBIS)
AC_SUBST(LIB_WAVEOUT)
AC_SUBST(LIB_WIN32)
AC_SUBST(LIB_X11)
AC_SUBST(LIB_XVIDEO)
AC_SUBST(CFLAGS_COMMON)
AC_SUBST(CFLAGS_VLC)
AC_SUBST(CFLAGS_ARTS)
AC_SUBST(CFLAGS_DVD)
AC_SUBST(CFLAGS_DVDREAD)
AC_SUBST(CFLAGS_ESD)
AC_SUBST(CFLAGS_GLIDE)
AC_SUBST(CFLAGS_GNOME)
AC_SUBST(CFLAGS_GTK)
AC_SUBST(CFLAGS_KDE)
AC_SUBST(CFLAGS_IDCTALTIVEC)
AC_SUBST(CFLAGS_MACOSX)
AC_SUBST(CFLAGS_MAD)
AC_SUBST(CFLAGS_MEMCPYALTIVEC)
AC_SUBST(CFLAGS_MOTIONALTIVEC)
AC_SUBST(CFLAGS_OPTIM) AC_SUBST(CFLAGS_OPTIM)
AC_SUBST(CFLAGS_OPTIM_NODEBUG) AC_SUBST(CFLAGS_OPTIM_NODEBUG)
AC_SUBST(CFLAGS_QT) AC_SUBST(LDFLAGS)
AC_SUBST(CFLAGS_SDL)
AC_SUBST(CFLAGS_WIN32)
AC_SUBST(CFLAGS_X11)
AC_SUBST(CFLAGS_XVIDEO)
AC_SUBST(NEED_GETOPT) AC_SUBST(vlc_CFLAGS)
AC_SUBST(plugins_CFLAGS)
AC_SUBST(builtins_CFLAGS)
AC_SUBST(arts_CFLAGS)
AC_SUBST(dvd_CFLAGS)
AC_SUBST(dvdread_CFLAGS)
AC_SUBST(directx_CFLAGS)
AC_SUBST(esd_CFLAGS)
AC_SUBST(glide_CFLAGS)
AC_SUBST(gnome_CFLAGS)
AC_SUBST(gtk_CFLAGS)
AC_SUBST(kde_CFLAGS)
AC_SUBST(idctaltivec_CFLAGS)
AC_SUBST(macosx_CFLAGS)
AC_SUBST(mad_CFLAGS)
AC_SUBST(memcpyaltivec_CFLAGS)
AC_SUBST(motionaltivec_CFLAGS)
AC_SUBST(qt_CFLAGS)
AC_SUBST(sdl_CFLAGS)
AC_SUBST(x11_CFLAGS)
AC_SUBST(xvideo_CFLAGS)
AC_SUBST(vlc_LDFLAGS)
AC_SUBST(plugins_LDFLAGS)
AC_SUBST(builtins_LDFLAGS)
AC_SUBST(a52_LDFLAGS)
AC_SUBST(aa_LDFLAGS)
AC_SUBST(alsa_LDFLAGS)
AC_SUBST(arts_LDFLAGS)
AC_SUBST(beos_LDFLAGS)
AC_SUBST(chroma_i420_rgb_LDFLAGS)
AC_SUBST(directx_LDFLAGS)
AC_SUBST(dsp_LDFLAGS)
AC_SUBST(dvd_LDFLAGS)
AC_SUBST(dvdread_LDFLAGS)
AC_SUBST(esd_LDFLAGS)
AC_SUBST(filter_distort_LDFLAGS)
AC_SUBST(ggi_LDFLAGS)
AC_SUBST(glide_LDFLAGS)
AC_SUBST(gnome_LDFLAGS)
AC_SUBST(gtk_LDFLAGS)
AC_SUBST(idctaltivec_LDFLAGS)
AC_SUBST(imdct_LDFLAGS)
AC_SUBST(imdct3dn_LDFLAGS)
AC_SUBST(imdctsse_LDFLAGS)
AC_SUBST(ipv4_LDFLAGS)
AC_SUBST(kde_LDFLAGS)
AC_SUBST(lirc_LDFLAGS)
AC_SUBST(macosx_LDFLAGS)
AC_SUBST(mad_LDFLAGS)
AC_SUBST(memcpyaltivec_LDFLAGS)
AC_SUBST(motionaltivec_LDFLAGS)
AC_SUBST(ncurses_LDFLAGS)
AC_SUBST(qnx_LDFLAGS)
AC_SUBST(qt_LDFLAGS)
AC_SUBST(rc_LDFLAGS)
AC_SUBST(sdl_LDFLAGS)
AC_SUBST(vcd_LDFLAGS)
AC_SUBST(vorbis_LDFLAGS)
AC_SUBST(waveout_LDFLAGS)
AC_SUBST(x11_LDFLAGS)
AC_SUBST(xvideo_LDFLAGS)
AC_OUTPUT([Makefile.opts po/Makefile.in]) AC_OUTPUT([Makefile.opts po/Makefile.in])
......
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; NSIS installer script for vlc ; ; NSIS installer script for vlc ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; written by Pierre Baillet <oct@zoy.org> 29/7/01 v0.2
; modifications by Samuel Hocevar <sam@zoy.org> 12/11/01
;;;;;;;;;;;;; ;;;;;;;;;;;;;
; CHANGELOG ; ; CHANGELOG ;
;;;;;;;;;;;;; ;;;;;;;;;;;;;
; modifications by Samuel Hocevar <sam@zoy.org> 05 Apr 2002
; . no need for @VERSION@ anymore
; . updated script for NSIS 1.96.
; modifications by Samuel Hocevar <sam@zoy.org> 12 Nov 2001
; . removed version information. ; . removed version information.
; written by Pierre Baillet <oct@zoy.org> 29 Jul 2001 v0.2
; . lists all installed files so as to prevent installer.nsi to be included ; . lists all installed files so as to prevent installer.nsi to be included
; in the release. ; in the release.
; . really remove the shortcuts. ; . really remove the shortcuts.
...@@ -17,14 +20,15 @@ ...@@ -17,14 +20,15 @@
; General configuration ; ; General configuration ;
;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;
OutFile vlc-@VERSION@.exe OutFile ..\vlc-${VERSION}-win32.exe
Name "the VideoLAN Client" Name "the VideoLAN Client"
Caption "vlc @VERSION@ for Win32 Setup" Caption "VideoLAN Client '${VERSION}' for Win32 Setup"
;Icon ../share/gvlc_win32.ico ;Icon ../share/gvlc32x32.ico
CRCCheck on CRCCheck on
InstallDir $PROGRAMFILES\vlc InstallDir "$PROGRAMFILES\VideoLAN\VideoLAN Client"
; check if the program has already been installed, if so, take this dir ; check if the program has already been installed, if so, take this dir
; as install dir ; as install dir
InstallDirRegKey HKLM SOFTWARE\VideoLAN\VLC "Install_Dir" InstallDirRegKey HKLM SOFTWARE\VideoLAN\VLC "Install_Dir"
...@@ -33,15 +37,13 @@ DirText "Choose a directory to install in to:" ...@@ -33,15 +37,13 @@ DirText "Choose a directory to install in to:"
AutoCloseWindow false AutoCloseWindow false
ShowInstDetails show ShowInstDetails show
; uninstall stuff
UninstallText "This will uninstall the VideoLAN Client. Hit next to continue."
UninstallExeName "vlc-uninst.exe"
SetOverwrite ifnewer SetOverwrite ifnewer
SetDatablockOptimize on SetDatablockOptimize on
SetDateSave off SetDateSave off
SetCompress auto SetCompress auto
UninstallText "This will uninstall the VideoLAN Client. Hit next to continue."
;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;
; Install settings ; ; Install settings ;
;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;
...@@ -50,17 +52,19 @@ Section "Install" ...@@ -50,17 +52,19 @@ Section "Install"
SetOutPath $INSTDIR SetOutPath $INSTDIR
File vlc.exe File vlc.exe
File *.so
File *.dll
File *.txt File *.txt
File /r share File /r share
File /r plugins
CreateDirectory "$SMPROGRAMS\VideoLAN" CreateDirectory "$SMPROGRAMS\VideoLAN"
CreateShortCut "$SMPROGRAMS\VideoLAN\vlc_@VERSION@.lnk" "$INSTDIR\vlc.exe" CreateShortCut "$SMPROGRAMS\VideoLAN\vlc.lnk" "$INSTDIR\vlc.exe"
CreateShortCut "$SMPROGRAMS\VideoLAN\Uninstall VLC.lnk" "$INSTDIR\vlc-uninst.exe" CreateShortCut "$SMPROGRAMS\VideoLAN\Uninstall VLC.lnk" "$INSTDIR\uninstall.exe"
WriteUninstaller "uninstall.exe"
WriteRegStr HKLM SOFTWARE\VideoLAN\VLC "Install_Dir" $INSTDIR WriteRegStr HKLM SOFTWARE\VideoLAN\VLC "Install_Dir" $INSTDIR
WriteRegStr HKLM SOFTWARE\VideoLAN\VLC "version" "@VERSION@" WriteRegStr HKLM SOFTWARE\VideoLAN\VLC "version" "${VERSION}"
Exec "explorer $SMPROGRAMS\VideoLAN\" Exec "explorer $SMPROGRAMS\VideoLAN\"
SectionEnd SectionEnd
...@@ -73,6 +77,8 @@ Section "Uninstall" ...@@ -73,6 +77,8 @@ Section "Uninstall"
RMDir $SMPROGRAMS\VideoLAN RMDir $SMPROGRAMS\VideoLAN
Delete $INSTDIR\share\* Delete $INSTDIR\share\*
RMDir $INSTDIR\share RMDir $INSTDIR\share
Delete $INSTDIR\plugins\*
RMDir $INSTDIR\plugins
Delete $INSTDIR\* Delete $INSTDIR\*
RMDir $INSTDIR RMDir $INSTDIR
DeleteRegKey HKLM SOFTWARE\VideoLAN DeleteRegKey HKLM SOFTWARE\VideoLAN
......
*.a *.a
*.so *.so
*.so.* *.so.*
*.tds
*.lib
...@@ -2,3 +2,5 @@ ...@@ -2,3 +2,5 @@
*.lo *.lo
*.o.* *.o.*
*.lo.* *.lo.*
intfwin.mak
*MAKE*
...@@ -44,7 +44,9 @@ MODULE_CONFIG_STOP ...@@ -44,7 +44,9 @@ MODULE_CONFIG_STOP
MODULE_INIT_START MODULE_INIT_START
SET_DESCRIPTION( "Win32 interface module" ) SET_DESCRIPTION( "Win32 interface module" )
ADD_CAPABILITY( INTF, 100 ) ADD_CAPABILITY( INTF, 100 )
ADD_SHORTCUT( "win" )
ADD_SHORTCUT( "win32" ) ADD_SHORTCUT( "win32" )
ADD_SHORTCUT( "intfwin" )
MODULE_INIT_STOP MODULE_INIT_STOP
MODULE_ACTIVATE_START MODULE_ACTIVATE_START
......
VLC_ICON ICON "share/gvlc_win32.ico" VLC_ICON ICON "share/vlc48x48.ico"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment