aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Yeo <daveryeo@telus.net>2007-12-05 23:15:24 +0000
committerDiego Biurrun <diego@biurrun.de>2007-12-05 23:15:24 +0000
commitd22e844250d511587023ef78457f7fdd21fc23a5 (patch)
treeb78faa73f881263a1d692d8a114227669373c7df
parentb17270878e53de0c444b51a20b929187fceb9631 (diff)
downloadffmpeg-d22e844250d511587023ef78457f7fdd21fc23a5.tar.gz
OS/2 support restored in cleaner form.
patch by Dave Yeo, daveryeo telus net Originally committed as revision 11172 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--Changelog2
-rw-r--r--common.mak3
-rwxr-xr-xconfigure31
3 files changed, 34 insertions, 2 deletions
diff --git a/Changelog b/Changelog
index 272275dce3..3a913e8bfe 100644
--- a/Changelog
+++ b/Changelog
@@ -90,7 +90,7 @@ version <next>
- codebook generator
- RoQ video encoder
- QTRLE encoder
-- OS/2 support removed
+- OS/2 support removed and restored again
- AC-3 decoder
- NUT muxer (since r10052)
- Matroska muxer
diff --git a/common.mak b/common.mak
index babcd10329..8da643cc11 100644
--- a/common.mak
+++ b/common.mak
@@ -28,6 +28,7 @@ $(SLIBNAME): $(SLIBNAME_WITH_MAJOR)
$(LN_S) $^ $@
$(SLIBNAME_WITH_MAJOR): $(OBJS)
+ $(SLIB_CREATE_DEF_CMD)
$(CC) $(SHFLAGS) $(LDFLAGS) -o $@ $^ $(EXTRALIBS) $(EXTRAOBJS)
$(SLIB_EXTRA_CMD)
@@ -51,7 +52,7 @@ depend dep: $(SRCS)
clean::
rm -f *.o *~ *.a *.lib *.so *.so.* *.dylib *.dll \
- *.def *.dll.a *.exp *.ho
+ *.def *.dll.a *.exp *.ho *.map
distclean: clean
rm -f .depend
diff --git a/configure b/configure
index 703d0d504d..3aecec90a7 100755
--- a/configure
+++ b/configure
@@ -71,6 +71,7 @@ show_help(){
echo " --enable-pp enable GPLed postprocessing support [default=no]"
echo " --enable-swscaler software scaler support [default=no]"
echo " --enable-beosthreads use BeOS threads [default=no]"
+ echo " --enable-os2threads use OS/2 threads [default=no]"
echo " --enable-pthreads use pthreads [default=no]"
echo " --enable-w32threads use Win32 threads [default=no]"
echo " --enable-x11grab enable X11 grabbing [default=no]"
@@ -637,6 +638,7 @@ CONFIG_LIST="
THREADS_LIST='
beosthreads
+ os2threads
pthreads
w32threads
'
@@ -1219,6 +1221,34 @@ case $targetos in
targetos=irix
ranlib="echo ignoring ranlib"
;;
+ os/2*)
+ ar="emxomfar -p256"
+ ranlib="echo ignoring ranlib"
+ strip="lxlite"
+ ln_s="cp -f"
+ add_cflags "-Zomf"
+ EXESUF=".exe"
+ FFLDFLAGS="-Zomf -Zbin-files -Zargs-wild -Zmap"
+ SHFLAGS='$(NAME).def -Zdll -Zomf'
+ FFSERVERLDFLAGS=""
+ LIBSUF="_s.lib"
+ SLIBPREF=""
+ SLIBSUF=".dll"
+ SLIBNAME_WITH_VERSION='$(SLIBPREF)$(NAME)-$(LIBVERSION)$(SLIBSUF)'
+ SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(shell echo $(NAME) | cut -c1-6)$(LIBMAJOR)$(SLIBSUF)'
+ SLIB_CREATE_DEF_CMD='echo LIBRARY $(SLIBNAME_WITH_MAJOR) INITINSTANCE TERMINSTANCE > $(NAME).def; \
+ echo PROTMODE >> $(NAME).def; \
+ echo CODE PRELOAD MOVEABLE DISCARDABLE >> $(NAME).def; \
+ echo DATA PRELOAD MOVEABLE MULTIPLE NONSHARED >> $(NAME).def; \
+ echo EXPORTS >> $(NAME).def; \
+ emxexp -o $(OBJS) >> $(NAME).def'
+ SLIB_EXTRA_CMD='emximp -o $(LIBPREF)$(NAME)_dll.a $(NAME).def; \
+ emximp -o $(LIBPREF)$(NAME)_dll.lib $(NAME).def;'
+ SLIB_INSTALL_EXTRA_CMD='install -m 644 $(LIBPREF)$(NAME)_dll.a $(LIBPREF)$(NAME)_dll.lib "$(LIBDIR)"'
+ SLIB_UNINSTALL_EXTRA_CMD='rm -f "$(LIBDIR)"/$(LIBPREF)$(NAME)_dll.a "$(LIBDIR)"/$(LIBPREF)$(NAME)_dll.lib'
+ vhook="no"
+ ;;
+
*)
targetos="${targetos}-UNKNOWN"
;;
@@ -1936,6 +1966,7 @@ if enabled shared; then
echo "SLIBNAME=${SLIBNAME}" >> config.mak
echo "SLIBNAME_WITH_VERSION=${SLIBNAME_WITH_VERSION}" >> config.mak
echo "SLIBNAME_WITH_MAJOR=${SLIBNAME_WITH_MAJOR}" >> config.mak
+ echo "SLIB_CREATE_DEF_CMD=${SLIB_CREATE_DEF_CMD}" >> config.mak
echo "SLIB_EXTRA_CMD=${SLIB_EXTRA_CMD}" >> config.mak
echo "SLIB_INSTALL_EXTRA_CMD=${SLIB_INSTALL_EXTRA_CMD}" >> config.mak
echo "SLIB_UNINSTALL_EXTRA_CMD=${SLIB_UNINSTALL_EXTRA_CMD}" >> config.mak