summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rw-r--r--contrib/Jamfile43
1 files changed, 15 insertions, 28 deletions
diff --git a/contrib/Jamfile b/contrib/Jamfile
index f6648c23f..54e286533 100644
--- a/contrib/Jamfile
+++ b/contrib/Jamfile
@@ -211,38 +211,25 @@ LibMp3Lame $(SUBDIR)/lib/libmp3lame.a : $(SUBDIR)/lame.tar.gz ;
# libmp4v2
rule LibMp4v2
{
- Depends $(<) : $(>) ;
- Depends lib : $(<) ;
-}
-if $(OS) != CYGWIN
-{
- actions LibMp4v2
+ LIBMP4V2_PATCH = "" ;
+ if $(OS) = CYGWIN
{
- cd `dirname $(>)` && CONTRIB=`pwd` &&
- rm -rf mpeg4ip && (gzip -dc mpeg4ip.tar.gz | tar xf - ) &&
- cd mpeg4ip &&
- $(PATCH) -p1 < ../patch-mpeg4ip.patch &&
- ./bootstrap --cache-file=$CONTRIB/config.cache --disable-mp3lame --disable-faac --disable-x264 --disable-server --disable-player &&
- $(MAKE) -C lib/mp4v2 libmp4v2.la && cp lib/mp4v2/.libs/libmp4v2.a $CONTRIB/lib &&
- cp mpeg4ip_config.h include/mpeg4ip.h include/mpeg4ip_version.h \
- include/mpeg4ip_win32.h lib/mp4v2/*.h $CONTRIB/include &&
- $(STRIP) $CONTRIB/lib/libmp4v2.a
+ LIBMP4V2_PATCH += "$(PATCH) -p1 < ../patch_mpeg4ip_cygwin.patch && " ;
}
+ LIBMP4V2_PATCH += "$(PATCH) -p1 < ../patch-mpeg4ip.patch && " ;
+ Depends $(<) : $(>) ;
+ Depends lib : $(<) ;
}
-else
+actions LibMp4v2
{
- actions LibMp4v2
- {
- cd `dirname $(>)` && CONTRIB=`pwd` &&
- rm -rf mpeg4ip && (gzip -dc mpeg4ip.tar.gz | tar xf - ) &&
- cd mpeg4ip &&
- $(PATCH) -p1 < ../patch-mpeg4ip.patch && $(PATCH) -p1 < ../patch_mpeg4ip_cygwin.patch &&
- ./bootstrap --cache-file=$CONTRIB/config.cache --disable-mp3lame --disable-faac --disable-x264 --disable-server --disable-player &&
- $(MAKE) -C lib/mp4v2 libmp4v2.la && cp lib/mp4v2/.libs/libmp4v2.a $CONTRIB/lib &&
- cp mpeg4ip_config.h include/mpeg4ip.h include/mpeg4ip_version.h \
- include/mpeg4ip_win32.h lib/mp4v2/*.h $CONTRIB/include &&
- $(STRIP) $CONTRIB/lib/libmp4v2.a
- }
+ cd `dirname $(>)` && CONTRIB=`pwd` &&
+ rm -rf mpeg4ip && (gzip -dc mpeg4ip.tar.gz | tar xf - ) &&
+ cd mpeg4ip && $(LIBMP4V2_PATCH)
+ ./bootstrap --cache-file=$CONTRIB/config.cache --disable-mp3lame --disable-faac --disable-x264 --disable-server --disable-player &&
+ $(MAKE) -C lib/mp4v2 libmp4v2.la && cp lib/mp4v2/.libs/libmp4v2.a $CONTRIB/lib &&
+ cp mpeg4ip_config.h include/mpeg4ip.h include/mpeg4ip_version.h \
+ include/mpeg4ip_win32.h lib/mp4v2/*.h $CONTRIB/include &&
+ $(STRIP) $CONTRIB/lib/libmp4v2.a
}
Wget $(SUBDIR)/mpeg4ip.tar.gz : $(SUBDIR)/version_mpeg4ip.txt ;
LibMp4v2 $(SUBDIR)/lib/libmp4v2.a : $(SUBDIR)/mpeg4ip.tar.gz ;