o Add WITH_FREETYPE2 knob: handles optional drawtext vhook plugin

o Fixes bento build

Submitted by:	bento, kris,
		Steve O'Hara-Smith <steve@sohara.org>
This commit is contained in:
Mario Sergio Fujikawa Ferreira 2003-09-22 05:01:39 +00:00
parent a2590f385b
commit 9d89ca037b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=89106
4 changed files with 34 additions and 2 deletions

View File

@ -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}

View File

@ -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

View File

@ -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}

View File

@ -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