2013-03-11 07:35:43 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.18 2013/03/11 11:35:44 espie Exp $
|
2010-09-21 09:28:31 -04:00
|
|
|
|
|
|
|
COMMENT = UPnP media server
|
|
|
|
|
|
|
|
VER = 0.12.1
|
|
|
|
DISTNAME = mediatomb-${VER}
|
2013-01-27 09:13:30 -05:00
|
|
|
REVISION = 11
|
2010-09-21 09:28:31 -04:00
|
|
|
|
|
|
|
CATEGORIES = multimedia
|
|
|
|
|
|
|
|
HOMEPAGE = http://mediatomb.cc/
|
|
|
|
|
|
|
|
# GPLv2
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
|
|
|
|
WANTLIB = avformat avutil c crypto curl exif expat ffmpegthumbnailer idn
|
2011-06-21 10:29:04 -04:00
|
|
|
WANTLIB += m magic mozjs mp4v2 pthread sqlite3 ssl stdc++ tag z
|
2010-09-21 09:28:31 -04:00
|
|
|
|
|
|
|
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=mediatomb/}
|
|
|
|
|
2013-01-27 05:06:50 -05:00
|
|
|
MODULES = devel/gettext
|
2010-09-21 09:28:31 -04:00
|
|
|
|
2010-11-19 02:23:05 -05:00
|
|
|
LIB_DEPENDS = audio/taglib \
|
|
|
|
devel/libmagic \
|
2013-01-27 05:06:50 -05:00
|
|
|
graphics/ffmpeg>=20121026 \
|
2010-11-19 02:23:05 -05:00
|
|
|
graphics/ffmpegthumbnailer \
|
|
|
|
graphics/libexif \
|
2013-01-27 05:06:50 -05:00
|
|
|
lang/spidermonkey>=1.9v0 \
|
2011-06-26 15:04:21 -04:00
|
|
|
net/curl \
|
|
|
|
multimedia/libmp4v2
|
2010-09-21 09:28:31 -04:00
|
|
|
|
|
|
|
CONFIGURE_STYLE = autoconf
|
2013-01-27 09:13:30 -05:00
|
|
|
AUTOCONF_VERSION = 2.63
|
|
|
|
CONFIGURE_ARGS = --disable-inotify \
|
2010-09-21 09:28:31 -04:00
|
|
|
--disable-lastfmlib \
|
2013-01-27 09:13:30 -05:00
|
|
|
--disable-mysql
|
2012-11-05 16:52:44 -05:00
|
|
|
# Add "-I${WRKSRC}/src" to make mediatomb find its own dictionary.h first.
|
|
|
|
CONFIGURE_ENV = CPPFLAGS="-I${WRKSRC}/src -I${LOCALBASE}/include" \
|
2011-12-24 03:46:29 -05:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
2013-01-27 05:06:50 -05:00
|
|
|
ac_cv_header_execinfo_h=no \
|
|
|
|
ac_cv_header_lwres_netdb_h=no
|
2010-09-21 09:28:31 -04:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mediatomb/
|
|
|
|
${SUBST_CMD} -c -o ${SHAREOWN} -g ${SHAREGRP} ${FILESDIR}/config.xml \
|
|
|
|
${PREFIX}/share/examples/mediatomb/config.xml
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|