blob: 274d3f73fc978b60898ae8c4e479f862d08bb6eb (
plain) (
blame)
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# New ports collection makefile for: NuppelViodeo
# Date created: Mon 10 Feb 2003 22:21:51 CET
# Whom: Steve O'Hara-Smith <steve@sohara.org>
#
# $FreeBSD$
#
PORTNAME= NuppelVideo
PORTVERSION= 0.52.a
PORTREVISION= 3
CATEGORIES= multimedia audio
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= arved
DISTNAME= ${PORTNAME}-${PORTVERSION:C/.(.)$/\1/}
MAINTAINER= steve@sohara.org
COMMENT= A very low CPU usage VCR/DVR application
RUN_DEPENDS= wish8.4:${PORTSDIR}/x11-toolkits/tk84
DEPRECATED= Unmaintained upstream for years. The nuppelvideo format is now supported by mencoder
EXPIRATION_DATE=2007-10-03
USE_XLIB= yes
USE_GMAKE= yes
PORTDOCS= README
# find dependencies
CFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include \
-L${LOCALBASE}/lib -L${X11BASE}/lib
.include <bsd.port.pre.mk>
###
## Auto detected features
###
.if ${ARCH} == "i386"
. if (defined(MACHINE_CPU) && ${MACHINE_CPU:Mmmx:L} == "mmx")
WITH_MMX=yes
. endif
.endif
###
## Port options
###
.ifdef(WITH_OPTIMIZED_CFLAGS)
CFLAGS+= -O3 -ffast-math -fomit-frame-pointer -finline-functions \
-funroll-loops -fexpensive-optimizations
.endif
#
.ifdef(WITH_MMX)
CFLAGS+= -DMMX
.endif
pre-everything::
.ifndef(WITH_OPTIMIZED_CFLAGS)
@${ECHO_MSG}
@${ECHO_MSG} 'You can enable additional compilation optimizations'
@${ECHO_MSG} 'by defining WITH_OPTIMIZED_CFLAGS'
.endif
.if (${ARCH} == "i386" && !defined(WITH_MMX))
@${ECHO_MSG}
@${ECHO_MSG} 'You can enable MMX compilation optimizations'
@${ECHO_MSG} 'by defining WITH_MMX'
.endif
post-patch:
# C{C,FLAGS} safeness
@${REINPLACE_CMD} -E -e \
's|^CFLAGS.*$$|#|' \
-e 's|^CC.*$$|#|' \
-e 's|^(COPTSRT).*$$|\1=\$$(CFLAGS)|' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|[(]__u8[)]strm[[]|((__u8*)strm)[|' ${WRKSRC}/RTjpegN.c
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_MAN} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>
|