aboutsummaryrefslogtreecommitdiffstats
path: root/net/liveMedia/Makefile
blob: 333a2c5b2f5684a026725811d4a651b9e3eb7884 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
# New ports collection makefile for:    liveMedia
# Date created:             2002/09/25
# Whom:                 nork@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=   liveMedia
PORTVERSION=    2011.06.16
PORTREVISION=   0
PORTEPOCH=  2
CATEGORIES= net devel
MASTER_SITES=   http://www.live555.com/liveMedia/public/
MASTER_SITES+=  ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= nork
DISTNAME=   live.${PORTVERSION}

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

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

NO_CDROM=   'dated material'

WRKSRC=     ${WRKDIR}/live
PLIST=      ${WRKDIR}/pkg-plist

HAS_CONFIGURE=  YES
MAKE_JOBS_SAFE= YES

CONFIGURE_SCRIPT=   genMakefiles
CONFIGURE_ARGS=     fixed-${OPSYS:L}

INSTALL_DATADIR=    ${INSTALL} -d ${_SHROWNGRP} -m 755

BasicUsageEnvironment=  \
        BasicUsageEnvironment/include/BasicHashTable.hh \
        BasicUsageEnvironment/include/BasicUsageEnvironment.hh \
        BasicUsageEnvironment/include/BasicUsageEnvironment0.hh \
        BasicUsageEnvironment/include/BasicUsageEnvironment_version.hh \
        BasicUsageEnvironment/include/DelayQueue.hh \
        BasicUsageEnvironment/include/HandlerSet.hh

UsageEnvironment=   \
        UsageEnvironment/include/Boolean.hh \
        UsageEnvironment/include/HashTable.hh \
        UsageEnvironment/include/UsageEnvironment.hh \
        UsageEnvironment/include/UsageEnvironment_version.hh \
        UsageEnvironment/include/strDup.hh

groupsock=      \
        groupsock/include/GroupEId.hh \
        groupsock/include/Groupsock.hh \
        groupsock/include/GroupsockHelper.hh \
        groupsock/include/IOHandlers.hh \
        groupsock/include/NetAddress.hh \
        groupsock/include/NetCommon.h \
        groupsock/include/NetInterface.hh \
        groupsock/include/TunnelEncaps.hh \
        groupsock/include/groupsock_version.hh

liveMedia=      \
        liveMedia/include/AC3AudioFileServerMediaSubsession.hh \
        liveMedia/include/AC3AudioRTPSink.hh \
        liveMedia/include/AC3AudioRTPSource.hh \
        liveMedia/include/AC3AudioStreamFramer.hh \
        liveMedia/include/ADTSAudioFileServerMediaSubsession.hh \
        liveMedia/include/ADTSAudioFileSource.hh \
        liveMedia/include/AMRAudioFileServerMediaSubsession.hh \
        liveMedia/include/AMRAudioFileSink.hh \
        liveMedia/include/AMRAudioFileSource.hh \
        liveMedia/include/AMRAudioRTPSink.hh \
        liveMedia/include/AMRAudioRTPSource.hh \
        liveMedia/include/AMRAudioSource.hh \
        liveMedia/include/AVIFileSink.hh \
        liveMedia/include/AudioInputDevice.hh \
        liveMedia/include/AudioRTPSink.hh \
        liveMedia/include/Base64.hh \
        liveMedia/include/BasicUDPSink.hh \
        liveMedia/include/BasicUDPSource.hh \
        liveMedia/include/ByteStreamFileSource.hh \
        liveMedia/include/ByteStreamMultiFileSource.hh \
        liveMedia/include/DarwinInjector.hh \
        liveMedia/include/DeviceSource.hh \
        liveMedia/include/DigestAuthentication.hh \
        liveMedia/include/DVVideoFileServerMediaSubsession.hh \
        liveMedia/include/DVVideoRTPSink.hh \
        liveMedia/include/DVVideoRTPSource.hh \
        liveMedia/include/DVVideoStreamFramer.hh \
        liveMedia/include/FileServerMediaSubsession.hh \
        liveMedia/include/FileSink.hh \
        liveMedia/include/FramedFileSource.hh \
        liveMedia/include/FramedFilter.hh \
        liveMedia/include/FramedSource.hh \
        liveMedia/include/GSMAudioRTPSink.hh \
        liveMedia/include/H261VideoRTPSource.hh \
        liveMedia/include/H263plusVideoFileServerMediaSubsession.hh \
        liveMedia/include/H263plusVideoRTPSink.hh \
        liveMedia/include/H263plusVideoRTPSource.hh \
        liveMedia/include/H263plusVideoStreamFramer.hh \
        liveMedia/include/H264VideoFileServerMediaSubsession.hh \
        liveMedia/include/H264VideoFileSink.hh \
        liveMedia/include/H264VideoRTPSink.hh \
        liveMedia/include/H264VideoRTPSource.hh \
        liveMedia/include/H264VideoStreamDiscreteFramer.hh \
        liveMedia/include/H264VideoStreamFramer.hh \
        liveMedia/include/HTTPSink.hh \
        liveMedia/include/InputFile.hh \
        liveMedia/include/JPEGVideoRTPSink.hh \
        liveMedia/include/JPEGVideoRTPSource.hh \
        liveMedia/include/JPEGVideoSource.hh \
        liveMedia/include/Locale.hh \
        liveMedia/include/MP3ADU.hh \
        liveMedia/include/MP3ADURTPSink.hh \
        liveMedia/include/MP3ADURTPSource.hh \
        liveMedia/include/MP3ADUTranscoder.hh \
        liveMedia/include/MP3ADUinterleaving.hh \
        liveMedia/include/MP3AudioFileServerMediaSubsession.hh \
        liveMedia/include/MP3FileSource.hh \
        liveMedia/include/MP3HTTPSource.hh \
        liveMedia/include/MP3Transcoder.hh \
        liveMedia/include/MPEG1or2AudioRTPSink.hh \
        liveMedia/include/MPEG1or2AudioRTPSource.hh \
        liveMedia/include/MPEG1or2AudioStreamFramer.hh \
        liveMedia/include/MPEG1or2Demux.hh \
        liveMedia/include/MPEG1or2DemuxedElementaryStream.hh \
        liveMedia/include/MPEG1or2DemuxedServerMediaSubsession.hh \
        liveMedia/include/MPEG1or2FileServerDemux.hh \
        liveMedia/include/MPEG1or2VideoFileServerMediaSubsession.hh \
        liveMedia/include/MPEG1or2VideoHTTPSink.hh \
        liveMedia/include/MPEG1or2VideoRTPSink.hh \
        liveMedia/include/MPEG1or2VideoRTPSource.hh \
        liveMedia/include/MPEG1or2VideoStreamDiscreteFramer.hh \
        liveMedia/include/MPEG1or2VideoStreamFramer.hh \
        liveMedia/include/MPEG2IndexFromTransportStream.hh \
        liveMedia/include/MPEG2TransportFileServerMediaSubsession.hh \
        liveMedia/include/MPEG2TransportStreamFramer.hh \
        liveMedia/include/MPEG2TransportStreamFromESSource.hh \
        liveMedia/include/MPEG2TransportStreamFromPESSource.hh \
        liveMedia/include/MPEG2TransportStreamIndexFile.hh \
        liveMedia/include/MPEG2TransportStreamMultiplexor.hh \
        liveMedia/include/MPEG2TransportStreamTrickModeFilter.hh \
        liveMedia/include/MPEG4ESVideoRTPSink.hh \
        liveMedia/include/MPEG4ESVideoRTPSource.hh \
        liveMedia/include/MPEG4GenericRTPSink.hh \
        liveMedia/include/MPEG4GenericRTPSource.hh \
        liveMedia/include/MPEG4LATMAudioRTPSink.hh \
        liveMedia/include/MPEG4LATMAudioRTPSource.hh \
        liveMedia/include/MPEG4VideoFileServerMediaSubsession.hh \
        liveMedia/include/MPEG4VideoStreamDiscreteFramer.hh \
        liveMedia/include/MPEG4VideoStreamFramer.hh \
        liveMedia/include/MPEGVideoStreamFramer.hh \
        liveMedia/include/Media.hh \
        liveMedia/include/MediaSession.hh \
        liveMedia/include/MediaSink.hh \
        liveMedia/include/MediaSource.hh \
        liveMedia/include/MultiFramedRTPSink.hh \
        liveMedia/include/MultiFramedRTPSource.hh \
        liveMedia/include/OnDemandServerMediaSubsession.hh \
        liveMedia/include/OutputFile.hh \
        liveMedia/include/PassiveServerMediaSubsession.hh \
        liveMedia/include/QCELPAudioRTPSource.hh \
        liveMedia/include/QuickTimeFileSink.hh \
        liveMedia/include/QuickTimeGenericRTPSource.hh \
        liveMedia/include/RTCP.hh \
        liveMedia/include/RTPInterface.hh \
        liveMedia/include/RTPSink.hh \
        liveMedia/include/RTPSource.hh \
        liveMedia/include/RTSPClient.hh \
        liveMedia/include/RTSPCommon.hh \
        liveMedia/include/RTSPServer.hh \
        liveMedia/include/SIPClient.hh \
        liveMedia/include/ServerMediaSession.hh \
        liveMedia/include/SimpleRTPSink.hh \
        liveMedia/include/SimpleRTPSource.hh \
        liveMedia/include/VideoRTPSink.hh \
        liveMedia/include/WAVAudioFileServerMediaSubsession.hh \
        liveMedia/include/WAVAudioFileSource.hh \
        liveMedia/include/liveMedia.hh \
        liveMedia/include/liveMedia_version.hh \
        liveMedia/include/uLawAudioFilter.hh

.include <bsd.port.pre.mk>

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

.if ${ARCH} == "sparc64"
BROKEN=     Does not compile
.endif

post-extract:
    @${SED} -e "s|%%CFLAGS%%|${CFLAGS}|" \
        ${FILESDIR}/config.fixed-${OPSYS:L} > ${WRKSRC}/config.fixed-${OPSYS:L}

post-build:
    @${RM} -f ${PLIST}
    @${TOUCH} ${PLIST}
    @${ECHO_CMD} bin/playSIP  >> ${PLIST}
    @${ECHO_CMD} bin/openRTSP >> ${PLIST}
    @${ECHO_CMD} bin/sapWatch >> ${PLIST}
    @${ECHO_CMD} live/BasicUsageEnvironment/libBasicUsageEnvironment.a >> ${PLIST}
    @${ECHO_CMD} live/UsageEnvironment/libUsageEnvironment.a           >> ${PLIST}
    @${ECHO_CMD} live/groupsock/libgroupsock.a                         >> ${PLIST}
    @${ECHO_CMD} live/liveMedia/libliveMedia.a                         >> ${PLIST}
.for file in ${BasicUsageEnvironment}
    @${ECHO_CMD} live/BasicUsageEnvironment/include/${file:T} >> ${PLIST}
.endfor
.for file in ${UsageEnvironment}
    @${ECHO_CMD} live/UsageEnvironment/include/${file:T}      >> ${PLIST}
.endfor
.for file in ${groupsock}
    @${ECHO_CMD} live/groupsock/include/${file:T}             >> ${PLIST}
.endfor
.for file in ${liveMedia}
    @${ECHO_CMD} live/liveMedia/include/${file:T}             >> ${PLIST}
.endfor
    @${CAT} ${.CURDIR}/pkg-plist >> ${PLIST}

pre-su-install:
    @${INSTALL_DATADIR} ${PREFIX}/live
    @${INSTALL_DATADIR} ${PREFIX}/live/groupsock
    @${INSTALL_DATADIR} ${PREFIX}/live/liveMedia
    @${INSTALL_DATADIR} ${PREFIX}/live/UsageEnvironment
    @${INSTALL_DATADIR} ${PREFIX}/live/BasicUsageEnvironment
    @${INSTALL_DATADIR} ${PREFIX}/live/groupsock/include
    @${INSTALL_DATADIR} ${PREFIX}/live/liveMedia/include
    @${INSTALL_DATADIR} ${PREFIX}/live/UsageEnvironment/include
    @${INSTALL_DATADIR} ${PREFIX}/live/BasicUsageEnvironment/include

do-install:
    @${INSTALL_PROGRAM} ${WRKSRC}/testProgs/playSIP  ${PREFIX}/bin/
    @${INSTALL_PROGRAM} ${WRKSRC}/testProgs/openRTSP ${PREFIX}/bin/
    @${INSTALL_PROGRAM} ${WRKSRC}/testProgs/sapWatch ${PREFIX}/bin/
    @${INSTALL_DATA} ${WRKSRC}/BasicUsageEnvironment/libBasicUsageEnvironment.a ${PREFIX}/live/BasicUsageEnvironment/
    @${INSTALL_DATA} ${WRKSRC}/UsageEnvironment/libUsageEnvironment.a           ${PREFIX}/live/UsageEnvironment/
    @${INSTALL_DATA} ${WRKSRC}/groupsock/libgroupsock.a                         ${PREFIX}/live/groupsock/
    @${INSTALL_DATA} ${WRKSRC}/liveMedia/libliveMedia.a                         ${PREFIX}/live/liveMedia/
.for file in ${BasicUsageEnvironment}
    @${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/live/BasicUsageEnvironment/include/
.endfor
.for file in ${UsageEnvironment}
    @${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/live/UsageEnvironment/include/
.endfor
.for file in ${groupsock}
    @${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/live/groupsock/include/
.endfor
.for file in ${liveMedia}
    @${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/live/liveMedia/include/
.endfor

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>