Changeset View
Changeset View
Standalone View
Standalone View
head/audio/shoutcast/Makefile
Show All 21 Lines | |||||
USE_RC_SUBR= shoutcast | USE_RC_SUBR= shoutcast | ||||
CONFLICTS= linux-shoutcast-[0-9]* | CONFLICTS= linux-shoutcast-[0-9]* | ||||
NO_WRKSUBDIR= yes | NO_WRKSUBDIR= yes | ||||
NO_BUILD= yes | NO_BUILD= yes | ||||
OPTIONS_DEFAULT= SERVERSETUP EXAMPLES | OPTIONS_DEFAULT= SERVERSETUP EXAMPLES | ||||
OPTIONS_DEFINE= SERVERSETUP DOCS EXAMPLES | OPTIONS_DEFINE= SERVERSETUP DOCS EXAMPLES | ||||
OPTIONS_SUB= yes | |||||
SETUPSERVER_DESC= SHOUTcast Server Setup Tools | SETUPSERVER_DESC= SHOUTcast Server Setup Tools | ||||
EXAMPLE_DESC= SHOUTcast Server Example Configuration Files | EXAMPLE_DESC= SHOUTcast Server Example Configuration Files | ||||
SHOUTCASTUSER= ${PORTNAME} | SHOUTCASTUSER= ${PORTNAME} | ||||
SHOUTCASTGROUP= ${PORTNAME} | SHOUTCASTGROUP= ${PORTNAME} | ||||
SHOUTCASTLDIR= /var/log/${PORTNAME} | SHOUTCASTLDIR= /var/log/${PORTNAME} | ||||
SHOUTCASTDIR= /var/run/${PORTNAME} | SHOUTCASTDIR= /var/run/${PORTNAME} | ||||
SHOUTCAST_SUB= SHOUTCASTUSER=${SHOUTCASTUSER} \ | SHOUTCAST_SUB= SHOUTCASTUSER=${SHOUTCASTUSER} \ | ||||
SHOUTCASTGROUP=${SHOUTCASTGROUP} \ | SHOUTCASTGROUP=${SHOUTCASTGROUP} \ | ||||
SHOUTCASTLDIR=${SHOUTCASTLDIR} \ | SHOUTCASTLDIR=${SHOUTCASTLDIR} \ | ||||
SHOUTCASTDIR=${SHOUTCASTDIR} | SHOUTCASTDIR=${SHOUTCASTDIR} | ||||
PLIST_SUB= ${SHOUTCAST_SUB} | PLIST_SUB= ${SHOUTCAST_SUB} | ||||
SUB_FILES= pkg-message | SUB_FILES= pkg-message | ||||
SUB_LIST= ${SHOUTCAST_SUB} | SUB_LIST= ${SHOUTCAST_SUB} | ||||
USERS= ${SHOUTCASTUSER} | USERS= ${SHOUTCASTUSER} | ||||
GROUPS= ${SHOUTCASTGROUP} | GROUPS= ${SHOUTCASTGROUP} | ||||
.include <bsd.port.options.mk> | |||||
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000010 | .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000010 | ||||
.if ${ARCH} == "i386" | .if ${ARCH} == "i386" | ||||
RUN_DEPENDS+= ${LOCALBASE}/lib/compat/libstdc++.so.6:${PORTSDIR}/misc/compat9x | RUN_DEPENDS+= ${LOCALBASE}/lib/compat/libstdc++.so.6:${PORTSDIR}/misc/compat9x | ||||
.else | .else | ||||
RUN_DEPENDS+= ${LOCALBASE}/lib32/compat/libstdc++.so.6:${PORTSDIR}/misc/compat9x | RUN_DEPENDS+= ${LOCALBASE}/lib32/compat/libstdc++.so.6:${PORTSDIR}/misc/compat9x | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MSERVERSETUP} | |||||
PLIST_SUB+= SERVERSETUP="" | |||||
.else | |||||
PLIST_SUB+= SERVERSETUP="@comment " | |||||
.endif | |||||
post-patch: | post-patch: | ||||
.for _file in basic public relay simple | .for _file in basic public relay simple | ||||
@${REINPLACE_CMD} -e '/sc_serv2 directory/d' \ | @${REINPLACE_CMD} -e '/sc_serv2 directory/d' \ | ||||
-e 's#=.*/\([^\.]*.log\)#=${SHOUTCASTLDIR}/\1#g' \ | -e 's#=.*/\([^\.]*.log\)#=${SHOUTCASTLDIR}/\1#g' \ | ||||
-e 's#=control/#=${SHOUTCASTDIR}/#g' ${WRKSRC}/examples/sc_serv_${_file}.conf | -e 's#=control/#=${SHOUTCASTDIR}/#g' ${WRKSRC}/examples/sc_serv_${_file}.conf | ||||
.endfor | .endfor | ||||
do-install: | do-install: | ||||
${INSTALL_PROGRAM} ${WRKSRC}/sc_serv ${STAGEDIR}${PREFIX}/sbin | ${INSTALL_PROGRAM} ${WRKSRC}/sc_serv ${STAGEDIR}${PREFIX}/sbin | ||||
${MKDIR} ${STAGEDIR}${ETCDIR} | ${MKDIR} ${STAGEDIR}${ETCDIR} | ||||
${MKDIR} ${STAGEDIR}${SHOUTCASTLDIR} | ${MKDIR} ${STAGEDIR}${SHOUTCASTLDIR} | ||||
${MKDIR} ${STAGEDIR}${SHOUTCASTDIR} | ${MKDIR} ${STAGEDIR}${SHOUTCASTDIR} | ||||
${MKDIR} ${STAGEDIR}${SHOUTCASTDIR}/logs | ${MKDIR} ${STAGEDIR}${SHOUTCASTDIR}/logs | ||||
${MKDIR} ${STAGEDIR}${SHOUTCASTDIR}/control | ${MKDIR} ${STAGEDIR}${SHOUTCASTDIR}/control | ||||
.if ${PORT_OPTIONS:MDOCS} | |||||
do-install-DOCS-on: | |||||
${MKDIR} ${STAGEDIR}${DOCSDIR} | ${MKDIR} ${STAGEDIR}${DOCSDIR} | ||||
${INSTALL_DATA} ${WRKSRC}/DNAS_Server_Changelog.html ${STAGEDIR}${DOCSDIR}/DNAS_Server_Changelog.html | ${INSTALL_DATA} ${WRKSRC}/DNAS_Server_Changelog.html ${STAGEDIR}${DOCSDIR}/DNAS_Server_Changelog.html | ||||
${INSTALL_DATA} ${WRKSRC}/Readme_DNAS_Server.html ${STAGEDIR}${DOCSDIR}/Readme_DNAS_Server.html | ${INSTALL_DATA} ${WRKSRC}/Readme_DNAS_Server.html ${STAGEDIR}${DOCSDIR}/Readme_DNAS_Server.html | ||||
${INSTALL_DATA} ${WRKSRC}/tos.txt ${STAGEDIR}${DOCSDIR}/tos.txt | ${INSTALL_DATA} ${WRKSRC}/tos.txt ${STAGEDIR}${DOCSDIR}/tos.txt | ||||
${INSTALL_DATA} ${WRKSRC}/cacert.pem ${STAGEDIR}${DOCSDIR}/cacert.pem | ${INSTALL_DATA} ${WRKSRC}/cacert.pem ${STAGEDIR}${DOCSDIR}/cacert.pem | ||||
${MKDIR} ${STAGEDIR}${DOCSDIR}/docs | ${MKDIR} ${STAGEDIR}${DOCSDIR}/docs | ||||
${INSTALL_DATA} ${WRKSRC}/docs/Getting_Started.html ${STAGEDIR}${DOCSDIR}/docs/Getting_Started.html | ${INSTALL_DATA} ${WRKSRC}/docs/Getting_Started.html ${STAGEDIR}${DOCSDIR}/docs/Getting_Started.html | ||||
${INSTALL_DATA} ${WRKSRC}/docs/DNAS_Server_XML_Responses.html ${STAGEDIR}${DOCSDIR}/docs/DNAS_Server_XML_Responses.html | ${INSTALL_DATA} ${WRKSRC}/docs/DNAS_Server_XML_Responses.html ${STAGEDIR}${DOCSDIR}/docs/DNAS_Server_XML_Responses.html | ||||
Show All 30 Lines | do-install-DOCS-on: | ||||
${INSTALL_DATA} ${WRKSRC}/docs/res/Windows_Console.png ${STAGEDIR}${DOCSDIR}/docs/res/Windows_Console.png | ${INSTALL_DATA} ${WRKSRC}/docs/res/Windows_Console.png ${STAGEDIR}${DOCSDIR}/docs/res/Windows_Console.png | ||||
${INSTALL_DATA} ${WRKSRC}/docs/res/Stream_Reserved_List_Page.png ${STAGEDIR}${DOCSDIR}/docs/res/Stream_Reserved_List_Page.png | ${INSTALL_DATA} ${WRKSRC}/docs/res/Stream_Reserved_List_Page.png ${STAGEDIR}${DOCSDIR}/docs/res/Stream_Reserved_List_Page.png | ||||
${INSTALL_DATA} ${WRKSRC}/docs/res/Summary.png ${STAGEDIR}${DOCSDIR}/docs/res/Summary.png | ${INSTALL_DATA} ${WRKSRC}/docs/res/Summary.png ${STAGEDIR}${DOCSDIR}/docs/res/Summary.png | ||||
${INSTALL_DATA} ${WRKSRC}/docs/res/Setup_Mode_Error.png ${STAGEDIR}${DOCSDIR}/docs/res/Setup_Mode_Error.png | ${INSTALL_DATA} ${WRKSRC}/docs/res/Setup_Mode_Error.png ${STAGEDIR}${DOCSDIR}/docs/res/Setup_Mode_Error.png | ||||
${INSTALL_DATA} ${WRKSRC}/docs/res/Editing.png ${STAGEDIR}${DOCSDIR}/docs/res/Editing.png | ${INSTALL_DATA} ${WRKSRC}/docs/res/Editing.png ${STAGEDIR}${DOCSDIR}/docs/res/Editing.png | ||||
${INSTALL_DATA} ${WRKSRC}/docs/res/Console_Windows.png ${STAGEDIR}${DOCSDIR}/docs/res/Console_Windows.png | ${INSTALL_DATA} ${WRKSRC}/docs/res/Console_Windows.png ${STAGEDIR}${DOCSDIR}/docs/res/Console_Windows.png | ||||
${INSTALL_DATA} ${WRKSRC}/docs/res/View_Source_Connection_Details.png ${STAGEDIR}${DOCSDIR}/docs/res/View_Source_Connection_Details.png | ${INSTALL_DATA} ${WRKSRC}/docs/res/View_Source_Connection_Details.png ${STAGEDIR}${DOCSDIR}/docs/res/View_Source_Connection_Details.png | ||||
.endif | do-install-SERVERSETUP-on: | ||||
.if ${PORT_OPTIONS:MSERVERSETUP} | |||||
${MKDIR} ${STAGEDIR}${WWWDIR}/setup | ${MKDIR} ${STAGEDIR}${WWWDIR}/setup | ||||
${INSTALL_DATA} ${WRKSRC}/setup.sh ${STAGEDIR}${WWWDIR}/setup.sh | ${INSTALL_DATA} ${WRKSRC}/setup.sh ${STAGEDIR}${WWWDIR}/setup.sh | ||||
${INSTALL_DATA} ${WRKSRC}/setup/setup.js ${STAGEDIR}${WWWDIR}/setup/setup.js | ${INSTALL_DATA} ${WRKSRC}/setup/setup.js ${STAGEDIR}${WWWDIR}/setup/setup.js | ||||
${INSTALL_DATA} ${WRKSRC}/setup/setup.html ${STAGEDIR}${WWWDIR}/setup/setup.html | ${INSTALL_DATA} ${WRKSRC}/setup/setup.html ${STAGEDIR}${WWWDIR}/setup/setup.html | ||||
${INSTALL_DATA} ${WRKSRC}/setup/setup.txt ${STAGEDIR}${WWWDIR}/setup/setup.txt | ${INSTALL_DATA} ${WRKSRC}/setup/setup.txt ${STAGEDIR}${WWWDIR}/setup/setup.txt | ||||
.endif | |||||
.if ${PORT_OPTIONS:MEXAMPLES} | do-install-EXAMPLES-on: | ||||
${MKDIR} ${STAGEDIR}${EXAMPLESDIR} | ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} | ||||
${INSTALL_DATA} ${WRKSRC}/examples/sc_serv_basic.conf ${STAGEDIR}${EXAMPLESDIR}/sc_serv_basic.conf | ${INSTALL_DATA} ${WRKSRC}/examples/sc_serv_basic.conf ${STAGEDIR}${EXAMPLESDIR}/sc_serv_basic.conf | ||||
${INSTALL_DATA} ${WRKSRC}/examples/sc_serv_public.conf ${STAGEDIR}${EXAMPLESDIR}/sc_serv_public.conf | ${INSTALL_DATA} ${WRKSRC}/examples/sc_serv_public.conf ${STAGEDIR}${EXAMPLESDIR}/sc_serv_public.conf | ||||
${INSTALL_DATA} ${WRKSRC}/examples/sc_serv_relay.conf ${STAGEDIR}${EXAMPLESDIR}/sc_serv_relay.conf | ${INSTALL_DATA} ${WRKSRC}/examples/sc_serv_relay.conf ${STAGEDIR}${EXAMPLESDIR}/sc_serv_relay.conf | ||||
${INSTALL_DATA} ${WRKSRC}/examples/sc_serv_simple.conf ${STAGEDIR}${EXAMPLESDIR}/sc_serv_simple.conf | ${INSTALL_DATA} ${WRKSRC}/examples/sc_serv_simple.conf ${STAGEDIR}${EXAMPLESDIR}/sc_serv_simple.conf | ||||
.endif | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |