blob: f3845b063e8151b5a81534c9448a0865955a75d3 (
plain)
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
|
# New ports collection makefile for: kbtv
# Date created: Tue Oct 4 01:59:31 UTC 2005
# Whom: danny@ricin.com
#
# $FreeBSD$
#
PORTNAME= kbtv
DISTVERSION= 1.2.4
CATEGORIES= multimedia python kde
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://freebsd.ricin.com/ports/distfiles/
MASTER_SITE_SUBDIR= ${PORTNAME}
EXTRACT_SUFX= .tbz
MAINTAINER= danny@ricin.com
COMMENT= KDE TV viewer for FreeBSD
RUN_DEPENDS= kdepyuic:${PORTSDIR}/x11-toolkits/py-kde
BUILD_DEPENDS= swig1.3:${PORTSDIR}/devel/swig13 \
kdepyuic:${PORTSDIR}/x11-toolkits/py-kde
USE_BZIP2= yes
USE_KDELIBS_VER=3
USE_PYTHON= yes
USE_SDL= sdl
INSTALLS_ICONS= yes
OPTIONS= PWC "Philips and compatible cameras" off \
SAA "Philips SAA713x TV cards" off \
SAA_TUNER_PHILIPS "SAA with Philips tuner API" on \
SAA_TUNER_PHILIPS_MK3 "SAA with Philips MK3 tuner API" off \
SAA_TUNER_ALPS "SAA with Alps tuner API" off \
SAA_TUNER_LG "SAA with LG tuner API" off \
SAA_TUNER_TEMIC "SAA with Temic tuner API" off \
SAA_STD_PAL_B_G "SAA with PAL B/G standard" on \
SAA_STD_PAL_I "SAA with PAL I standard" off \
SAA_STD_PAL_D_K "SAA with PAL D/K standard" off \
SAA_STD_PAL_L "SAA with PAL L standard" off \
SAA_STD_PAL_LACCENT "SAA with PAL L' standard" off \
SAA_STD_NTSC "SAA with NTSC N/M standard" off \
SAA_STD_NTSC_JAPAN "SAA with NTSC Japan standard" off
.include <bsd.port.pre.mk>
.if defined(WITH_PWC)
.if !exists(/usr/src/sys/Makefile)
IGNORE= kernel sources required for pwc
.endif
PLIST_SUB+= PWC=""
RUN_DEPENDS+= /boot/modules/pwc.ko:${PORTSDIR}/multimedia/pwcbsd
.else
PLIST_SUB+= PWC="@comment "
.endif
.if defined(WITH_SAA)
.if !exists(/usr/src/sys/Makefile)
IGNORE= kernel sources required for saa
.endif
PLIST_SUB+= SAA=""
.else
PLIST_SUB+= SAA="@comment "
.endif
.if defined(WITH_PWC) || defined(WITH_SAA)
NO_PACKAGE= port requires building against local kernel sources
.endif
post-patch:
@${REINPLACE_CMD} -e 's|FROMPORT = False|FROMPORT = True|' \
${WRKSRC}/installprefs.py
@${REINPLACE_CMD} -e 's|sdl11-config|${SDL_CONFIG}|g' \
${WRKSRC}/do_build.py ${WRKSRC}/do_configure.py
.if defined(WITH_PWC)
@${REINPLACE_CMD} -e 's|WITH_PWC = False|WITH_PWC = True|' \
${WRKSRC}/buildprefs.py
.endif
.if defined(WITH_SAA)
@${REINPLACE_CMD} -e 's|WITH_SAA = False|WITH_SAA = True|' \
${WRKSRC}/buildprefs.py
.if defined(WITHOUT_SAA_TUNER_PHILIPS)
.if defined(WITH_SAA_TUNER_PHILIPS_MK3)
@${REINPLACE_CMD} -e \
's|SAA_TUNER = SAA_TUNER_PHILIPS|SAA_TUNER = SAA_TUNER_PHILIPS_MK3|' \
${WRKSRC}/buildprefs.py
.elif defined(WITH_SAA_TUNER_ALPS)
@${REINPLACE_CMD} -e \
's|SAA_TUNER = SAA_TUNER_PHILIPS|SAA_TUNER = SAA_TUNER_ALPS|' \
${WRKSRC}/buildprefs.py
.elif defined(WITH_SAA_TUNER_LG)
@${REINPLACE_CMD} -e \
's|SAA_TUNER = SAA_TUNER_PHILIPS|SAA_TUNER = SAA_TUNER_LG|' \
${WRKSRC}/buildprefs.py
.elif defined(WITH_SAA_TUNER_TEMIC)
@${REINPLACE_CMD} -e \
's|SAA_TUNER = SAA_TUNER_PHILIPS|SAA_TUNER = SAA_TUNER_TEMIC|' \
${WRKSRC}/buildprefs.py
.endif
.endif
.if defined(WITHOUT_SAA_STD_PAL_B_G)
.if defined(WITH_SAA_STD_PAL_I)
@${REINPLACE_CMD} -e \
's|SAA_TUNER_STD = SAA_TUNER_STD_PAL_B_G|SAA_TUNER_STD = SAA_TUNER_STD_PAL_I|' \
${WRKSRC}/buildprefs.py
.elif defined(WITH_SAA_STD_PAL_D_K)
@${REINPLACE_CMD} -e \
's|SAA_TUNER_STD = SAA_TUNER_STD_PAL_B_G|SAA_TUNER_STD = SAA_TUNER_STD_PAL_D_K|' \
${WRKSRC}/buildprefs.py
.elif defined(WITH_SAA_STD_PAL_L)
@${REINPLACE_CMD} -e \
's|SAA_TUNER_STD = SAA_TUNER_STD_PAL_B_G|SAA_TUNER_STD = SAA_TUNER_STD_PAL_L|' \
${WRKSRC}/buildprefs.py
.elif defined(WITH_SAA_STD_PAL_LACCENT)
@${REINPLACE_CMD} -e \
's|SAA_TUNER_STD = SAA_TUNER_STD_PAL_B_G|SAA_TUNER_STD = SAA_TUNER_STD_PAL_LACCENT|' \
${WRKSRC}/buildprefs.py
.elif defined(WITH_SAA_STD_NTSC)
@${REINPLACE_CMD} -e \
's|SAA_TUNER_STD = SAA_TUNER_STD_PAL_B_G|SAA_TUNER_STD = SAA_TUNER_STD_NTSC|' \
${WRKSRC}/buildprefs.py
.elif defined(WITH_SAA_STD_NTSC_JAPAN)
@${REINPLACE_CMD} -e \
's|SAA_TUNER_STD = SAA_TUNER_STD_PAL_B_G|SAA_TUNER_STD = SAA_TUNER_STD_NTSC_JAPAN|' \
${WRKSRC}/buildprefs.py
.endif
.endif
.endif
do-configure:
@cd ${WRKSRC} && ${MAKE} configure
post-install:
.if !defined(NOPORTDOCS)
@cd ${WRKSRC} && ${MKDIR} ${DOCSDIR} && \
${INSTALL_DATA} README NEWS ${DOCSDIR} && \
${ECHO} "README -> ${DOCSDIR}/README" && \
${ECHO} "NEWS -> ${DOCSDIR}/NEWS"
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|