1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

- Replace FAKEDIR with STAGEDIR and only use auto-plist for lib/transcode

- Remove USE_AUTOTOOLS
- Add DOCS option
- Remove -lpthread patching
This commit is contained in:
Tijl Coosemans 2014-10-03 11:34:03 +00:00
parent f57f8ce185
commit 5353791bd2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=369883
2 changed files with 138 additions and 23 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= transcode
PORTVERSION= 1.1.7
PORTREVISION= 16
PORTREVISION= 17
CATEGORIES= multimedia
MASTER_SITES= http://cdn.bitbucket.org/france/transcode-tcforge/downloads/
@ -14,20 +14,18 @@ LICENSE= GPLv2
LIB_DEPENDS= libavcodec.so:${PORTSDIR}/multimedia/ffmpeg
FAKEDIR= ${WRKDIR}/fake
PLIST= ${WRKDIR}/plist
USE_LDCONFIG= yes
USES= gmake pkgconfig tar:bzip2 libtool
WANT_SDL= yes
WANT_GNOME= yes
USE_AUTOTOOLS= libtoolize
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-oss
CPPFLAGS+= -isystem ${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS+= --enable-oss
NO_OPTIONS_SORT= yes
OPTIONS_DEFINE= OPTIMIZED_CFLAGS X11 MPEG2 BKTR POSTPROC FREETYPE LAME XVID \
X264 OGG VORBIS THEORA DVDREAD DV QUICKTIME LZO A52 \
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
OPTIONS_DEFAULT= LAME DVDREAD JPEG ICONV
BKTR_DESC= Bktr capture card support
@ -139,8 +137,6 @@ post-patch:
s|-lMagick|-lMagickCore|g' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
pre-configure:
@${REINPLACE_CMD} -E -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -E -e 's|-ldl||g' ${WRKSRC}/configure
@${REINPLACE_CMD} -E -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -E -e 's|WRKSRC|${WRKSRC}|g' ${WRKSRC}/export/Makefile.in
@ -151,19 +147,8 @@ pre-configure:
${WRKSRC}/import/import_mov.c \
${WRKSRC}/import/probe_mov.c
pre-install:
${RM} -rf ${PLIST} ${FAKEDIR}
${MKDIR} ${FAKEDIR}
${TOUCH} -f ${PLIST}
@(cd ${WRKSRC} && ${MAKE_CMD} install prefix=${FAKEDIR} mandir=${FAKEDIR}/man)
.for dir in bin share/doc lib
@(cd ${FAKEDIR}/${dir} && ${FIND} -s * -type f -o -type l | \
${SED} -e 's|^|${dir}/|' | grep -v \\.la$$ >> ${PLIST})
@(cd ${FAKEDIR}/${dir} && ${FIND} -d * -type d | \
${SED} -e 's|^|@dirrm ${dir}/|' >> ${PLIST})
.endfor
@(cd ${FAKEDIR}/man && ${FIND} -s * -type f -o -type l | \
${SED} -e 's|^|man/|' \
-e 's|$$|.gz|' >> ${PLIST})
post-stage:
@(cd ${STAGEDIR}${PREFIX} && \
${FIND} -s lib/transcode -type f >> ${TMPPLIST})
.include <bsd.port.mk>

View File

@ -0,0 +1,130 @@
bin/avifix
bin/aviindex
bin/avimerge
bin/avisplit
bin/avisync
bin/tccat
bin/tcdecode
bin/tcdemux
bin/tcextract
bin/tcmodinfo
bin/tcmp3cut
bin/tcprobe
bin/tcscan
bin/tcxmlcheck
bin/tcxpm2rgb
bin/tcyait
bin/transcode
man/man1/avifix.1.gz
man/man1/aviindex.1.gz
man/man1/avimerge.1.gz
man/man1/avisplit.1.gz
man/man1/avisync.1.gz
man/man1/tccat.1.gz
man/man1/tcdecode.1.gz
man/man1/tcdemux.1.gz
man/man1/tcexport.1.gz
man/man1/tcextract.1.gz
man/man1/tcmodchain.1.gz
man/man1/tcmodinfo.1.gz
man/man1/tcprobe.1.gz
man/man1/tcpvmexportd.1.gz
man/man1/tcscan.1.gz
man/man1/tcxmlcheck.1.gz
man/man1/transcode.1.gz
man/man1/transcode_export.1.gz
man/man1/transcode_filter.1.gz
man/man1/transcode_import.1.gz
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/DV-to-DVD-HOWTO.txt
%%PORTDOCS%%%%DOCSDIR%%/README.Inverse.Telecine.txt
%%PORTDOCS%%%%DOCSDIR%%/README.cluster
%%PORTDOCS%%%%DOCSDIR%%/README.dv
%%PORTDOCS%%%%DOCSDIR%%/README.filter.modfps
%%PORTDOCS%%%%DOCSDIR%%/README.rip
%%PORTDOCS%%%%DOCSDIR%%/README.sync
%%PORTDOCS%%%%DOCSDIR%%/README.vcd
%%PORTDOCS%%%%DOCSDIR%%/README.xvid-credits
%%PORTDOCS%%%%DOCSDIR%%/RELNOTES-0.6.13
%%PORTDOCS%%%%DOCSDIR%%/RELNOTES-1.1.0
%%PORTDOCS%%%%DOCSDIR%%/export_ffmpeg.txt
%%PORTDOCS%%%%DOCSDIR%%/export_mp2.txt
%%PORTDOCS%%%%DOCSDIR%%/faq
%%PORTDOCS%%%%DOCSDIR%%/filter-socket.txt
%%PORTDOCS%%%%DOCSDIR%%/filter_dnr.txt
%%PORTDOCS%%%%DOCSDIR%%/filter_logo.txt
%%PORTDOCS%%%%DOCSDIR%%/filter_logoaway.txt
%%PORTDOCS%%%%DOCSDIR%%/filter_text.txt
%%PORTDOCS%%%%DOCSDIR%%/filter_yuvdenoise.txt
%%PORTDOCS%%%%DOCSDIR%%/framerate.txt
%%PORTDOCS%%%%DOCSDIR%%/html/dv.html
%%PORTDOCS%%%%DOCSDIR%%/html/dvd.html
%%PORTDOCS%%%%DOCSDIR%%/html/export_divx.html
%%PORTDOCS%%%%DOCSDIR%%/html/export_divx4.php
%%PORTDOCS%%%%DOCSDIR%%/html/export_divx5.php
%%PORTDOCS%%%%DOCSDIR%%/html/export_fame.php
%%PORTDOCS%%%%DOCSDIR%%/html/export_ogg.php
%%PORTDOCS%%%%DOCSDIR%%/html/export_opendivx.php
%%PORTDOCS%%%%DOCSDIR%%/html/export_xvid.php
%%PORTDOCS%%%%DOCSDIR%%/html/import_avi.html
%%PORTDOCS%%%%DOCSDIR%%/html/import_dv.html
%%PORTDOCS%%%%DOCSDIR%%/html/import_dvd.html
%%PORTDOCS%%%%DOCSDIR%%/html/import_mp3.html
%%PORTDOCS%%%%DOCSDIR%%/html/import_mpeg2.html
%%PORTDOCS%%%%DOCSDIR%%/html/import_mpeg3.html
%%PORTDOCS%%%%DOCSDIR%%/html/import_null.html
%%PORTDOCS%%%%DOCSDIR%%/html/import_nuv.html
%%PORTDOCS%%%%DOCSDIR%%/html/import_ogg.php
%%PORTDOCS%%%%DOCSDIR%%/html/import_raw.html
%%PORTDOCS%%%%DOCSDIR%%/html/import_vob.html
%%PORTDOCS%%%%DOCSDIR%%/html/import_yuv4mpeg.html
%%PORTDOCS%%%%DOCSDIR%%/html/index.html
%%PORTDOCS%%%%DOCSDIR%%/html/intro.html
%%PORTDOCS%%%%DOCSDIR%%/html/mes0-00000.png
%%PORTDOCS%%%%DOCSDIR%%/html/mes4-00000.png
%%PORTDOCS%%%%DOCSDIR%%/html/mes5-00000.png
%%PORTDOCS%%%%DOCSDIR%%/html/mes6-00000.png
%%PORTDOCS%%%%DOCSDIR%%/html/mes7-00000.png
%%PORTDOCS%%%%DOCSDIR%%/html/misc.html
%%PORTDOCS%%%%DOCSDIR%%/html/modules.html
%%PORTDOCS%%%%DOCSDIR%%/html/mpeg.html
%%PORTDOCS%%%%DOCSDIR%%/html/new.png
%%PORTDOCS%%%%DOCSDIR%%/html/other.html
%%PORTDOCS%%%%DOCSDIR%%/html/post.html
%%PORTDOCS%%%%DOCSDIR%%/html/pre.html
%%PORTDOCS%%%%DOCSDIR%%/html/smart.html
%%PORTDOCS%%%%DOCSDIR%%/html/sorry.html
%%PORTDOCS%%%%DOCSDIR%%/html/sub0-00000.png
%%PORTDOCS%%%%DOCSDIR%%/html/sub1-00000.png
%%PORTDOCS%%%%DOCSDIR%%/html/sub2-00000.png
%%PORTDOCS%%%%DOCSDIR%%/html/sub3-00000.png
%%PORTDOCS%%%%DOCSDIR%%/html/subtitles.html
%%PORTDOCS%%%%DOCSDIR%%/html/table.php
%%PORTDOCS%%%%DOCSDIR%%/html/tc.png
%%PORTDOCS%%%%DOCSDIR%%/import-xml.txt
%%PORTDOCS%%%%DOCSDIR%%/import_nvrec.txt
%%PORTDOCS%%%%DOCSDIR%%/import_v4l2.txt
%%PORTDOCS%%%%DOCSDIR%%/import_x11.txt
%%PORTDOCS%%%%DOCSDIR%%/import_yuv.txt
%%PORTDOCS%%%%DOCSDIR%%/pvm3/export_pvm.txt
%%PORTDOCS%%%%DOCSDIR%%/pvm3/pvm_10x.cfg
%%PORTDOCS%%%%DOCSDIR%%/pvm3/pvm_11x.cfg
%%PORTDOCS%%%%DOCSDIR%%/pvm3/pvm_config.txt
%%PORTDOCS%%%%DOCSDIR%%/tech/OPTIMIZERS
%%PORTDOCS%%%%DOCSDIR%%/tech/architecture.txt
%%PORTDOCS%%%%DOCSDIR%%/tech/avi_comments.txt
%%PORTDOCS%%%%DOCSDIR%%/tech/clone.txt
%%PORTDOCS%%%%DOCSDIR%%/tech/export-API.txt
%%PORTDOCS%%%%DOCSDIR%%/tech/filter-API.txt
%%PORTDOCS%%%%DOCSDIR%%/tech/filter_template.c
%%PORTDOCS%%%%DOCSDIR%%/tech/html/index.html
%%PORTDOCS%%%%DOCSDIR%%/tech/html/tc_basic.css
%%PORTDOCS%%%%DOCSDIR%%/tech/html/tc_frame_buffer.html
%%PORTDOCS%%%%DOCSDIR%%/tech/html/tc_input_rotation.html
%%PORTDOCS%%%%DOCSDIR%%/tech/html/tc_libraries.html
%%PORTDOCS%%%%DOCSDIR%%/tech/html/tc_logo.png
%%PORTDOCS%%%%DOCSDIR%%/tech/ibp_support.txt
%%PORTDOCS%%%%DOCSDIR%%/tech/import-API.txt
%%PORTDOCS%%%%DOCSDIR%%/tech/libraries.txt
%%PORTDOCS%%%%DOCSDIR%%/tech/module-system-API.txt
%%PORTDOCS%%%%DOCSDIR%%/template.cfg.txt