blob: f62309cbaabbd8423791e86d7491a08d92f82da5 (
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
86
87
88
89
90
91
92
93
94
95
|
# New ports collection makefile for: libvisual-plugins
# Date created: 12 February 2005
# Whom: Koop Mast <kwm@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= libvisual-plugins
PORTVERSION= 0.2.0
PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= libvisual
MAINTAINER= kwm@FreeBSD.org
COMMENT= Set of plugins for the libvisual framework
LIB_DEPENDS= visual.0:${PORTSDIR}/graphics/libvisual
WANT_GNOME= yes
USE_GNOME= gnometarget pkgconfig
USE_XLIB= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-alsa
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
.include <bsd.port.pre.mk>
.if ${X_WINDOW_SYSTEM} == "xfree86-4"
BUILD_DEPENDS= mkdirhier:${PORTSDIR}/devel/imake-4
.elif ${X_WINDOW_SYSTEM} == "xorg"
BUILD_DEPENDS= mkdirhier:${PORTSDIR}/devel/imake-6
.elif ${X_WINDOW_SYSTEM} == "xfree86-3"
BUILD_DEPENDS= mkdirhier:${PORTSDIR}/x11/XFree86
.endif
.if defined(WITH_MPLAYER)
BUILD_DEPENDS+= mplayer:${PORTSDIR}/multimedia/mplayer
RUN_DEPENDS+= mplayer:${PORTSDIR}/multimedia/mplayer
CONFIGURE_ARGS+= --enable-mplayer
PLIST_SUB+= MPLAYER=""
.else
CONFIGURE_ARGS+= --disable-mplayer
PLIST_SUB+= MPLAYER="@comment "
.endif
.if exists(${LOCALBASE}/lib/libgoom2.a) || defined(WITH_GOOM)
LIB_DEPENDS+= goom2.0:${PORTSDIR}/graphics/goom
PLIST_SUB+= GOOM=""
.else
PLIST_SUB+= GOOM="@comment "
.endif
.if ${HAVE_GNOME:Mgtk20}!="" || defined(WITH_GTK20)
USE_GNOME+= gtk20
PLIST_SUB+= GTK=""
.else
PLIST_SUB+= GTK="@comment "
.endif
.if (${HAVE_GNOME:Mesound}!="" || defined(WITH_ESOUND)) && !defined(WITHOUT_ESOUND)
USE_GNOME+= esound
PLIST_SUB+= ESOUND=""
.else
PLIST_SUB+= ESOUND="@comment "
.endif
.if defined(WITH_JACK) || exists(${LOCALBASE}/lib/libjack.a)
LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack
PLIST_SUB+= JACK=""
.else
PLIST_SUB+= JACK="@comment "
.endif
pre-everyting::
@${ECHO_CMD} ""
.if !defined(WITH_MPLAYER)
@${ECHO_CMD} "Enable the mplayer input plugin by defining WITH_MPLAYER=yes."
.endif
.if !defined(WITH_JACK)
@${ECHO_CMD} "Enable the Jack input plugin by defining WITH_JACK=yes."
.endif
.if !defined(WITH_GOOM)
@${ECHO_CMD} "Enable the Goom visualisation plugin by defining WITH_GOOM=yes."
.endif
.if !defined(WITH_GTK20)
@${ECHO_CMD} "Enable the Goom visualisation plugin by defining WITH_GOOM=yes."
.endif
.if !defined(WITH_ESOUND)
@${ECHO_CMD} "Enable the Goom visualisation plugin by defining WITH_GOOM=yes."
.endif
@${ECHO_CMD} ""
.include <bsd.port.post.mk>
|