# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # chaplin # chaplin/pkg-descr # chaplin/distinfo # chaplin/Makefile # echo c - chaplin mkdir -p chaplin > /dev/null 2>&1 echo x - chaplin/pkg-descr sed 's/^X//' >chaplin/pkg-descr << 'END-of-chaplin/pkg-descr' XThe tool parses a DVD disc or image and extracts the exact duration for each Xchapter of a given title. Then the total list of chapters is split into a Xuser-selectable number of subsets. Each subset should have approximately the Xsame duration. X XThis is a very useful approach for multi-cd rips. You no longer simply split Xthe movie in the middle of the frame count but you choose two sets of chapters Xfor both parts which both have (almost) the same length. Then the disc-break Xis not at a rather random point (concering the story telling of the movie) Xbut at the end of a dvd-chapter. X XThe chapter timings and the split sets are also very useful for chapter Xnavigation (even on a single disc). The normal output mode of chaplin thus Xprints the chapter's relative beginning time and the duration in a wide number Xof formats, ranging from seconds, frame counts to timestamps. X XFor S/VCD mastering chaplin can also produce vcdimager XML files for each Xdisc. There a complete sequence structure with chapter entry points is Xdefined. Also the full navigation setup for chapter hopping is provided. XAdditionally you can add chapter menus and automatically create the necessary Xmenu pages out of thumbnails extracted directly from the DVD. X XWWW: http://www.lallafa.de/bp/chaplin.html END-of-chaplin/pkg-descr echo x - chaplin/distinfo sed 's/^X//' >chaplin/distinfo << 'END-of-chaplin/distinfo' XMD5 (chaplin-1.10.tgz) = 76971356e3c2aebaca45dc0780490c0a XSIZE (chaplin-1.10.tgz) = 23843 END-of-chaplin/distinfo echo x - chaplin/Makefile sed 's/^X//' >chaplin/Makefile << 'END-of-chaplin/Makefile' X# New ports collection makefile for: chaplin X# Date created: 26 October 2003 X# Whom: Mezz X# X# $FreeBSD$ X# X XPORTNAME= chaplin XPORTVERSION= 1.10 XCATEGORIES= multimedia XMASTER_SITES= http://www.lallafa.de/bp/files/ XEXTRACT_SUFX= .tgz X XMAINTAINER= mezz@FreeBSD.org XCOMMENT= A program to raw copy chapters from a dvd using libdvdread X XLIB_DEPENDS= dvdread.3:${PORTSDIR}/multimedia/libdvdread XRUN_DEPENDS= transcode:${PORTSDIR}/multimedia/transcode \ X convert:${PORTSDIR}/graphics/ImageMagick \ X mplex:${PORTSDIR}/multimedia/mjpegtools X XWRKSRC= ${WRKDIR}/${PORTNAME} XPLIST_FILES= bin/${PORTNAME} bin/${PORTNAME}-genmenu XUSE_REINPLACE= yes X X.include X X.if ${OSVERSION} < 500000 XWITH_DVD_DEVICE?=/dev/acd0c X.else XWITH_DVD_DEVICE?=/dev/acd0 X.endif X Xpre-everything:: X @${ECHO_MSG} "===> The default DVD device is ${WITH_DVD_DEVICE}" X @${ECHO_MSG} "===> Define WITH_DVD_DEVICE if you want to change the default" X @${ECHO_MSG} "===> For example, 'make WITH_DVD_DEVICE=\"/dev/somedevice\"'" X @${ECHO_MSG} "===>" X X# Do not add ${CFLAGS} or it will break the build. Xpost-patch: X @${REINPLACE_CMD} -e 's|gcc|${CC}|g ; \ X s|/soft/libdvdread|${LOCALBASE}|g' ${WRKSRC}/Makefile X @${REINPLACE_CMD} -e 's|/dev/dvd|${WITH_DVD_DEVICE}|g' \ X ${WRKSRC}/chaplin.c X Xdo-install: X @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/ X @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}-genmenu ${PREFIX}/bin/ X X.include END-of-chaplin/Makefile exit