aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/oscam/Makefile
blob: 471e4e8c75f61edb66da6d2a11a7088638d44fb7 (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
# Created by: Franz Bettag <franz@bett.ag>
# $FreeBSD$

PORTNAME=   oscam
PORTVERSION=    1.20
PORTREVISION=   1
CATEGORIES= multimedia
MASTER_SITES=   http://el8.nl/~fbettag/oscam/

MAINTAINER= franz@bett.ag
COMMENT=    Softcam software to decrypt digital tv channels

LICENSE=    GPLv3

USES=       compiler gmake ssl tar:bzip2
USE_RC_SUBR=    oscam

.if target(gen-dist)
FETCH_DEPENDS+= svn:devel/subversion
.endif
SVN_REV=    11062
SVN_SRC=    http://www.streamboard.tv/svn/oscam/trunk

OPTIONS_DEFINE= EXAMPLES

.include <bsd.port.pre.mk>

.if ${SSL_DEFAULT} == base
BROKEN_FreeBSD_12=  field has incomplete type 'BIGNUM' (aka 'struct bignum_st')
BROKEN_FreeBSD_13=  field has incomplete type 'BIGNUM' (aka 'struct bignum_st')
.endif

.if ${CHOSEN_COMPILER_TYPE} == clang
MAKE_ARGS+= HOSTCC=clang CC=clang
.endif

do-install:
    ${RM} ${WRKSRC}/Distribution/*.debug
    ${INSTALL_PROGRAM} ${WRKSRC}/Distribution/${PORTNAME}-${PORTVERSION}-* ${STAGEDIR}${PREFIX}/bin/oscam
    ${INSTALL_MAN} ${WRKSRC}/Distribution/doc/man/*.1 ${STAGEDIR}${PREFIX}/man/man1/
    ${INSTALL_MAN} ${WRKSRC}/Distribution/doc/man/*.5 ${STAGEDIR}${PREFIX}/man/man5/

do-install-EXAMPLES-on:
    ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
    ${INSTALL_DATA} ${WRKSRC}/Distribution/doc/example/* ${STAGEDIR}${EXAMPLESDIR}/

gen-dist:
    ${MKDIR} ${WRKDIR}
    svn export --force -r ${SVN_REV} ${SVN_SRC} ${WRKSRC}
    ${TAR} -cvy -C ${WRKDIR} -f ${DISTDIR}/${DISTNAME}.tar.bz2 ${DISTNAME}

.include <bsd.port.post.mk>