1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00

- Fix build when WITH_LZO is not defined. This disables NuppelVideo import

support which needs lzo.

Reviewed by:	erwin, itetcu
This commit is contained in:
Diane Bruce 2008-08-15 22:42:37 +00:00
parent 0d117481de
commit b33fd50e92
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=218654
2 changed files with 16 additions and 2 deletions

View File

@ -21,8 +21,6 @@ LIB_DEPENDS= dvdread.5:${PORTSDIR}/multimedia/libdvdread \
avcodec.1:${PORTSDIR}/multimedia/ffmpeg
BUILD_DEPENDS= iconv:${PORTSDIR}/converters/libiconv
BROKEN= does not build
USE_BZIP2= yes
FAKEDIR= ${WRKDIR}/fake
PLIST= ${WRKDIR}/plist
@ -267,6 +265,11 @@ pre-everything::
.endif
post-patch:
.if defined(WITH_LZO) || (exists(${LOCALBASE}/lib/liblzo2.so) && !defined(WITHOUT_LZO))
${REINPLACE_CMD} -e 's|%%NUV%%|nuv|' ${WRKSRC}/import/Makefile.in
.else
${REINPLACE_CMD} -e 's|%%NUV%%||' ${WRKSRC}/import/Makefile.in
.endif
.if !defined(WITH_OPTIMIZED_CFLAGS)
@${FIND} ${WRKSRC} -type f | ${XARGS} -n 10 -x ${REINPLACE_CMD} \
-e 's|-O[236]|${CFLAGS}|'

View File

@ -0,0 +1,11 @@
--- import/Makefile.in.orig 2008-08-15 00:00:00.000000000 -0400
+++ import/Makefile.in 2008-08-15 00:01:38.000000000 -0400
@@ -798,7 +798,7 @@
@NET_STREAM_TRUE@NET_MOD = import_net.la
BSDAV_MOD = import_bsdav.la
pkgdir = $(MOD_PATH)
-SUBDIRS = nuv v4l
+SUBDIRS = v4l %%NUV%%
pkg_LTLIBRARIES = \
import_avi.la \
import_mpeg2.la \