blob: 2459cc727a50cb0e81c9faf69bf310534d68deab (
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
96
97
98
99
100
|
# -*-mode: makefile-*-
# New ports collection makefile for: KDE3 Multimedia
# Date created: Saturday 7 December 2002
# Whom: Alan Eldridge <alane@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= kdemultimedia
PORTVERSION= ${KDE_VERSION}
PORTREVISION= 2
CATEGORIES= multimedia kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/${PORTVERSION}/src
DIST_SUBDIR= KDE
MAINTAINER= kde@FreeBSD.org
COMMENT= Multimedia utilities for the KDE integrated X11 desktop
RUN_DEPENDS+= xanim:${PORTSDIR}/multimedia/xanim
LIB_DEPENDS+= audiofile:${PORTSDIR}/audio/libaudiofile \
cdda_paranoia:${PORTSDIR}/audio/cdparanoia \
mp3lame:${PORTSDIR}/audio/lame \
vorbis.3:${PORTSDIR}/audio/libvorbis
USE_KDELIBS_VER=3
PREFIX= ${KDE_PREFIX}
KDE_BUILD_PLIST=yes
USE_BZIP2= yes
USE_GMAKE= yes
USE_GNOME= esound
USE_REINPLACE= yes
GNU_CONFIGURE= yes
MAKE_ENV= ${CONFIGURE_ENV}
CONFIGURE_ARGS+= --with-vorbis="${LOCALBASE}" \
--enable-audio=oss,esd
.include "${.CURDIR}/../../x11/kde3/Makefile.kde"
.include <bsd.port.pre.mk>
.if defined(WITH_MIDI) || defined(WITH_KMIDI)
PLIST_APPEND+= plist.midi
CONFLICTS= timidity-* timidity++-*
.if ${MACHINE_ARCH} == "alpha"
USE_REINPLACE= yes
post-patch::
${REINPLACE_CMD} -e "s|-ffast-math||g" ${WRKSRC}/kmidi/Makefile.in
.endif # ${MACHINE_ARCH} == "alpha"
.else
DO_NOT_COMPILE+= kmidi
.endif # defined(WITH_MIDI) || defined(WITH_KMIDI)
.if exists(${X11BASE}/bin/xine-config)
WITH_XINE= yes
.endif # exists(${LOCALBASE}/bin/xine-config)
.if defined(WITHOUT_XINE)
DO_NOT_COMPILE+= xine_artsplugin
CONFIGURE_ARGS+= --disable-xinetest
.elif defined(WITH_XINE)
PLIST_APPEND+= plist.xine
LIB_DEPENDS+= xine.8:${PORTSDIR}/multimedia/libxine
BUILD_DEPENDS+= xine-config:${PORTSDIR}/multimedia/libxine
CONFIGURE_ARGS+=--with-xine-prefix=${X11BASE}
.endif # defined(WITHOUT_XINE)
.if defined(WITHOUT_MPEGLIB)
PLIST_APPEND+= plist.no-mpeglib
.else
PLIST_APPEND+= plist.mpeglib
.endif
.if defined(DO_NOT_COMPILE)
CONFIGURE_ENV+= DO_NOT_COMPILE="${DO_NOT_COMPILE}"
.endif # defined(DO_NOT_COMPILE)
INSTALLS_SHLIB= yes
LDCONFIG_DIRS+= %%PREFIX%%/lib %%PREFIX%%/lib/kde3
pre-configure:
.if defined(WITHOUT_MPEGLIB)
${REINPLACE_CMD} -e \
'/FreeBSD/,/;$$/s/kde_mpeglib_compiles=yes/kde_mpeglib_compiles=no/g' \
${WRKSRC}/configure
${REINPLACE_CMD} -e '/union semun/,/;$$/s/.*//g' \
${WRKSRC}/oggvorbis_artsplugin/oggPlayObject_impl.h
.endif
post-configure:
${REINPLACE_CMD} -e '/^XINE_CFLAGS/s/-D_THREAD_SAFE//g' \
-e 's/-pthread/${PTHREAD_LIBS}/g' \
${WRKSRC}/xine_artsplugin/Makefile
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|