freebsd-ports/multimedia/dv2jpg/Makefile
Tijl Coosemans 3ce0f21808 devel/glib12 x11-toolkits/gtk12:
- Convert to USES=libtool and bump dependent ports
- Add INSTALL_TARGET=install-strip
- Remove patches that renamed include directories and libraries so they
  didn't conflict with early development versions of glib/gtk 2.0
2014-09-13 15:11:27 +00:00

57 lines
1.3 KiB
Makefile

# Created by: Anders Nordby <anders@FreeBSD.org>
# $FreeBSD$
PORTNAME= dv2jpg
PORTVERSION= 1.1
PORTREVISION= 12
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>