diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2003-09-22 05:01:39 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2003-09-22 05:01:39 +0000 |
commit | 9d89ca037b61f649e289918f6b0f28f68d803006 (patch) | |
tree | 44ffd5c8b8213a2dcf161ed762651a0445ebd3a7 /multimedia | |
parent | a2590f385bfe2c6cfe956c996b9b0ffc4de65803 (diff) | |
download | ports-9d89ca037b61f649e289918f6b0f28f68d803006.tar.gz ports-9d89ca037b61f649e289918f6b0f28f68d803006.zip |
Notes
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/ffmpeg-devel/Makefile | 16 | ||||
-rw-r--r-- | multimedia/ffmpeg-devel/pkg-plist | 2 | ||||
-rw-r--r-- | multimedia/ffmpeg/Makefile | 16 | ||||
-rw-r--r-- | multimedia/ffmpeg/pkg-plist | 2 |
4 files changed, 34 insertions, 2 deletions
diff --git a/multimedia/ffmpeg-devel/Makefile b/multimedia/ffmpeg-devel/Makefile index 6d36f2d3e7e4..bb8a2b3c7d67 100644 --- a/multimedia/ffmpeg-devel/Makefile +++ b/multimedia/ffmpeg-devel/Makefile @@ -55,6 +55,10 @@ EXTRA_PATCHES+= ${FILESDIR}/extra-bktr-patch-libavformat::Makefile .if exists(${LOCALBASE}/lib/libSDL-1.1.so) #WITH_SDL=yes .endif +## freetype2 +.if exists(${LOCALBASE}/lib/libfreetype.so) +WITH_FREETYPE2=yes +.endif ## imlib2 .if exists(${X11BASE}/lib/libImlib2.so) WITH_IMLIB2=yes @@ -80,6 +84,14 @@ CONFIGURE_ARGS+= --enable-a52 \ CONFIGURE_ARGS+= --enable-a52 \ --disable-a52bin .endif +## enable freetype2 +.if defined(WITH_FREETYPE2) +LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2 + +PLIST_SUB+= DRAWTEXT="" +.else +PLIST_SUB+= DRAWTEXT="@comment " +.endif ## enable imlib2 .if !defined(WITHOUT_VHOOK) && defined(WITH_IMLIB2) LIB_DEPENDS+= Imlib2.1:${PORTSDIR}/graphics/imlib2 @@ -129,6 +141,10 @@ CONFIGURE_ARGS+= --enable-vorbis .endif pre-everything:: +.ifndef(WITH_FREETYPE2) + @${ECHO_MSG} 'Define WITH_FREETYPE2 to enable drawtext FREETYPE2 codec' + @${ECHO_MSG} +.endif .ifndef(WITHOUT_LIBA52) @${ECHO_MSG} "You can disable liba52 support by defining WITHOUT_LIBA52" @${ECHO_MSG} diff --git a/multimedia/ffmpeg-devel/pkg-plist b/multimedia/ffmpeg-devel/pkg-plist index d6ebec96d363..b5e9b552ee94 100644 --- a/multimedia/ffmpeg-devel/pkg-plist +++ b/multimedia/ffmpeg-devel/pkg-plist @@ -14,7 +14,7 @@ lib/libavcodec.a lib/libavcodec.so lib/libavcodec.so.%%SHLIB_VERSION%% lib/libavformat.a -%%VHOOK%%lib/vhook/drawtext.so +%%VHOOK%%%%DRAWTEXT%%lib/vhook/drawtext.so %%VHOOK%%lib/vhook/fish.so %%VHOOK%%%%IMLIB2%%lib/vhook/imlib2.so %%VHOOK%%lib/vhook/null.so diff --git a/multimedia/ffmpeg/Makefile b/multimedia/ffmpeg/Makefile index 6d36f2d3e7e4..bb8a2b3c7d67 100644 --- a/multimedia/ffmpeg/Makefile +++ b/multimedia/ffmpeg/Makefile @@ -55,6 +55,10 @@ EXTRA_PATCHES+= ${FILESDIR}/extra-bktr-patch-libavformat::Makefile .if exists(${LOCALBASE}/lib/libSDL-1.1.so) #WITH_SDL=yes .endif +## freetype2 +.if exists(${LOCALBASE}/lib/libfreetype.so) +WITH_FREETYPE2=yes +.endif ## imlib2 .if exists(${X11BASE}/lib/libImlib2.so) WITH_IMLIB2=yes @@ -80,6 +84,14 @@ CONFIGURE_ARGS+= --enable-a52 \ CONFIGURE_ARGS+= --enable-a52 \ --disable-a52bin .endif +## enable freetype2 +.if defined(WITH_FREETYPE2) +LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2 + +PLIST_SUB+= DRAWTEXT="" +.else +PLIST_SUB+= DRAWTEXT="@comment " +.endif ## enable imlib2 .if !defined(WITHOUT_VHOOK) && defined(WITH_IMLIB2) LIB_DEPENDS+= Imlib2.1:${PORTSDIR}/graphics/imlib2 @@ -129,6 +141,10 @@ CONFIGURE_ARGS+= --enable-vorbis .endif pre-everything:: +.ifndef(WITH_FREETYPE2) + @${ECHO_MSG} 'Define WITH_FREETYPE2 to enable drawtext FREETYPE2 codec' + @${ECHO_MSG} +.endif .ifndef(WITHOUT_LIBA52) @${ECHO_MSG} "You can disable liba52 support by defining WITHOUT_LIBA52" @${ECHO_MSG} diff --git a/multimedia/ffmpeg/pkg-plist b/multimedia/ffmpeg/pkg-plist index d6ebec96d363..b5e9b552ee94 100644 --- a/multimedia/ffmpeg/pkg-plist +++ b/multimedia/ffmpeg/pkg-plist @@ -14,7 +14,7 @@ lib/libavcodec.a lib/libavcodec.so lib/libavcodec.so.%%SHLIB_VERSION%% lib/libavformat.a -%%VHOOK%%lib/vhook/drawtext.so +%%VHOOK%%%%DRAWTEXT%%lib/vhook/drawtext.so %%VHOOK%%lib/vhook/fish.so %%VHOOK%%%%IMLIB2%%lib/vhook/imlib2.so %%VHOOK%%lib/vhook/null.so |