svn commit: r396719 - head/multimedia/transcode
Jan Beich
jbeich at FreeBSD.org
Fri Sep 11 22:28:35 UTC 2015
Author: jbeich
Date: Fri Sep 11 22:28:34 2015
New Revision: 396719
URL: https://svnweb.freebsd.org/changeset/ports/396719
Log:
multimedia/transcode: convert to target helpers
- Reset option sorting to default (alphabetical)
PR: 202773
Submitted by: Naram Qashat <cyberbotx at cyberbotx.com> (maintainer)
Modified:
head/multimedia/transcode/Makefile (contents, props changed)
Modified: head/multimedia/transcode/Makefile
==============================================================================
--- head/multimedia/transcode/Makefile Fri Sep 11 22:28:19 2015 (r396718)
+++ head/multimedia/transcode/Makefile Fri Sep 11 22:28:34 2015 (r396719)
@@ -25,7 +25,6 @@ CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip
-NO_OPTIONS_SORT= yes
OPTIONS_DEFINE= DOCS OPTIMIZED_CFLAGS X11 MPEG2 BKTR POSTPROC FREETYPE LAME \
XVID X264 OGG VORBIS THEORA DVDREAD DV QUICKTIME LZO A52 \
FAAC LIBXML2 MJPEGTOOLS SDL IMAGEMAGICK JPEG ICONV V4L
@@ -126,15 +125,6 @@ post-extract:
@${RM} ${WRKSRC}/import/v4l/videodev*
post-patch:
-.if ${PORT_OPTIONS:MLZO}
- @${REINPLACE_CMD} -e 's|%%NUV%%|nuv|' ${WRKSRC}/import/Makefile.in
-.else
- @${REINPLACE_CMD} -e 's|%%NUV%%||' ${WRKSRC}/import/Makefile.in
-.endif
-.if !${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
- @${FIND} ${WRKSRC} -type f | ${XARGS} -n 10 -x ${REINPLACE_CMD} \
- -e 's|-O[236]|${CFLAGS}|'
-.endif
@${REINPLACE_CMD} -E -e 's|loff_t|uint64_t|' ${WRKSRC}/avilib/avidump.c
@${REINPLACE_CMD} -E -e 's|<SDL/|<|' ${WRKSRC}/filter/preview/display.h
@${REINPLACE_CMD} -e '/^static.*lrint/s|static ||' ${WRKSRC}/filter/filter_modfps.c
@@ -154,6 +144,16 @@ post-patch:
${WRKSRC}/import/import_mov.c \
${WRKSRC}/import/probe_mov.c
+post-patch-LZO-on:
+ @${REINPLACE_CMD} -e 's|%%NUV%%|nuv|' ${WRKSRC}/import/Makefile.in
+
+post-patch-LZO-off:
+ @${REINPLACE_CMD} -e 's|%%NUV%%||' ${WRKSRC}/import/Makefile.in
+
+post-patch-OPTIMIZED_CFLAGS-off:
+ @${FIND} ${WRKSRC} -type f | ${XARGS} -n 10 -x ${REINPLACE_CMD} \
+ -e 's|-O[236]|${CFLAGS}|'
+
post-stage:
@(cd ${STAGEDIR}${PREFIX} && \
${FIND} -s lib/transcode -type f -or -type l >> ${TMPPLIST})
More information about the svn-ports-head
mailing list