View | Details | Raw Unified | Return to bug 66186
Collapse All | Expand All

(-)Makefile (-8 / +51 lines)
Lines 15-22 Link Here
15
MAINTAINER=	hendrik@scholz.net
15
MAINTAINER=	hendrik@scholz.net
16
COMMENT=	A Xine-based video player for the Gnome 2 Desktop
16
COMMENT=	A Xine-based video player for the Gnome 2 Desktop
17
17
18
LIB_DEPENDS=	xine.9:${PORTSDIR}/multimedia/libxine
18
USE_REINPLACE=	yes
19
20
USE_BZIP2=	yes
19
USE_BZIP2=	yes
21
USE_X_PREFIX=	yes
20
USE_X_PREFIX=	yes
22
USE_GNOME=	gnomeprefix intlhack gnomehack gnomedesktop
21
USE_GNOME=	gnomeprefix intlhack gnomehack gnomedesktop
Lines 25-46 Link Here
25
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
24
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
26
	       	LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib -lXrandr"
25
	       	LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib -lXrandr"
27
26
27
OPTIONS=	GSTREAMER_OVERRIDE "Use GStreamer instead of xine" off \
28
		DVDNAV "Enable DVD support" on
29
28
MAN1=	totem.1
30
MAN1=	totem.1
29
31
30
.include <bsd.port.pre.mk>
32
.include <bsd.port.pre.mk>
31
33
32
.if exists(${LOCALBASE}/lib/libdvdnav.so)
34
.if defined(WITH_GSTREAMER_OVERRIDE)
33
WITH_DVDNAV=	yes
35
CONFIGURE_ARGS+=--enable-gstreamer
36
USE_GNOME+=	gstreamerplugins
37
WITHOUT_DVDNAV=	yes
38
.else
39
LIB_DEPENDS+=	xine.9:${PORTSDIR}/multimedia/libxine
34
.endif
40
.endif
35
41
36
.if defined(WITH_DVDNAV)
42
.if defined(WITH_DVDNAV) && !defined(WITHOUT_DVDNAV)
37
LIB_DEPENDS+=	dvdnav.3:${PORTSDIR}/multimedia/libdvdnav
43
LIB_DEPENDS+=	dvdnav.3:${PORTSDIR}/multimedia/libdvdnav
38
.endif
44
.endif
39
45
40
.if !defined(WITH_DVDNAV)
46
.if defined(WITH_CDROM_DEVICE)
47
DEFAULT_CDROM_DEVICE=${WITH_CDROM_DEVICE}
48
.else
49
.if ${OSVERSION} < 500000
50
DEFAULT_CDROM_DEVICE=/dev/acd0c
51
.else
52
DEFAULT_CDROM_DEVICE=/dev/acd0
53
.endif
54
.endif
55
56
.if defined(WITH_GSTREAMER_OVERRIDE)
57
.if defined(WITH_DVD_DEVICE)
58
DEFAULT_DVD_DEVICE=${WITH_DVD_DEVICE}
59
.else
60
.if ${OSVERSION} < 500000
61
DEFAULT_DVD_DEVICE=/dev/acd0c
62
.else
63
DEFAULT_DVD_DEVICE=/dev/acd0
64
.endif
65
.endif
66
.endif
67
41
pre-everything::
68
pre-everything::
42
	@${ECHO_MSG} ""
69
	@${ECHO_MSG} "===> The default CDROM device is ${DEFAULT_CDROM_DEVICE}"
43
	@${ECHO_MSG} "You can enable DVD support by defining WITH_DVDNAV"
70
	@${ECHO_MSG} "===> Define WITH_CDROM_DEVICE if you want to change the default"
71
	@${ECHO_MSG} "===> For example, 'make WITH_CDROM_DEVICE=\"/dev/somedevice\"'"
72
	@${ECHO_MSG} "===>"
73
.if defined(WITH_GSTREAMER_OVERRIDE)
74
	@${ECHO_MSG} "===> The default DVD device is ${DEFAULT_DVD_DEVICE}"
75
	@${ECHO_MSG} "===> Define WITH_DVD_DEVICE if you want to change the default"
76
	@${ECHO_MSG} "===> For example, 'make WITH_DVD_DEVICE=\"/dev/somedevice\"'"
77
.endif
78
79
post-patch:
80
	@${REINPLACE_CMD} -e 's|/dev/cdrom|${DEFAULT_CDROM_DEVICE}|' \
81
		${WRKSRC}/src/cd-drive.c \
82
		${WRKSRC}/src/totem-preferences.c \
83
		${WRKSRC}/src/bacon-cd-selection.c
84
.if defined(WITH_GSTREAMER_OVERRIDE)
85
	@${REINPLACE_CMD} -e 's|/dev/dvd|${DEFAULT_DVD_DEVICE}|' \
86
		${WRKSRC}/src/bacon-video-widget-gst.c
44
.endif
87
.endif
45
88
46
.include <bsd.port.post.mk>
89
.include <bsd.port.post.mk>

Return to bug 66186