9fa06126e0
- Add license (GPLv2) - Use the new format for LIB_DEPENDS - Comply with OptionsNG - Use PLIST_FILES instead of pkg-plist - Support STAGEDIR - Simplify DOCS installation handling and add Option - Add OPTIONS_SINGLE=VIDEO-FORMAT and NTSC, PAL SINGLE Options, and REINPLACE - Use files/makefile instead of files/patch-makefile and REINPLACE - Add REINPLACE instead of simple patch PR: ports/179154 Submitted by: nemysis (self)
57 lines
1.3 KiB
Makefile
57 lines
1.3 KiB
Makefile
# Created by: Anders Nordby <anders@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= dv2jpg
|
|
PORTVERSION= 1.1
|
|
PORTREVISION= 11
|
|
CATEGORIES= multimedia
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Convert Type-2 DV codec-encoded AVI streams to mjpeg-encoded AVI
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LIB_DEPENDS= libdv.so:${PORTSDIR}/multimedia/libdv
|
|
|
|
USE_GNOME= gdkpixbuf
|
|
MAKEFILE= makefile
|
|
|
|
PLIST_FILES= bin/avijoin bin/dv2jpg
|
|
|
|
PORTDOCS= README.avilib README.dv2jpg.html
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
OPTIONS_SINGLE= VIDEO-FORMAT
|
|
OPTIONS_SINGLE_VIDEO-FORMAT= NTSC PAL
|
|
OPTIONS_DEFAULT= NTSC
|
|
|
|
VIDEO-FORMAT_DESC= Use default video format
|
|
NTSC_DESC= Default video format NTSC
|
|
PAL_DESC= Default video format PAL
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-extract:
|
|
${INSTALL_DATA} ${FILESDIR}/makefile ${WRKSRC}
|
|
${RM} ${WRKSRC}/avijoin ${WRKSRC}/dv2jpg ${WRKSRC}/*.o
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/opt/vidpb/lib/avilib.h|avilib.h|' \
|
|
${WRKSRC}/avijoin.c
|
|
|
|
.if ${PORT_OPTIONS:MPAL}
|
|
@${REINPLACE_CMD} -e 's|VIDEO=NTSC|# VIDEO=NTSC|; \
|
|
s|# VIDEO=PAL|VIDEO=PAL|' \
|
|
${WRKSRC}/${MAKEFILE}
|
|
.endif
|
|
|
|
do-install:
|
|
.for f in avijoin dv2jpg
|
|
(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${f} ${STAGEDIR}${PREFIX}/bin/)
|
|
.endfor
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|