aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2015-09-12 06:28:34 +0800
committerjbeich <jbeich@FreeBSD.org>2015-09-12 06:28:34 +0800
commitebd8cdcadad4673a87b6cb6294abf789de87c8f6 (patch)
tree3f3b504c59fe2a22fbbee00b6422b8cb4bd5e3a5 /multimedia
parentc587291a845598e01d07573bb599874175bf8691 (diff)
downloadfreebsd-ports-gnome-ebd8cdcadad4673a87b6cb6294abf789de87c8f6.tar.gz
freebsd-ports-gnome-ebd8cdcadad4673a87b6cb6294abf789de87c8f6.tar.zst
freebsd-ports-gnome-ebd8cdcadad4673a87b6cb6294abf789de87c8f6.zip
multimedia/transcode: convert to target helpers
- Reset option sorting to default (alphabetical) PR: 202773 Submitted by: Naram Qashat <cyberbotx@cyberbotx.com> (maintainer)
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/transcode/Makefile20
1 files changed, 10 insertions, 10 deletions
diff --git a/multimedia/transcode/Makefile b/multimedia/transcode/Makefile
index 92edd5cdd55b..9fbea2e35658 100644
--- a/multimedia/transcode/Makefile
+++ b/multimedia/transcode/Makefile
@@ -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})