blob: 88cf74b1cae02c4386a927227a4e03ef0d5a61b1 (
plain)
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
|
# $NetBSD: Makefile,v 1.10 2012/10/03 21:56:51 wiz Exp $
DISTNAME= DarwinStreamingSrvr5.5.5-Source
PKGNAME= DarwinStreamingServer-5.5.5
PKGREVISION= 4
CATEGORIES= net multimedia
MASTER_SITES= http://static.macosforge.org/dss/downloads/
MAINTAINER= adam@NetBSD.org
HOMEPAGE= http://dss.macosforge.org/
COMMENT= Open source version of Apple QuickTime Streaming Server
LICENSE= apple-public-source-license
RESTRICTED= Under APSL (see http://www.opensource.apple.com/apsl/).
NO_BIN_ON_CDROM=${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_LANGUAGES= c c++
MAKE_FILE= Makefile.POSIX
MAKE_ENV+= CCOMP=${CC:Q} CPLUS=${CXX:Q} LINKER=${CXX:Q}
MAKE_ENV+= COMPILER_FLAGS=${CFLAGS:Q} INCLUDE_FLAG="-include"
MAKE_ENV+= CORE_LINK_LIBS="-pthread -lm -lcrypt -lstdc++"
MAKE_ENV+= SHARED="-shared" MODULE_LIBS="-lgcc -lstdc++"
BUILD_DIRS= CommonUtilitiesLib
BUILD_DIRS+= QTFileLib
BUILD_DIRS+= .
BUILD_DIRS+= APIModules/QTSSRefMovieModule
BUILD_DIRS+= APIModules/QTSSDemoAuthorizationModule.bproj
BUILD_DIRS+= APIModules/QTSSRawFileModule.bproj
BUILD_DIRS+= APIModules/QTSSSpamDefenseModule.bproj
BUILD_DIRS+= APIModules/QTSSHomeDirectoryModule
BUILD_DIRS+= StreamingProxy.tproj
BUILD_DIRS+= qtpasswd.tproj
BUILD_DIRS+= PlaylistBroadcaster.tproj
BUILD_DIRS+= MP3Broadcaster
BUILD_DIRS+= QTFileTools/QTBroadcaster.tproj
BUILD_DIRS+= QTFileTools/QTFileInfo.tproj
BUILD_DIRS+= QTFileTools/QTFileTest.tproj
BUILD_DIRS+= QTFileTools/QTRTPFileTest.tproj
BUILD_DIRS+= QTFileTools/QTRTPGen.tproj
BUILD_DIRS+= QTFileTools/QTSDPGen.tproj
BUILD_DIRS+= QTFileTools/QTSampleLister.tproj
BUILD_DIRS+= QTFileTools/QTTrackInfo.tproj
INSTALLATION_DIRS+= libexec/StreamingServerModules
INSTALLATION_DIRS+= share/examples/streaming
INSTALLATION_DIRS+= share/streaming
INSTALLATION_DIRS+= share/streaming/AdminHtml
INSTALLATION_DIRS+= share/streaming/AdminHtml/images
INSTALLATION_DIRS+= share/streaming/AdminHtml/includes
INSTALLATION_DIRS+= share/streaming/AdminHtml/html_en
INSTALLATION_DIRS+= share/streaming/movies
INSTALLATION_DIRS+= share/streaming/playlists
PKG_USERS= qtss:qtss
PKG_GROUPS= qtss
PKG_GECOS.qtss= Darwin Streaming Server user
INTERACTIVE_STAGE= fetch build
FETCH_MESSAGE= "Darwin Streaming Server is available as a free download"
FETCH_MESSAGE+= "under the APSL. Downloading the source code components"
FETCH_MESSAGE+= "requires APSL registration."
FETCH_MESSAGE+= "You should fetch the source code manually from"
FETCH_MESSAGE+= "${MASTER_SITES}${DISTFILES} and put into"
FETCH_MESSAGE+= "${DISTDIR}/${DISTFILES} directory."
REPLACE_PERL+= WebAdmin/WebAdminHtml/broadcaster_lib.pl
REPLACE_PERL+= WebAdmin/WebAdminHtml/parse_xml.cgi
REPLACE_PERL+= WebAdmin/WebAdminHtml/playlist-lib.pl
REPLACE_PERL+= WebAdmin/WebAdminHtml/relayxmlparser.pl
REPLACE_PERL+= WebAdmin/WebAdminHtml/startplaylists.pl
REPLACE_PERL+= WebAdmin/WebAdminHtml/view_broadcast.cgi
REPLACE_PERL+= WebAdmin/src/streamingadminserver.pl
REPLACE_PERL+= WinNTSupport/WinPasswdAssistant.pl
CONF_FILES= ${PKG_SYSCONFDIR:Q}/streaming/qtgroups ${PKG_SYSCONFDIR:Q}/streaming/qtgroups
CONF_FILES+= ${PKG_SYSCONFDIR:Q}/streaming/qtusers ${PKG_SYSCONFDIR:Q}/streaming/qtusers
CONF_FILES+= ${PKG_SYSCONFDIR:Q}/streaming/relayconfig.xml-Sample ${PKG_SYSCONFDIR:Q}/streaming/relayconfig.xml
CONF_FILES+= ${PKG_SYSCONFDIR:Q}/streaming/streamingloadtool.conf ${PKG_SYSCONFDIR:Q}/streaming/streamingloadtool.conf
CONF_FILES+= ${PKG_SYSCONFDIR:Q}/streaming/streamingserver.xml-POSIX ${PKG_SYSCONFDIR:Q}/streaming/streamingserver.xml
SUBST_CLASSES+= makefile
SUBST_STAGE.makefile= post-patch
SUBST_MESSAGE.makefile= Fixing Makefiles
SUBST_FILES.makefile+= APIModules/QTSSDemoAuthorizationModule.bproj/Makefile.POSIX
SUBST_FILES.makefile+= APIModules/QTSSHomeDirectoryModule/Makefile.POSIX
SUBST_FILES.makefile+= APIModules/QTSSRawFileModule.bproj/Makefile.POSIX
SUBST_FILES.makefile+= APIModules/QTSSRefMovieModule/Makefile.POSIX
SUBST_FILES.makefile+= APIModules/QTSSSpamDefenseModule.bproj/Makefile.POSIX
SUBST_FILES.makefile+= APIStubLib/makefile.apistublib.POSIX
SUBST_FILES.makefile+= CommonUtilitiesLib/Makefile.POSIX
SUBST_FILES.makefile+= HTTPUtilitiesLib/Makefile.POSIX
SUBST_FILES.makefile+= MP3Broadcaster/Makefile.POSIX
SUBST_FILES.makefile+= Makefile.POSIX
SUBST_FILES.makefile+= PlaylistBroadcaster.tproj/Makefile.POSIX
SUBST_FILES.makefile+= QTFileLib/Makefile.POSIX
SUBST_FILES.makefile+= QTFileTools/QTBroadcaster.tproj/Makefile.POSIX
SUBST_FILES.makefile+= QTFileTools/QTFileInfo.tproj/Makefile.POSIX
SUBST_FILES.makefile+= QTFileTools/QTFileTest.tproj/Makefile.POSIX
SUBST_FILES.makefile+= QTFileTools/QTRTPFileTest.tproj/Makefile.POSIX
SUBST_FILES.makefile+= QTFileTools/QTRTPGen.tproj/Makefile.POSIX
SUBST_FILES.makefile+= QTFileTools/QTSDPGen.tproj/Makefile.POSIX
SUBST_FILES.makefile+= QTFileTools/QTSampleLister.tproj/Makefile.POSIX
SUBST_FILES.makefile+= QTFileTools/QTTrackInfo.tproj/Makefile.POSIX
SUBST_FILES.makefile+= StreamingProxy.tproj/Makefile.POSIX
SUBST_FILES.makefile+= qtpasswd.tproj/Makefile.POSIX
SUBST_SED.makefile+= -e "s|-O[023]||"
SUBST_CLASSES+= path
SUBST_STAGE.path= post-patch
SUBST_MESSAGE.path= Fixing paths
SUBST_FILES.path+= defaultPaths.h
SUBST_FILES.path+= WebAdmin/src/streamingadminserver.pl
SUBST_FILES.path+= streamingserver.xml-POSIX
SUBST_SED.path+= -e "s|/etc/streaming|${PKG_SYSCONFDIR}/streaming|"
SUBST_SED.path+= -e "s|/movies|/share/streaming/movies|"
SUBST_SED.path+= -e "s|/usr/local|${PREFIX}|"
SUBST_SED.path+= -e "s|/sbin/StreamingServer|/libexec/StreamingServer|"
SUBST_SED.path+= -e "s|/var/streaming/AdminHtml|${PREFIX}/share/streaming/AdminHtml|"
SUBST_SED.path+= -e "s|/var/streaming/playlists|${PREFIX}/share/streaming/playlists|"
SUBST_SED.path+= -e "s|/var/streaming/logs|${VARBASE}/log/streaming|"
SUBST_CLASSES+= conf
SUBST_STAGE.conf= post-patch
SUBST_MESSAGE.conf= Fixing configuration file
SUBST_FILES.conf+= WebAdmin/streamingadminserver.conf
SUBST_SED.conf+= -e "s|/Library/QuickTimeStreaming/AdminHtml|${PREFIX}/share/streaming/AdminHtml|"
SUBST_SED.conf+= -e "s|/Library/QuickTimeStreaming/playlists|${PREFIX}/share/streaming/playlists|"
SUBST_SED.conf+= -e "s|/Library/QuickTimeStreaming/Logs|${VARBASE}/log/streaming|"
SUBST_SED.conf+= -e "s|/usr/sbin/QuickTime|${PREFIX}/sbin/Darwin|"
post-extract:
rm -rf ${WRKSRC}/*PackageMetaData
PKG_DESTDIR_SUPPORT= user-destdir
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/DarwinStreamingServer ${DESTDIR}${PREFIX}/sbin
${INSTALL_PROGRAM} ${WRKSRC}/PlaylistBroadcaster.tproj/PlaylistBroadcaster ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/MP3Broadcaster/MP3Broadcaster ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/qtpasswd.tproj/qtpasswd ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/APIModules/QTSSHomeDirectoryModule/QTSSHomeDirectoryModule ${DESTDIR}${PREFIX}/libexec/StreamingServerModules
${INSTALL_PROGRAM} ${WRKSRC}/APIModules/QTSSRefMovieModule/QTSSRefMovieModule ${DESTDIR}${PREFIX}/libexec/StreamingServerModules
${INSTALL_PROGRAM} ${WRKSRC}/QTFileTools/QTBroadcaster.tproj/QTBroadcaster ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/QTFileTools/QTFileTest.tproj/QTFileTest ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/QTFileTools/QTRTPFileTest.tproj/QTRTPFileTest ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/QTFileTools/QTRTPGen.tproj/QTRTPGen ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/QTFileTools/QTSampleLister.tproj/QTSampleLister ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/QTFileTools/QTSDPGen.tproj/QTSDPGen ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/QTFileTools/QTTrackInfo.tproj/QTTrackInfo ${DESTDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/APIModules/QTSSHomeDirectoryModule/createuserstreamingdir ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/streamingserver.xml-POSIX ${DESTDIR}${PREFIX}/share/examples/streaming
${INSTALL_DATA} ${WRKSRC}/relayconfig.xml-Sample ${DESTDIR}${PREFIX}/share/examples/streaming
${INSTALL_DATA} ${WRKSRC}/qtusers ${DESTDIR}${PREFIX}/share/examples/streaming
${INSTALL_DATA} ${WRKSRC}/qtgroups ${DESTDIR}${PREFIX}/share/examples/streaming
${INSTALL_DATA} ${WRKSRC}/Documentation/readme.txt ${DESTDIR}${PREFIX}/share/streaming
${INSTALL_DATA} ${WRKSRC}/Documentation/3rdPartyAcknowledgements.rtf ${DESTDIR}${PREFIX}/share/streaming
${INSTALL_SCRIPT} ${WRKSRC}/WebAdmin/src/streamingadminserver.pl ${DESTDIR}${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/WebAdmin/WebAdminHtml/*.pl ${DESTDIR}${PREFIX}/share/streaming/AdminHtml
${INSTALL_DATA} ${WRKSRC}/WebAdmin/WebAdminHtml/*.cgi ${DESTDIR}${PREFIX}/share/streaming/AdminHtml
${INSTALL_DATA} ${WRKSRC}/WebAdmin/WebAdminHtml/*.html ${DESTDIR}${PREFIX}/share/streaming/AdminHtml
${INSTALL_DATA} ${WRKSRC}/WebAdmin/WebAdminHtml/images/*.gif ${DESTDIR}${PREFIX}/share/streaming/AdminHtml/images
${INSTALL_DATA} ${WRKSRC}/WebAdmin/WebAdminHtml/includes/*.js ${DESTDIR}${PREFIX}/share/streaming/AdminHtml/includes
${INSTALL_DATA} ${WRKSRC}/WebAdmin/WebAdminHtml/html_en/messages ${DESTDIR}${PREFIX}/share/streaming/AdminHtml/html_en
${INSTALL_DATA} ${WRKSRC}/WebAdmin/WebAdminHtml/html_en/genres ${DESTDIR}${PREFIX}/share/streaming/AdminHtml/html_en
${INSTALL_DATA} ${WRKSRC}/sample* ${DESTDIR}${PREFIX}/share/streaming/movies
.include "../../lang/perl5/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|