Lines 4-18
Link Here
|
4 |
PORTNAME= emby-server |
4 |
PORTNAME= emby-server |
5 |
PORTVERSION= 3.5.3.0 |
5 |
PORTVERSION= 3.5.3.0 |
6 |
CATEGORIES= multimedia |
6 |
CATEGORIES= multimedia |
7 |
MASTER_SITES= https://github.com/MediaBrowser/Emby.Releases/releases/download/${PORTVERSION}/ |
7 |
MASTER_SITES= https://github.com/MediaBrowser/Emby.Releases/releases/download/${PORTVERSION}/ \ |
8 |
DISTNAME= emby-server-freebsd_${PORTVERSION}_amd64 |
8 |
https://mediabrowser.github.io/embytools/ |
|
|
9 |
DISTNAME= ${PORTNAME}-freebsd_${PORTVERSION}_amd64 |
10 |
DISTFILES= ${PORTNAME}-freebsd_${PORTVERSION}_amd64.tar.xz \ |
11 |
ffmpeg-2018_12_01.tar.gz |
9 |
|
12 |
|
10 |
MAINTAINER= apps@emby.media |
13 |
MAINTAINER= alucryd@archlinux.org |
11 |
COMMENT= Media server to organize, play & stream audio/video to various devices |
14 |
COMMENT= Media server to organize, play & stream audio/video to various devices |
12 |
|
15 |
|
13 |
LICENSE= UNKNOWN |
16 |
LICENSE= UNKNOWN |
14 |
LICENSE_NAME= custom |
17 |
LICENSE_NAME= custom |
15 |
LICENSE_FILE= ${WRKSRC}/license.docx |
18 |
LICENSE_FILE= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/license.docx |
16 |
LICENSE_PERMS= dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept |
19 |
LICENSE_PERMS= dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept |
17 |
|
20 |
|
18 |
ONLY_FOR_ARCHS= amd64 |
21 |
ONLY_FOR_ARCHS= amd64 |
Lines 23-28
Link Here
|
23 |
libfreetype.so:print/freetype2 \ |
26 |
libfreetype.so:print/freetype2 \ |
24 |
libfribidi.so:converters/fribidi \ |
27 |
libfribidi.so:converters/fribidi \ |
25 |
libgnutls.so:security/gnutls \ |
28 |
libgnutls.so:security/gnutls \ |
|
|
29 |
libiconv.so:converters/libiconv \ |
30 |
libmp3lame.so:audio/lame \ |
26 |
libopus.so:audio/opus \ |
31 |
libopus.so:audio/opus \ |
27 |
libsmbclient.so:net/samba48 \ |
32 |
libsmbclient.so:net/samba48 \ |
28 |
libsqlite3.so:databases/sqlite3 \ |
33 |
libsqlite3.so:databases/sqlite3 \ |
Lines 32-43
Link Here
|
32 |
libwebp.so:graphics/webp \ |
37 |
libwebp.so:graphics/webp \ |
33 |
libx264.so:multimedia/libx264 \ |
38 |
libx264.so:multimedia/libx264 \ |
34 |
libzvbi.so:devel/libzvbi |
39 |
libzvbi.so:devel/libzvbi |
|
|
40 |
BUILD_DEPENDS= nasm:devel/nasm |
35 |
|
41 |
|
36 |
USES= iconv:wchar_t tar:xz |
42 |
USES= compiler:c11 gmake pkgconfig tar:xz |
37 |
USE_XORG= x11 xcb |
|
|
38 |
|
43 |
|
39 |
NO_BUILD= true |
44 |
NOPRECIOUSMAKEVARS= yes |
40 |
WRKSRC= ${WRKDIR}/emby-server-${PORTVERSION} |
45 |
USE_LDCONFIG= no |
41 |
|
46 |
|
42 |
USE_RC_SUBR= ${PORTNAME} |
47 |
USE_RC_SUBR= ${PORTNAME} |
43 |
SUB_LIST= PORTNAME=${PORTNAME} USER=${USERS} GROUP=${GROUPS} RC_NAME=emby_server |
48 |
SUB_LIST= PORTNAME=${PORTNAME} USER=${USERS} GROUP=${GROUPS} RC_NAME=emby_server |
Lines 44-56
Link Here
|
44 |
USERS= emby |
49 |
USERS= emby |
45 |
GROUPS= emby |
50 |
GROUPS= emby |
46 |
|
51 |
|
|
|
52 |
do-build: |
53 |
(cd ${WRKDIR}/ffmpeg-2018_12_01 && \ |
54 |
./configure \ |
55 |
--disable-bzlib \ |
56 |
--disable-doc \ |
57 |
--disable-ffplay \ |
58 |
--disable-shared \ |
59 |
--disable-vdpau \ |
60 |
--disable-libxcb \ |
61 |
--disable-libxcb-shm \ |
62 |
--disable-libxcb-xfixes \ |
63 |
--disable-libxcb-shape \ |
64 |
--disable-lzma \ |
65 |
--disable-sdl2 \ |
66 |
--disable-xlib \ |
67 |
--enable-fontconfig \ |
68 |
--enable-gmp \ |
69 |
--enable-gnutls \ |
70 |
--enable-gpl \ |
71 |
--enable-libass \ |
72 |
--enable-libdrm \ |
73 |
--enable-libfreetype \ |
74 |
--enable-libfribidi \ |
75 |
--enable-libmp3lame \ |
76 |
--enable-libopus \ |
77 |
--enable-libsmbclient \ |
78 |
--enable-libtheora \ |
79 |
--enable-libvorbis \ |
80 |
--enable-libwebp \ |
81 |
--enable-libx264 \ |
82 |
--enable-libzvbi \ |
83 |
--enable-static \ |
84 |
--enable-vaapi \ |
85 |
--enable-version3 && \ |
86 |
gmake) |
87 |
|
47 |
do-install: |
88 |
do-install: |
48 |
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/emby-server |
89 |
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/emby-server |
49 |
(cd ${WRKSRC}/bin && ${COPYTREE_BIN} . ${STAGEDIR}${PREFIX}/lib/emby-server/bin) |
90 |
(cd ${WRKDIR}/ffmpeg-2018_12_01 && \ |
50 |
(cd ${WRKSRC}/lib && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/emby-server/lib) |
91 |
${COPYTREE_BIN} ffmpeg ${STAGEDIR}${PREFIX}/lib/emby-server/bin && \ |
51 |
(cd ${WRKSRC}/system && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/emby-server/system) |
92 |
${COPYTREE_BIN} ffprobe ${STAGEDIR}${PREFIX}/lib/emby-server/bin) |
|
|
93 |
(cd ${WRKDIR}/${PORTNAME}-${PORTVERSION}/lib && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/emby-server/lib) |
94 |
(cd ${WRKDIR}/${PORTNAME}-${PORTVERSION}/system && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/emby-server/system) |
52 |
(cd ${STAGEDIR}${PREFIX}/lib/emby-server/system && \ |
95 |
(cd ${STAGEDIR}${PREFIX}/lib/emby-server/system && \ |
53 |
ln -s ../../libsqlite3.so ./libsqlite3.so && \ |
96 |
${LN} -s ../../libsqlite3.so ./libsqlite3.so && \ |
54 |
ln -s ../lib/libSkiaSharp.so ./libSkiaSharp.so) |
97 |
${LN}-s ../lib/libSkiaSharp.so ./libSkiaSharp.so) |
55 |
|
98 |
|
56 |
.include <bsd.port.mk> |
99 |
.include <bsd.port.mk> |