aboutsummaryrefslogtreecommitdiff
path: root/net/liveMedia/Makefile
blob: ff74ff14d87273f16c4fe26fcc679f734f6ce48f (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
# Created by: nork@FreeBSD.org

PORTNAME=	liveMedia
DISTVERSION=	2020.11.26
PORTEPOCH=	2
CATEGORIES=	net devel
MASTER_SITES=	http://www.live555.com/liveMedia/public/ \
		https://download.videolan.org/contrib/live555/
DISTNAME=	live.${PORTVERSION}

MAINTAINER=	multimedia@FreeBSD.org
COMMENT=	LIVE.COM Streaming Media

LICENSE=	LGPL21 MAT
LICENSE_COMB=	multi
LICENSE_NAME_MAT=	dated material
LICENSE_TEXT_MAT=	dated material
LICENSE_PERMS_MAT=	pkg-mirror dist-mirror auto-accept

BROKEN_sparc64=		Fails to compile

WRKSRC=		${WRKDIR}/live

HAS_CONFIGURE=	yes

CONFIGURE_SCRIPT=	genMakefiles
CONFIGURE_ARGS=		fixed-freebsd

USES=		compiler:c++11-lang gmake ssl
USE_LDCONFIG=	yes

.include <bsd.port.pre.mk>

.if ${ARCH} == "amd64"
CFLAGS+=	-fPIC
.else
CFLAGS+=	-fpic
.endif

post-extract:
	${CP} ${FILESDIR}/config.fixed-freebsd ${WRKSRC}

post-patch:
	# LIBS_FOR_CONSOLE_APPLICATION = -lssl -lcrypto
	${REINPLACE_CMD} '/LIBS_FOR_CONSOLE_APPLICATION/s|$$|-L${OPENSSLLIB} -lssl -lcrypto|' \
		${WRKSRC}/config.fixed-freebsd

.if ${PREFIX} != "/usr/local"
post-configure:
	${REINPLACE_CMD} -e 's,^PREFIX = /usr/local,PREFIX = "${PREFIX}",' \
		${WRKSRC}/Makefile ${WRKSRC}/*/Makefile
.endif

.include <bsd.port.post.mk>