# $OpenBSD: Makefile.template,v 1.61 2012/03/29 13:41:58 sthen Exp $
#ONLY_FOR_ARCHS = ???
#NOT_FOR_ARCHS = ???
#SHARED_ONLY = ???
#COMES_WITH = ???
#BROKEN = reason
#
COMMENT = lala
# COMMENT-foo = ??? for multi packages
#
DISTNAME = xbmc-12.3
#PKGNAME = ???
#PKGNAME-foo = ??? for multi packages
#SHARED_LIBS = ???
CATEGORIES = multimedia
HOMEPAGE = http://xbmc.org/
#MAINTAINER = ???
# In case of GPL, version number must be appended (e.g. v2, v2+, v3).
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
#WANTLIB = ???
MASTER_SITES = http://mirrors.xbmc.org/releases/source/
MODULES = lang/python
#BUILD_DEPENDS = ???
#RUN_DEPENDS = ???
LIB_DEPENDS = archivers/lzo2 \
audio/libcdio \
audio/libmodplug \
databases/mysql \
devel/boost \
graphics/glew \
graphics/libmpeg2 \
multimedia/libbluray \
net/samba
#REGRESS_DEPENDS = ???
#MAKE_FLAGS = ???
#MAKE_ENV = ???
#FAKE_FLAGS = ???
#REGRESS_FLAGS = ???
#SEPARATE_BUILD = Yes (build in a directory other than WRKSRC)
#SEPARATE_BUILD = flavored (distinct flavors may share a common WRKSRC)
USE_GMAKE = Yes
#USE_GROFF = Yes
#USE_LIBTOOL = Yes
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS += --enable-external-libraries \
--enable-external-ffmpeg \
--enable-dlopen=no \
--disable-webserver \
${CONFIGURE_SHARED}
CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
PYTHON_VERSION=${MODPY_VERSION}
AUTOCONF_VERSION = 2.67
AUTOMAKE_VERSION = 1.11
# config.guess and others are copied here
#MODGNU_CONFIG_GUESS_DIRS = ??? (defaults to ${WRKSRC}
# Is the build automagic or is it interactive
#
#IS_INTERACTIVE = Yes
#REGRESS_IS_INTERACTIVE = Yes
# Assume you have one multiple choice flavor: 1 2 3 and switches a b.
# You would write
#
#FLAVORS = 1 2 3 a b
#FLAVOR ?=
# grab multiple choice value
#CHOICE = ${FLAVOR:L:Na:Nb}
# check that CHOICE is 1 OR 2 OR 3, or error out
#.if ${CHOICE} == "1"
# code for 1
#.elif ${CHOICE} == "2"
# code for 2
#.elif ${CHOICE} == "3"
# code for 3
#.else
#ERRORS += "Fatal: Conflicting flavor: ${FLAVOR}"
#.endif
# check for switches
#.if ${FLAVOR:L:Ma}
# code for a
#.endif
#.if ${FLAVOR:L:Mb}
# code for b
#.endif
#NO_REGRESS = Yes
#CFLAGS = ???
#LDFLAGS = ???
#MAKE_FILE = ???
WRKDIST = ${WRKDIR}/${DISTNAME}-Frodo
#ALL_TARGET = ???
#INSTALL_TARGET = ???
#REGRESS_TARGET = ???
pre-configure:
cd ${WRKSRC} && env AUTOCONF_VERSION=${AUTOCONF_VERSION} \
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} autoreconf -vif
.include <bsd.port.mk>