aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/plexmediaserver/Makefile
blob: dac39701961d531d726b0d90d603f6bfbaa94fa3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Created by: KalleDK <plexmaintainer@k-moeller.dk>
# $FreeBSD$

PORTNAME=   plexmediaserver
PORTVERSION=    0.9.9.3.402
CATEGORIES= multimedia
MASTER_SITES=   http://plex.r.worldssl.net/plex-media-server/${PORTVERSION}-${PLEX_BUILD}/
DISTNAME=   PlexMediaServer-${PORTVERSION}-${PLEX_BUILD}-freebsd-amd64

MAINTAINER= feld@FreeBSD.org
COMMENT=    The Plex Media Server component

USE_BZIP2=  yes
PLEX_BUILD= c7906ea
NO_BUILD=   yes
WRKSRC= ${WRKDIR}/PlexMediaServer-${PORTVERSION}-${PLEX_BUILD}

USE_RC_SUBR=    plexmediaserver

SUB_FILES=  plexmediaserver
SUB_LIST=   SUPPORT_PATH=${SUPPORT_PATH} SCRIPT_PATH="${SCRIPT_PATH}" USERS=${USERS} GROUPS=${GROUPS}

USERS=  plex
GROUPS= plex
SUPPORT_PATH?=  ${PREFIX}/plexdata
SCRIPT_PATH?=   ${DATADIR}

ONLY_FOR_ARCHS= amd64

.include <bsd.port.pre.mk>

.if ${OPSYS} == FreeBSD
.if ${OSVERSION} < 900000
IGNORE= supplied binaries compiled for FreeBSD 9
.endif

.if ${OSVERSION} >= 1000054
RUN_DEPENDS+=   ${LOCALBASE}/lib/compat/libstdc++.so.6:${PORTSDIR}/misc/compat9x
.endif
.endif

post-patch:
    # binaries don't come pre-stripped
    ${FIND} ${WRKSRC} -name '*.so' -exec ${STRIP_CMD} {} \;

do-install:
    @(cd ${WRKSRC} && ${COPYTREE_SHARE} Resources ${STAGEDIR}/${SCRIPT_PATH})
    ${INSTALL_PROGRAM} ${WRKSRC}/Plex\ DLNA\ Server ${STAGEDIR}/${SCRIPT_PATH}
    ${INSTALL_PROGRAM} ${WRKSRC}/Plex\ Media\ Scanner ${STAGEDIR}/${SCRIPT_PATH}
    ${INSTALL_PROGRAM} ${WRKSRC}/Plex\ Media\ Server ${STAGEDIR}/${SCRIPT_PATH}
    ${INSTALL_SCRIPT} ${WRKSRC}/start.sh ${STAGEDIR}/${SCRIPT_PATH}
    ${INSTALL_LIB} ${WRKSRC}/lib* ${STAGEDIR}/${SCRIPT_PATH}
    # Fix permissions to programs and db
    @${CHMOD} a+x ${STAGEDIR}/${SCRIPT_PATH}/Resources/rsync
    @${CHMOD} a+x ${STAGEDIR}/${SCRIPT_PATH}/Resources/Plex\ New\ Transcoder
    @${CHMOD} a+x ${STAGEDIR}/${SCRIPT_PATH}/Resources/Plex\ Transcoder
    @${CHMOD} a+x ${STAGEDIR}/${SCRIPT_PATH}/Resources/Python/bin/python
    @${CHMOD} u+w ${STAGEDIR}/${SCRIPT_PATH}/Resources/com.plexapp.plugins.library.db
    # Python fix
    @${LN} -s ${SCRIPT_PATH}/libpython2.7.so.1 ${STAGEDIR}/${SCRIPT_PATH}/libpython2.7.so

.include <bsd.port.post.mk>
>2003-06-121-1/+1 * Convert to new GNOME infrastructure.marcus2003-04-221-5/+2 * Remove the USE_GNOMENG macro.marcus2003-04-081-1/+0 * Clear moonlight beckons.ade2003-03-072-1/+1 * Add a missing dependency on gnomedesktop.marcus2003-02-161-1/+2 * Update to GNOME 2.2.marcus2003-02-085-113/+49 * Update to 2.0.3.marcus2002-11-203-2/+4 * GNOME has just changed the layout of their FTP site. This resulted inmarcus2002-09-211-1/+1 * Update to 2.0.2.5.marcus2002-09-072-2/+2 * Update to 2.0.2.marcus2002-08-304-25/+8 * Chase gailutil's version bump.marcus2002-07-241-1/+2 * Use USE_REINPLACE.sobomax2002-07-111-5/+6 * The FreeBSD GNOME team is proud to present GNOME 2.0 Release.marcus2002-07-011-1/+1 * Update to GNOME 2.0 RC2.marcus2002-06-261-1/+1 * Update to GNOME 2.0 Release Candidate 1...the "Fever Pitch" release.marcus2002-06-153-4/+5 * Fix up patches from previous commit.marcus2002-06-121-0/+11 * Update to the latest GNOME 2 snapshot.marcus2002-06-123-12/+30 * Update to the latest GNOME 2.0 snapshot, the "Stay on target!" release.marcus2002-05-291-1/+1 * Back to betas...Update to GNOME 2.0 beta 5.marcus2002-05-203-3/+5 * Update to GNOME 2.0 RC2.marcus2002-05-121-1/+1 * Add gnomemedia2 after repo copy from gnomemedia. This is a port of themarcus2002-05-0919-1261/+280 * I had a typo in one of the file names in the last commit. It should readmarcus2002-04-171-0/+0 * Add some CD-related fixes to gnomemedia. Bump PORTREVISION.marcus2002-04-174-24/+43 * machine/soundcard.h -> sys/soundcard.hmarcus2002-04-122-5/+22 * Fix breakage on a very recent -current.sobomax2001-12-061-0/+19 * Update to 1.2.3.sobomax2001-07-1712-811/+1109 * SWitch maintainership of core GNOME ports to a small group ofade2001-05-121-1/+1