2010-12-29 21:39:31 +01:00
|
|
|
# New ports collection makefile for: xbmc
|
|
|
|
# Date created: 2010-09-16
|
|
|
|
# Whom: Mickael Maillot <mickael.maillot@gmail.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= xbmc
|
2012-01-25 14:48:29 +01:00
|
|
|
PORTVERSION= 11.0.b2
|
2012-02-24 06:17:10 +01:00
|
|
|
PORTREVISION= 4
|
2010-12-29 21:39:31 +01:00
|
|
|
CATEGORIES= multimedia
|
2011-03-02 22:07:09 +01:00
|
|
|
MASTER_SITES= http://mirrors.xbmc.org/releases/source/
|
2012-01-25 14:48:29 +01:00
|
|
|
DISTNAME= ${PORTNAME}-11.0-Eden_beta2
|
2010-12-29 21:39:31 +01:00
|
|
|
|
|
|
|
MAINTAINER= mickael.maillot@gmail.com
|
|
|
|
COMMENT= XBMC is an award winning media center application
|
|
|
|
|
2011-03-02 22:07:09 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2010-12-29 21:39:31 +01:00
|
|
|
BUILD_DEPENDS= enca:${PORTSDIR}/converters/enca \
|
|
|
|
gawk:${PORTSDIR}/lang/gawk \
|
|
|
|
gperf:${PORTSDIR}/devel/gperf \
|
|
|
|
cmake:${PORTSDIR}/devel/cmake \
|
|
|
|
zip:${PORTSDIR}/archivers/zip \
|
|
|
|
unzip:${PORTSDIR}/archivers/unzip \
|
|
|
|
nasm:${PORTSDIR}/devel/nasm \
|
2012-01-18 13:05:48 +01:00
|
|
|
dvdread-config:${PORTSDIR}/multimedia/libdvdread \
|
|
|
|
gtk-update-icon-cache:${PORTSDIR}/x11-toolkits/gtk20
|
|
|
|
LIB_DEPENDS= asound.2:${PORTSDIR}/audio/alsa-lib \
|
|
|
|
ass.5:${PORTSDIR}/multimedia/libass \
|
2010-12-29 21:39:31 +01:00
|
|
|
boost_thread.4:${PORTSDIR}/devel/boost-libs \
|
2012-01-18 18:36:27 +01:00
|
|
|
cdio.13:${PORTSDIR}/sysutils/libcdio \
|
2010-12-29 21:39:31 +01:00
|
|
|
curl.6:${PORTSDIR}/ftp/curl \
|
|
|
|
dbus-1.3:${PORTSDIR}/devel/dbus \
|
|
|
|
enca.5:${PORTSDIR}/converters/enca \
|
|
|
|
GLEW.1:${PORTSDIR}/graphics/glew \
|
|
|
|
avcodec.1:${PORTSDIR}/multimedia/ffmpeg \
|
2012-01-18 13:05:48 +01:00
|
|
|
FLAC.10:${PORTSDIR}/audio/flac \
|
2010-12-29 21:39:31 +01:00
|
|
|
fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig \
|
|
|
|
freetype.9:${PORTSDIR}/print/freetype2 \
|
|
|
|
fribidi.3:${PORTSDIR}/converters/fribidi \
|
|
|
|
lzo2.2:${PORTSDIR}/archivers/lzo2 \
|
|
|
|
jasper.4:${PORTSDIR}/graphics/jasper \
|
|
|
|
jpeg.11:${PORTSDIR}/graphics/jpeg \
|
|
|
|
mad:${PORTSDIR}/audio/libmad \
|
|
|
|
modplug:${PORTSDIR}/audio/libmodplug \
|
|
|
|
mpeg2:${PORTSDIR}/multimedia/libmpeg2 \
|
|
|
|
ogg.7:${PORTSDIR}/audio/libogg \
|
2012-02-14 13:45:35 +01:00
|
|
|
pcre.1:${PORTSDIR}/devel/pcre \
|
2012-01-18 13:05:48 +01:00
|
|
|
plist.1:${PORTSDIR}/devel/libplist \
|
2010-12-29 21:39:31 +01:00
|
|
|
png.6:${PORTSDIR}/graphics/png \
|
|
|
|
samplerate.1:${PORTSDIR}/audio/libsamplerate \
|
|
|
|
smbclient.0:${PORTSDIR}/net/samba-libsmbclient \
|
|
|
|
sqlite3.8:${PORTSDIR}/databases/sqlite3 \
|
|
|
|
vorbis.4:${PORTSDIR}/audio/libvorbis \
|
2012-01-18 13:05:48 +01:00
|
|
|
yajl:${PORTSDIR}/devel/yajl
|
2010-12-29 21:39:31 +01:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:${PORTSDIR}/audio/alsa-plugins \
|
|
|
|
${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3 \
|
|
|
|
glxinfo:${PORTSDIR}/graphics/mesa-demos \
|
|
|
|
${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging \
|
|
|
|
xdpyinfo:${PORTSDIR}/x11/xdpyinfo
|
|
|
|
|
|
|
|
FETCH_ARGS= -Fpr
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_GNOME= pkgconfig
|
|
|
|
USE_AUTOTOOLS= autoconf libtool automake libltdl
|
|
|
|
GNU_CONFIGURE= yes
|
2012-01-18 13:05:48 +01:00
|
|
|
USE_XORG= xt xmu xrandr xtst
|
2010-12-29 21:39:31 +01:00
|
|
|
USE_GL= glu
|
|
|
|
USE_SDL= image mixer sdl
|
|
|
|
USE_MYSQL= yes
|
2012-01-18 13:05:48 +01:00
|
|
|
USE_PYTHON= 2.5+
|
2010-12-29 21:39:31 +01:00
|
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
NOPRECIOUSMAKEVARS= yes
|
|
|
|
INSTALLS_ICONS= yes
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
|
2011-03-02 22:07:09 +01:00
|
|
|
PLIST_SUB+= PYVER="${PYTHON_VERSION:S/python//:S/.//g}"
|
2010-12-29 21:39:31 +01:00
|
|
|
|
|
|
|
OPTIONS= AVAHI "Enable Avahi support" on \
|
2011-03-02 22:07:09 +01:00
|
|
|
LIBBLURAY "Enable libbluray support" on \
|
2010-12-29 21:39:31 +01:00
|
|
|
HAL "Enable HAL support" on \
|
2011-03-09 15:11:24 +01:00
|
|
|
LIRC "Enable lirc support" off \
|
2010-12-29 21:39:31 +01:00
|
|
|
NONFREE "Enable non-free components (rar, ccx, ffmpeg)" off \
|
|
|
|
PULSE "Enable PulseAudio support" off \
|
|
|
|
RTMP "RTMP support via librtmp" off \
|
2011-03-10 21:21:46 +01:00
|
|
|
VAAPI "Enable VAAPI support" off \
|
2010-12-29 21:39:31 +01:00
|
|
|
VDPAU "Enable VDPAU support" off \
|
|
|
|
WEBSERVER "Build Internal Webserver" off
|
|
|
|
|
|
|
|
DESKTOP_ENTRIES="XBMC" \
|
|
|
|
"${COMMENT}" \
|
|
|
|
"${DATADIR}/media/icon.png" \
|
|
|
|
"xbmc" \
|
|
|
|
"AudioVideo;Video;" \
|
|
|
|
true
|
|
|
|
|
2012-01-18 13:05:48 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-nfs
|
2010-12-29 21:39:31 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2011-03-02 22:07:09 +01:00
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
CONFIGURE_ARGS+= --enable-debug
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-debug
|
|
|
|
.endif
|
|
|
|
|
2010-12-29 21:39:31 +01:00
|
|
|
.if ${ARCH} == i386
|
|
|
|
PLIST_SUB+= ARCH="x86"
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= ARCH="x86_64"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_AVAHI)
|
|
|
|
CONFIGURE_ARGS+= --enable-avahi
|
|
|
|
LIB_DEPENDS+= avahi-common.3:${PORTSDIR}/net/avahi-app
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-avahi
|
|
|
|
.endif
|
|
|
|
|
2011-03-02 22:07:09 +01:00
|
|
|
.if !defined(WITHOUT_LIBBLURAY)
|
|
|
|
CONFIGURE_ARGS+= --enable-libbluray
|
2012-02-24 06:17:10 +01:00
|
|
|
LIB_DEPENDS+= bluray.1:${PORTSDIR}/multimedia/libbluray
|
2011-03-02 22:07:09 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-libbluray
|
|
|
|
.endif
|
|
|
|
|
2010-12-29 21:39:31 +01:00
|
|
|
.if !defined(WITHOUT_HAL)
|
|
|
|
CONFIGURE_ARGS+= --enable-hal
|
|
|
|
LIB_DEPENDS+= hal.1:${PORTSDIR}/sysutils/hal
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-hal
|
|
|
|
.endif
|
|
|
|
|
2011-03-09 15:11:24 +01:00
|
|
|
.if defined(WITH_LIRC)
|
2011-03-16 14:03:07 +01:00
|
|
|
RUN_DEPENDS+= lircd:${PORTSDIR}/comms/lirc
|
2011-03-09 15:11:24 +01:00
|
|
|
.endif
|
|
|
|
|
2010-12-29 21:39:31 +01:00
|
|
|
.if defined(WITH_NONFREE)
|
|
|
|
CONFIGURE_ARGS+= --enable-non-free
|
|
|
|
NO_CDROM= Restricted binary distribution
|
|
|
|
NO_PACKAGE= ${NO_CDROM}
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-non-free
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_PULSE)
|
|
|
|
CONFIGURE_ARGS+= --enable-pulse
|
|
|
|
LIB_DEPENDS+= pulse.0:${PORTSDIR}/audio/pulseaudio
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-pulse
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_RTMP)
|
|
|
|
CONFIGURE_ARGS+= --enable-rtmp
|
|
|
|
LIB_DEPENDS+= rtmp.0:${PORTSDIR}/multimedia/rtmpdump
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-rtmp
|
|
|
|
.endif
|
|
|
|
|
2011-03-10 21:21:46 +01:00
|
|
|
.if defined(WITH_VAAPI)
|
|
|
|
LIB_DEPENDS+= va.1:${PORTSDIR}/multimedia/libva
|
|
|
|
CONFIGURE_ARGS+= --enable-vaapi
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-vaapi
|
|
|
|
.endif
|
|
|
|
|
2010-12-29 21:39:31 +01:00
|
|
|
.if defined(WITH_VDPAU)
|
|
|
|
LIB_DEPENDS+= vdpau.1:${PORTSDIR}/multimedia/libvdpau
|
|
|
|
CONFIGURE_ARGS+= --enable-vdpau
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-vdpau
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_WEBSERVER)
|
|
|
|
CONFIGURE_ARGS+= --enable-webserver
|
2011-10-12 23:15:57 +02:00
|
|
|
LIB_DEPENDS+= microhttpd.23:${PORTSDIR}/www/libmicrohttpd
|
2010-12-29 21:39:31 +01:00
|
|
|
PLIST_SUB+= HTTPD=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-webserver
|
|
|
|
PLIST_SUB+= HTTPD="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-01-18 13:05:48 +01:00
|
|
|
.if ${CC} == "clang" || ${CXX} == "clang++"
|
|
|
|
CONFIGURE_ARGS+= --disable-rsxs
|
|
|
|
PLIST_SUB+= RSXS="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= RSXS=""
|
|
|
|
.endif
|
2010-12-29 21:39:31 +01:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
cd ${WRKSRC} && ./bootstrap
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|