summaryrefslogtreecommitdiff
path: root/multimedia/emby-server/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/emby-server/Makefile')
-rw-r--r--multimedia/emby-server/Makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/multimedia/emby-server/Makefile b/multimedia/emby-server/Makefile
new file mode 100644
index 000000000000..1cbe03fc0295
--- /dev/null
+++ b/multimedia/emby-server/Makefile
@@ -0,0 +1,44 @@
+# $FreeBSD$
+
+PORTNAME= emby-server
+PORTVERSION= 3.0.5572.0
+CATEGORIES= multimedia
+
+MAINTAINER= woodsb02@gmail.com
+COMMENT= Home media server built using mono and other open source technologies
+
+LICENSE= GPLv2
+
+LIB_DEPENDS= libavformat.so:${PORTSDIR}/multimedia/ffmpeg \
+ libmediainfo.so:${PORTSDIR}/multimedia/libmediainfo \
+ libsqlite3.so:${PORTSDIR}/databases/sqlite3 \
+ libMagickWand-6.so:${PORTSDIR}/graphics/ImageMagick-nox11
+
+CONFLICTS_INSTALL= mediabrowser
+
+USE_GITHUB= yes
+GH_ACCOUNT= MediaBrowser
+GH_PROJECT= MediaBrowser
+
+USES= mono pkgconfig
+
+USE_RC_SUBR= ${PORTNAME}
+RC_NAME= emby_server
+SUB_LIST= PORTNAME=${PORTNAME} USER=${USERS} GROUP=${GROUPS} RC_NAME=${RC_NAME}
+USERS= emby
+GROUPS= emby
+
+do-build:
+ (cd ${WRKSRC} && \
+ ${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/xbuild /t:build /p:Configuration="Release Mono" \
+ /p:Platform="Any CPU" MediaBrowser.Mono.sln)
+
+do-install:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/emby-server
+ (cd ${WRKSRC}/MediaBrowser.Server.Mono/bin/Release\ Mono && \
+ ${ECHO_MSG} "Deleting the following non-FreeBSD library files:" && \
+ ${FIND} -E . -iregex '(.*\.dylib|.*libwebp.*|.*sqlite3.*|.*.dylib.*|MediaInfo\.dll)' -print -delete && \
+ ${FIND} . -type d -empty -print -delete && \
+ ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/emby-server)
+
+.include <bsd.port.mk>