13
0

Windows installer, allow to opt-out of Harrison plugins #8390

This commit is contained in:
Robin Gareus 2020-09-10 01:30:25 +02:00
parent 1f356e2883
commit f61ecae4b2
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -305,7 +305,7 @@ if test x$WITH_GRATIS_X42_LV2 != x ; then
fi
if test x$WITH_HARRISON_LV2 != x ; then
mkdir -p $ALIBDIR/LV2
mkdir -p $DESTDIR/LV2
echo "Including Harrison LV2s"
@ -313,7 +313,7 @@ if test x$WITH_HARRISON_LV2 != x ; then
-z "${SRCCACHE}/${HARRISONLV2}.${WARCH}.zip" \
-o "${SRCCACHE}/${HARRISONLV2}.${WARCH}.zip" \
"${HARRISONDSPURL}/${HARRISONLV2}.${WARCH}.zip"
unzip -q -d "$ALIBDIR/LV2/" "${SRCCACHE}/${HARRISONLV2}.${WARCH}.zip"
unzip -q -d "$DESTDIR/LV2/" "${SRCCACHE}/${HARRISONLV2}.${WARCH}.zip"
fi
if test -n "$MIXBUS"; then
@ -460,6 +460,25 @@ EOF
fi
if test x$WITH_HARRISON_LV2 != x ; then
if test -n "$MIXBUS"; then
cat >> $NSISFILE << EOF
Section "Harrison XT plugins and a-/ACE plugin GUIs\$\\r\$\\n" SecXT
SectionIn RO
SetOutPath \$INSTDIR\\lib
File /r LV2
SectionEnd
EOF
else
cat >> $NSISFILE << EOF
Section "Harrison XT-plugins" SecXT
SetOutPath \$INSTDIR\\lib\\${LOWERCASE_DIRNAME}
File /r LV2
SectionEnd
EOF
fi
fi
cat >> $NSISFILE << EOF
Section "WASAPI sound driver" SecWASAPI
@ -496,6 +515,11 @@ if test -z "$NOVIDEOTOOLS"; then
LangString DESC_SecVideo \${LANG_ENGLISH} "Video Tools\$\\r\$\\nxjadeo-${XJADEO_VERSION}\$\\r\$\\nharvid-${HARVID_VERSION}"
EOF
fi
if test x$WITH_HARRISON_LV2 != x ; then
cat >> $NSISFILE << EOF
LangString DESC_SecXT \${LANG_ENGLISH} "These are proprietary additions, but the DSP is not license encumbered. XT-plugin GUIs are commercial, the additional a-*/ACE plugin GUIs are free."
EOF
fi
cat >> $NSISFILE << EOF
LangString DESC_SecMenu \${LANG_ENGLISH} "Create Start-Menu Shortcuts (recommended)."
@ -510,6 +534,12 @@ if test -z "$NOVIDEOTOOLS"; then
EOF
fi
if test x$WITH_HARRISON_LV2 != x ; then
cat >> $NSISFILE << EOF
!insertmacro MUI_DESCRIPTION_TEXT \${SecXT} \$(DESC_SecXT)
EOF
fi
cat >> $NSISFILE << EOF
!insertmacro MUI_DESCRIPTION_TEXT \${SecMenu} \$(DESC_SecMenu)
!insertmacro MUI_FUNCTION_DESCRIPTION_END