forked from opnsense/ports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (40 loc) · 1.23 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Created by: Anders Nordby <[email protected]>
# $FreeBSD$
PORTNAME= dv2jpg
PORTVERSION= 1.1
PORTREVISION= 12
CATEGORIES= multimedia
MASTER_SITES= SF
MAINTAINER= [email protected]
COMMENT= Convert Type-2 DV codec-encoded AVI streams to mjpeg-encoded AVI
LICENSE= GPLv2+
LIB_DEPENDS= libdv.so:multimedia/libdv
USE_GNOME= gdkpixbuf
MAKEFILE= makefile
PORTDOCS= README.avilib README.dv2jpg.html
PLIST_FILES= bin/avijoin bin/dv2jpg
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
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
post-patch-PAL-on:
@${REINPLACE_CMD} -e 's|VIDEO=NTSC|# VIDEO=NTSC|; \
s|# VIDEO=PAL|VIDEO=PAL|' \
${WRKSRC}/${MAKEFILE}
do-install:
.for f in avijoin dv2jpg
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin/
.endfor
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>