diff options
author | ahze <ahze@FreeBSD.org> | 2007-06-12 17:00:26 +0800 |
---|---|---|
committer | ahze <ahze@FreeBSD.org> | 2007-06-12 17:00:26 +0800 |
commit | 9f1db8a57157326ae1176a2583ac6c3beec26207 (patch) | |
tree | f00a0c02021c6342ff5c75ae84cfcfa5749cd785 /multimedia | |
parent | d4af3ab82c886a3f86ab27d43fde248694aa4c0c (diff) | |
download | freebsd-ports-gnome-9f1db8a57157326ae1176a2583ac6c3beec26207.tar.gz freebsd-ports-gnome-9f1db8a57157326ae1176a2583ac6c3beec26207.tar.zst freebsd-ports-gnome-9f1db8a57157326ae1176a2583ac6c3beec26207.zip |
- Make ffserver look for ffserver.conf in PREFIX/etc
- Don't install man pages when NOPORTDOCS is defined
PR: ports/113606
ports/113245
Submitted by: Joao Rocha Braga Filho
Sunpoet Po-Chuan Hsieh
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/ffmpeg/Makefile | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/multimedia/ffmpeg/Makefile b/multimedia/ffmpeg/Makefile index c10fba9835d0..dcdccd800cc6 100644 --- a/multimedia/ffmpeg/Makefile +++ b/multimedia/ffmpeg/Makefile @@ -7,6 +7,7 @@ PORTNAME= ffmpeg DISTVERSION= 2007-05-30 +PORTREVISION= 1 CATEGORIES= multimedia audio ipv6 net MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= ahze @@ -36,7 +37,7 @@ SHLIB_VER= 1 PLIST_SUB= SHLIB_VER=${SHLIB_VER} USE_LDCONFIG= yes -MAN1= ffmpeg.1 +FFMPEG_MAN1= ffmpeg.1 ## DOC_FILES= COPYING Changelog README @@ -98,7 +99,7 @@ CONFIGURE_ARGS+= --enable-libfaad \ --enable-libfaadbin .endif USE_RC_SUBR= ffserver -MAN1+= ffserver.1 +FFMPEG_MAN1+= ffserver.1 #### BROKEN LIST ##### WITHOUT_THEORA= yes @@ -131,7 +132,7 @@ CONFIGURE_ARGS+= --enable-libogg .ifdef(WITH_SDL) || ${HAVE_SDL:Msdl} USE_SDL+= sdl -MAN1+= ffplay.1 +FFMPEG_MAN1+= ffplay.1 PLIST_FILES+= bin/ffplay .else @@ -181,6 +182,10 @@ LIB_DEPENDS+= xvidcore.4:${PORTSDIR}/multimedia/xvid CONFIGURE_ARGS+= --enable-xvid .endif +.ifndef(NOPORTDOCS) +MAN1= ${FFMPEG_MAN1} +.endif + pre-everything:: .ifndef(WITHOUT_A52) @${ECHO_MSG} 'You can disable liba52 support by defining WITHOUT_LIBA52' @@ -219,8 +224,8 @@ pre-everything:: @${ECHO_MSG} 'by defining WITH_OPTIMIZED_CFLAGS' @${ECHO_MSG} .endif -.ifndef(WITH_VORBIS) - @${ECHO_MSG} 'Define WITH_VORBIS to enable libvorbisenc VORBIS codec' +.ifndef(WITHOUT_VORBIS) + @${ECHO_MSG} 'Define WITHOUT_VORBIS to enable libvorbisenc VORBIS codec' @${ECHO_MSG} .endif .ifndef(WITH_X264) @@ -244,6 +249,8 @@ post-patch: .endif @${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \ ${WRKSRC}/common.mak + @${REINPLACE_CMD} -e 's|/etc/ffserver.conf|${PREFIX}/etc/ffserver.conf|' \ + ${WRKSRC}/ffserver.c @${REINPLACE_CMD} -E \ -e "s|(EXTRALIBS[[:space:]]*=)|\1-L${LOCALBASE}/lib |g; \ s|%%LOCALBASE%%|${LOCALBASE}|g; s|%%SHLIB_VER%%|${SHLIB_VER}|g; \ @@ -269,7 +276,7 @@ post-patch: -e 's|(-lImlib2)|-L ${LOCALBASE}/lib \1|' \ ${WRKSRC}/vhook/Makefile .endif -.if defined(WITH_IPV6) +.if !defined(WITHOUT_IPV6) @${REINPLACE_CMD} -E \ -e 's|^(ipv6).*$$|\1=yes|' \ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} @@ -300,7 +307,7 @@ post-configure: ${WRKSRC}/config.mak \ ${WRKSRC}/libavcodec/Makefile .endif -.ifndef(WITH_THEORA) +.ifdef(WITHOUT_THEORA) @${REINPLACE_CMD} -E \ -e 's|^(CONFIG_LIBTHEORA).*$$|\1=no|' \ ${WRKSRC}/config.mak |