Remove obsolete installer/package scripts

This commit is contained in:
Tim Angus 2025-11-11 13:49:48 +00:00
parent 3470a1d26a
commit 6a67191989
44 changed files with 0 additions and 4067 deletions

View File

@ -1,74 +0,0 @@
ifndef VERSION
VERSION=1.36_SVN
endif
ifndef RELEASE
RELEASE=0
endif
ifndef PLATFORM
PLATFORM=mingw32
endif
ifndef ARCH
ARCH=x86
endif
ifndef INSTALLDIR
INSTALLDIR=.
endif
ifndef USE_RENDERER_DLOPEN
USE_RENDERER_DLOPEN=1
endif
ifndef USE_OPENAL_DLOPEN
USE_OPENAL_DLOPEN=1
endif
ifndef USE_INTERNAL_ZLIB
USE_INTERNAL_ZLIB=1
endif
ifndef USE_INTERNAL_JPEG
USE_INTERNAL_JPEG=1
endif
ifndef SDLDLL
ifeq ($(ARCH),x86_64)
SDLDLL=SDL264.dll
else
SDLDLL=SDL2.dll
endif
endif
ifndef OPENALDLL
ifeq ($(ARCH),x86_64)
OPENALDLL=OpenAL64.dll
else
OPENALDLL=OpenAL32.dll
endif
endif
DEFINES=
ifeq ($(USE_RENDERER_DLOPEN),1)
DEFINES+= -DUSE_RENDERER_DLOPEN
endif
ifeq ($(USE_OPENAL_DLOPEN),1)
DEFINES+= -DUSE_OPENAL_DLOPEN
endif
ifeq ($(USE_INTERNAL_ZLIB),1)
DEFINES+= -DUSE_INTERNAL_ZLIB
endif
ifeq ($(USE_INTERNAL_JPEG),1)
DEFINES+= -DUSE_INTERNAL_JPEG
endif
all: ioquake3-$(VERSION)-$(RELEASE).$(ARCH).exe
ioquake3.$(ARCH).nsi: ioquake3.nsi.in
sed 's/XXXVERSIONXXX/$(VERSION)/;s/XXXRELEASEXXX/$(RELEASE)/;s/mingw32/$(PLATFORM)/g;s/x86/$(ARCH)/g;s/SDL2.dll/$(SDLDLL)/g;s/OpenAL32.dll/$(OPENALDLL)/g' < $< > $@
ioquake3-$(VERSION)-$(RELEASE).$(ARCH).exe: ioquake3.$(ARCH).nsi
makensis $(DEFINES) ioquake3.$(ARCH).nsi
clean:
rm -rf *.exe ioquake3.$(ARCH).nsi
install:
mkdir -p $(INSTALLDIR)
mv ioquake3-$(VERSION)-$(RELEASE).$(ARCH).exe $(INSTALLDIR)
.PHONY: all clean

View File

@ -1,248 +0,0 @@
; NSIS description file for quake3 data file installer
SetCompressor lzma
!define NAME "Quake III Arena"
!define FSNAME "ioquake3-q3a"
!define VERSION "1.32"
!define RELEASE "1"
!define MULTIUSER_MUI
!define MULTIUSER_EXECUTIONLEVEL Highest
!define MULTIUSER_INSTALLMODE_COMMANDLINE
!define MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_KEY "Software\ioquake3"
!define MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME "Install_Mode"
!define MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_KEY "Software\ioquake3"
!define MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME "Install_Dir"
!define MULTIUSER_INSTALLMODE_INSTDIR "ioquake3"
!include MultiUser.nsh
!include "FileFunc.nsh"
Var q3a_pak0
Var q3ta_pak0
!include "MUI2.nsh"
!define MUI_ICON "../quake3.ico"
; The name of the installer
Name "${NAME}-${VERSION} for ioquake3"
; The file to write
OutFile "${FSNAME}-${VERSION}-${RELEASE}.x86.exe"
;Interface Settings
!define MUI_ABORTWARNING
;--------------------------------
;Pages
!insertmacro MULTIUSER_PAGE_INSTALLMODE
!insertmacro MUI_PAGE_LICENSE "id_patch_pk3s_Q3A_EULA.txt"
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_COMPONENTS
!insertmacro MUI_UNPAGE_INSTFILES
;--------------------------------
;Languages
!insertmacro MUI_LANGUAGE "English"
;--------------------------------
;--------------------------------
;Multiuser stuff
Function .onInit
!insertmacro MULTIUSER_INIT
StrCpy $q3a_pak0 "notfound"
ReadRegStr $0 SHCTX "Software\ioquake3" ${MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME}
IfErrors 0 oninitdone
MessageBox MB_OK "You need to install the ioquake3 engine first"
Abort
oninitdone:
FunctionEnd
Function un.onInit
!insertmacro MULTIUSER_UNINIT
FunctionEnd
; The stuff to install
Section "${NAME}" sec_q3a
SectionIn RO
SetOutPath $INSTDIR
File "id_patch_pk3s_Q3A_EULA.txt"
SetOutPath "$INSTDIR\baseq3"
File "baseq3/pak1.pk3"
File "baseq3/pak2.pk3"
File "baseq3/pak3.pk3"
File "baseq3/pak4.pk3"
File "baseq3/pak5.pk3"
File "baseq3/pak6.pk3"
File "baseq3/pak7.pk3"
File "baseq3/pak8.pk3"
; Write the uninstall keys for Windows
WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${FSNAME}" "DisplayName" "${NAME}"
WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${FSNAME}" "UninstallString" '"$INSTDIR\uninstall-${FSNAME}.exe"'
WriteRegDWORD SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${FSNAME}" "NoModify" 1
WriteRegDWORD SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${FSNAME}" "NoRepair" 1
WriteUninstaller "uninstall-${FSNAME}.exe"
SectionEnd
Section /o "${NAME} CDROM" sec_q3acd
AddSize 468992
q3apak0retry:
ClearErrors
StrCmp $q3a_pak0 "notfound" 0 q3apak0copy
call findq3acd
q3apak0copy:
CopyFiles $q3a_pak0 "$INSTDIR\baseq3"
IfErrors 0 q3apak0done
MessageBox MB_RETRYCANCEL "Copying the Quake III Arena pak0.pk3 file failed. Make sure the correct CD is in the drive" IDRETRY q3apak0retry IDCANCEL q3apak0cancel
goto q3apak0done
q3apak0cancel:
Abort
q3apak0done:
SectionEnd
Function findq3acd
StrCpy $q3a_pak0 "notfound"
${GetDrives} "CDROM" "findq3acd_cb"
FunctionEnd
Function findq3acd_cb
StrCpy $R1 "$9baseq3\pak0.pk3"
IfFileExists $R1 q3acd_cb_found 0
StrCpy $R1 "$9quake3\baseq3\pak0.pk3"
IfFileExists $R1 0 q3acd_cb_done
q3acd_cb_found:
StrCpy $q3a_pak0 $R1
StrCpy $0 StopGetDrives
q3acd_cb_done:
Push $0
FunctionEnd
Section "Quake III Team Arena" sec_q3ta
SetOutPath "$INSTDIR\missionpack"
File "missionpack/pak1.pk3"
File "missionpack/pak2.pk3"
File "missionpack/pak3.pk3"
CreateShortCut "$SMPROGRAMS\ioquake3\Team Arena.lnk" "$INSTDIR\ioquake3.x86.exe" "+set fs_game missionpack" "$INSTDIR\ioquake3.x86.exe" 0 "" "" "Team Arena"
SectionEnd
Section /o "Quake III Team Arena CDROM" sec_q3tacd
AddSize 344064
q3tapak0retry:
ClearErrors
StrCmp $q3ta_pak0 "notfound" 0 q3tapak0copy
call findq3tacd
q3tapak0copy:
CopyFiles $q3ta_pak0 "$INSTDIR\missionpack"
IfErrors 0 q3tapak0done
MessageBox MB_RETRYCANCEL "Copying the Quake III TeamArena pak0.pk3 file failed. Make sure the correct CD is in the drive" IDRETRY q3tapak0retry IDCANCEL q3tapak0cancel
goto q3tapak0done
q3tapak0cancel:
Abort
q3tapak0done:
SectionEnd
Function findq3tacd
StrCpy $q3ta_pak0 "notfound"
${GetDrives} "CDROM" "findq3tacd_cb"
FunctionEnd
Function findq3tacd_cb
StrCpy $R1 "$9Setup\missionpack\pak0.pk3"
IfFileExists $R1 0 q3tacd_cb_done
StrCpy $q3ta_pak0 $R1
StrCpy $0 StopGetDrives
q3tacd_cb_done:
Push $0
FunctionEnd
;--------------------------------
; Uninstaller
Section "un.Quake III Arena and Team Arena" sec_un_q3a
SectionIn RO
; Remove registry keys
DeleteRegKey SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${FSNAME}"
; Remove files and uninstaller
Delete $INSTDIR\baseq3\pak1.pk3
Delete $INSTDIR\baseq3\pak2.pk3
Delete $INSTDIR\baseq3\pak3.pk3
Delete $INSTDIR\baseq3\pak4.pk3
Delete $INSTDIR\baseq3\pak5.pk3
Delete $INSTDIR\baseq3\pak6.pk3
Delete $INSTDIR\baseq3\pak7.pk3
Delete $INSTDIR\baseq3\pak8.pk3
Delete $INSTDIR\missionpack\pak1.pk3
Delete $INSTDIR\missionpack\pak2.pk3
Delete $INSTDIR\missionpack\pak3.pk3
Delete $INSTDIR\uninstall-${FSNAME}.exe
Delete "$INSTDIR\id_patch_pk3s_Q3A_EULA.txt"
; Remove shortcuts, if any
Delete "$SMPROGRAMS\ioquake3\Team Arena.lnk"
; Remove directories used
RMDir "$SMPROGRAMS\ioquake3"
RMDir "$INSTDIR\baseq3"
RMDir "$INSTDIR\missionpack"
RMDir "$INSTDIR"
SectionEnd
Section "un.CDROM Data" sec_un_q3a_cd
Delete $INSTDIR\baseq3\pak0.pk3
Delete $INSTDIR\missionpack\pak0.pk3
RMDir "$INSTDIR\baseq3"
RMDir "$INSTDIR\missionpack"
RMDir "$INSTDIR"
SectionEnd
Function .onSelChange
${If} ${SectionIsSelected} ${sec_q3acd}
Call findq3acd
StrCmp $q3a_pak0 "notfound" 0 +2
MessageBox MB_OK "Quake III Arena CD not found. Make sure it is in the drive otherwise installation will fail"
${EndIf}
${If} ${SectionIsSelected} ${sec_q3tacd}
Call findq3tacd
StrCmp $q3ta_pak0 "notfound" 0 +2
MessageBox MB_OK "Quake III TeamArena CD not found. Make sure it is in the drive otherwise installation will fail"
${EndIf}
FunctionEnd
LangString DESC_q3a ${LANG_ENGLISH} "Install official Quake III Arena Point Release 1.32 data files. Note that the data files alone are useless. You need to also install the Quake III Arena base assets (pak0.pk3) from the game's CD-ROM."
LangString DESC_q3acd ${LANG_ENGLISH} "Install the Quake III Arena base assets (pak0.pk3) from the game's CD-ROM."
LangString DESC_q3ta ${LANG_ENGLISH} "Install official Quake III Team Arena Point Release 1.32 data files. Note that the data files alone are useless. You need to also install the Quake III Team Arena base assets (pak0.pk3) from the game's CD-ROM."
LangString DESC_q3tacd ${LANG_ENGLISH} "Install the Quake III Team Arena base assets (pak0.pk3) from the game's CD-ROM."
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${sec_q3a} $(DESC_q3a)
!insertmacro MUI_DESCRIPTION_TEXT ${sec_q3acd} $(DESC_q3acd)
!insertmacro MUI_DESCRIPTION_TEXT ${sec_q3ta} $(DESC_q3ta)
!insertmacro MUI_DESCRIPTION_TEXT ${sec_q3tacd} $(DESC_q3tacd)
!insertmacro MUI_FUNCTION_DESCRIPTION_END

View File

@ -1,140 +0,0 @@
; sample NSIS description file for an ioquake3 mod installer
!define NAME "Catch the Chicken"
!define FSNAME "ioquake3-q3ctc"
!define VERSION "1.4"
!define RELEASE "1"
!define MODDIR "q3ctc"
!define PUBLISHER "The ioquake3 Team"
!define URL "https://ioquake3.org/"
; uncomment if the mod works without baseq3
;!define STANDALONE
!define MUI_ICON "../quake3.ico"
!macro FILES
File ctc0.pk3
File ctc1.pk3
File description.txt
File gfx/chicken.jpg
File gfx/egggun.jpg
File gfx/q3ctc.gif
File q3ctc.config
File q3ctcteam.config
File readme.html
File readmeFirst.txt
!macroend
; no need to edit below in theory
SetCompressor lzma
!define MULTIUSER_MUI
!define MULTIUSER_EXECUTIONLEVEL Highest
!define MULTIUSER_INSTALLMODE_COMMANDLINE
!define MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_KEY "Software\ioquake3"
!define MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME "Install_Mode"
!define MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_KEY "Software\ioquake3"
!define MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME "Install_Dir"
!define MULTIUSER_INSTALLMODE_INSTDIR "ioquake3"
!include MultiUser.nsh
!include "FileFunc.nsh"
!include "MUI2.nsh"
; The name of the installer
Name "${NAME}-${VERSION} for ioquake3"
; The file to write
OutFile "${FSNAME}-${VERSION}-${RELEASE}.x86.exe"
;Interface Settings
!define MUI_ABORTWARNING
;--------------------------------
;Pages
!insertmacro MULTIUSER_PAGE_INSTALLMODE
;!insertmacro MUI_PAGE_LICENSE "id_patch_pk3s_Q3A_EULA.txt"
!define MUI_COMPONENTSPAGE_NODESC
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
;--------------------------------
;Languages
!insertmacro MUI_LANGUAGE "English"
;--------------------------------
;--------------------------------
;Multiuser stuff
Function .onInit
!insertmacro MULTIUSER_INIT
ReadRegStr $0 SHCTX "Software\ioquake3" ${MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME}
IfErrors 0 oninitdone
MessageBox MB_OK "You need to install the ioquake3 engine first"
Abort
oninitdone:
FunctionEnd
Function un.onInit
!insertmacro MULTIUSER_UNINIT
FunctionEnd
; The stuff to install
Section "${NAME}" sec_base
SectionIn RO
SetOutPath $INSTDIR
SetOutPath "$INSTDIR\${MODDIR}"
!insertmacro FILES
; Write the uninstall keys for Windows
WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${FSNAME}" "DisplayName" "${NAME}"
WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${FSNAME}" "DisplayVersion" "${VERSION}-${RELEASE}"
WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${FSNAME}" "Publisher" "${PUBLISHER}"
WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${FSNAME}" "URLInfoAbout" "${URL}"
WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${FSNAME}" "UninstallString" '"$INSTDIR\uninstall-${FSNAME}.exe"'
WriteRegDWORD SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${FSNAME}" "NoModify" 1
WriteRegDWORD SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${FSNAME}" "NoRepair" 1
WriteUninstaller "uninstall-${FSNAME}.exe"
!ifdef STANDALONE
!define ARGS "+set com_basegame ${MODDIR}"
!else
!define ARGS "+set fs_game ${MODDIR}"
!endif
CreateShortCut "$SMPROGRAMS\ioquake3\${NAME}.lnk" "$INSTDIR\ioquake3.x86.exe" "${ARGS}" "$INSTDIR\ioquake3.x86.exe" 0 "" "" "${NAME}"
SectionEnd
Section "Uninstall"
; Remove registry keys
DeleteRegKey SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${FSNAME}"
; Remove files and uninstaller
Delete $INSTDIR\${MODDIR}\*
Delete $INSTDIR\uninstall-${FSNAME}.exe
; Remove shortcuts, if any
Delete "$SMPROGRAMS\ioquake3\${NAME}.lnk"
; Remove directories used
RMDir "$SMPROGRAMS\ioquake3"
RMDir "$INSTDIR\${MODDIR}"
RMDir "$INSTDIR"
SectionEnd

View File

@ -1,225 +0,0 @@
; NSIS description file for ioquake3 installer
;
; EDIT WITH CARE!
;
; This file is used to automatically build the installers in the
; openSUSE build service, don't break this!
;
; you have to copy OpenAL32.dll here manually
!define VERSION "XXXVERSIONXXX"
!define MULTIUSER_MUI
!define MULTIUSER_EXECUTIONLEVEL Highest
!define MULTIUSER_INSTALLMODE_COMMANDLINE
!define MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_KEY "Software\ioquake3"
!define MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME "Install_Mode"
!define MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_KEY "Software\ioquake3"
!define MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME "Install_Dir"
!define MULTIUSER_INSTALLMODE_INSTDIR "ioquake3"
!include MultiUser.nsh
!include "MUI2.nsh"
!define MUI_ICON "../quake3.ico"
!include LogicLib.nsh
; The name of the installer
Name "ioquake3"
; The file to write
OutFile "ioquake3-${VERSION}-XXXRELEASEXXX.x86.exe"
; The default installation directory
; set by Multiuser.nsh
;InstallDir $PROGRAMFILES\ioquake3
; Registry key to check for directory (so if you install again, it will
; overwrite the old one automatically)
; handled by Multiuser.nsh
;InstallDirRegKey HKLM "Software\ioquake3" "Install_Dir"
;--------------------------------
;Interface Settings
!define MUI_ABORTWARNING
;--------------------------------
;Pages
!insertmacro MULTIUSER_PAGE_INSTALLMODE
;!insertmacro MUI_PAGE_LICENSE "../../COPYING.txt"
!define MUI_COMPONENTSPAGE_SMALLDESC
!insertmacro MUI_PAGE_COMPONENTS
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
;--------------------------------
;Languages
!insertmacro MUI_LANGUAGE "English"
;--------------------------------
;--------------------------------
;Multiuser stuff
Function .onInit
!insertmacro MULTIUSER_INIT
FunctionEnd
Function un.onInit
!insertmacro MULTIUSER_UNINIT
FunctionEnd
; The stuff to install
Section "ioquake3 ${VERSION} (required)" ioquake3
SectionIn RO
; Set output path to the installation directory.
SetOutPath $INSTDIR
File "../../build/release-mingw32-x86/SDL2.dll"
!ifndef USE_INTERNAL_ZLIB
File "zlib1.dll"
!endif
!ifndef USE_INTERNAL_JPEG
File "jpeg8c.dll"
!endif
; Put file there
File "../../build/release-mingw32-x86/ioq3ded.x86.exe"
File "../../build/release-mingw32-x86/ioquake3.x86.exe"
!ifdef USE_RENDERER_DLOPEN
File "../../build/release-mingw32-x86/renderer_opengl1_x86.dll"
File "../../build/release-mingw32-x86/renderer_opengl2_x86.dll"
!endif
File "../../COPYING.txt"
File "/oname=README.txt" "../../README.md"
File "../../id-readme.txt"
File "../../voip-readme.txt"
SetOutPath "$INSTDIR\baseq3"
File "../../build/release-mingw32-x86/baseq3/cgamex86.dll"
File "../../build/release-mingw32-x86/baseq3/qagamex86.dll"
File "../../build/release-mingw32-x86/baseq3/uix86.dll"
SetOutPath "$INSTDIR\missionpack"
File "../../build/release-mingw32-x86/missionpack/cgamex86.dll"
File "../../build/release-mingw32-x86/missionpack/qagamex86.dll"
File "../../build/release-mingw32-x86/missionpack/uix86.dll"
; Write the installation path into the registry
WriteRegStr SHCTX "Software\ioquake3" ${MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME} "$INSTDIR"
WriteRegStr SHCTX "Software\ioquake3" ${MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME} "$MultiUser.InstallMode"
; Write the uninstall keys for Windows
WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\ioquake3" "DisplayName" "ioquake3"
WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\ioquake3" "DisplayVersion" "${VERSION}"
WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\ioquake3" "UninstallString" '"$INSTDIR\uninstall.exe"'
WriteRegDWORD SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\ioquake3" "NoModify" 1
WriteRegDWORD SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\ioquake3" "NoRepair" 1
WriteUninstaller "uninstall.exe"
SectionEnd
; Optional section (can be disabled by the user)
Section "Start Menu Shortcuts" StartMenuShortcuts
CreateDirectory "$SMPROGRAMS\ioquake3"
CreateShortCut "$SMPROGRAMS\ioquake3\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
CreateShortCut "$SMPROGRAMS\ioquake3\ioquake3.lnk" "$INSTDIR\ioquake3.x86.exe" "" "$INSTDIR\ioquake3.x86.exe" 0
SectionEnd
Section "Protocol Handler" ProtocolHandler
WriteRegStr SHCTX "Software\Classes\quake3" "CustomUrlApplication" "$INSTDIR\ioquake3.x86.exe"
WriteRegStr SHCTX "Software\Classes\quake3" "CustomUrlArguments" '--uri "%1"'
WriteRegStr SHCTX "Software\Classes\quake3" "URL Protocol" ""
WriteRegStr SHCTX "Software\Classes\quake3\DefaultIcon" "" "$INSTDIR\ioquake3.x86.exe,0"
WriteRegStr SHCTX "Software\Classes\quake3\shell\open\command" "" '"$INSTDIR\ioquake3.x86.exe" --uri "%1"'
SectionEnd
!ifdef USE_OPENAL_DLOPEN
Section "OpenAL-Soft library" OpenAL
SetOutPath $INSTDIR
File "OpenAL32.dll"
SectionEnd
!endif
;--------------------------------
; Uninstaller
Section "Uninstall"
; Remove registry keys
DeleteRegKey SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\ioquake3"
DeleteRegKey SHCTX "Software\ioquake3"
ReadRegStr $0 SHCTX "Software\Classes\quake3\shell\open\command" ""
${If} $0 == '"$INSTDIR\ioquake3.x86.exe" --uri "%1"'
DeleteRegKey SHCTX "Software\Classes\quake3"
${EndIf}
; Remove files and uninstaller
Delete $INSTDIR\baseq3\cgamex86.dll
Delete $INSTDIR\baseq3\qagamex86.dll
Delete $INSTDIR\baseq3\uix86.dll
Delete $INSTDIR\missionpack\cgamex86.dll
Delete $INSTDIR\missionpack\qagamex86.dll
Delete $INSTDIR\missionpack\uix86.dll
Delete $INSTDIR\ioquake3.x86.exe
Delete $INSTDIR\ioq3ded.x86.exe
!ifdef USE_RENDERER_DLOPEN
Delete $INSTDIR\renderer_opengl1_x86.dll
Delete $INSTDIR\renderer_opengl2_x86.dll
!endif
Delete $INSTDIR\COPYING.txt
Delete $INSTDIR\README.txt
Delete $INSTDIR\id-readme.txt
Delete $INSTDIR\voip-readme.txt
Delete $INSTDIR\SDL2.dll
!ifndef USE_INTERNAL_ZLIB
Delete $INSTDIR\zlib1.dll
!endif
!ifndef USE_INTERNAL_JPEG
Delete $INSTDIR\jpeg8c.dll
!endif
!ifdef USE_OPENAL_DLOPEN
Delete $INSTDIR\OpenAL32.dll
!endif
Delete $INSTDIR\uninstall.exe
; Remove shortcuts, if any
Delete "$SMPROGRAMS\ioquake3\Uninstall.lnk"
Delete "$SMPROGRAMS\ioquake3\ioquake3.lnk"
; Remove directories used
RMDir "$SMPROGRAMS\ioquake3"
RMDir "$INSTDIR\baseq3"
RMDir "$INSTDIR\missionpack"
RMDir "$INSTDIR"
SectionEnd
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
!insertmacro MUI_DESCRIPTION_TEXT ${ioquake3} "The game executables."
!insertmacro MUI_DESCRIPTION_TEXT ${StartMenuShortcuts} "Create shortcuts in the start menu."
!insertmacro MUI_DESCRIPTION_TEXT ${ProtocolHandler} "The protocol handler lets you connect to a game by clicking a link in a web browser."
!ifdef USE_OPENAL_DLOPEN
!insertmacro MUI_DESCRIPTION_TEXT ${OpenAL} "Advanced audio mixer that supports surround sound."
!endif
!insertmacro MUI_FUNCTION_DESCRIPTION_END

View File

@ -1,73 +0,0 @@
#!/bin/bash
#
# This script appends the text from Q3A_EULA.txt to a .dmg as a SLA resource
#
# usage is './SLA-dmg.sh /path/to/Q3A_EULA.txt /path/to/ioquake3.dmg'
#
if [ "x$1" = "x" ] || [ "x$2" = "x" ]; then
echo "usage: ./SLA-dmg.sh /path/to/Q3A_EULA.txt /path/to/ioquake3.dmg"
exit 1;
fi
if [ ! -r $1 ]; then
echo "$1 is not a readable Q3A_EULA.txt file"
exit 1;
fi
if [ ! -w $2 ]; then
echo "$2 is not writable .dmg file"
exit 1;
fi
touch tmp.r
if [ ! -w tmp.r ]; then
echo "Could not create temporary file tmp.r for writing"
exit 1;
fi
echo "
data 'LPic' (5000) {
\$\"0002 0011 0003 0001 0000 0000 0002 0000\"
\$\"0008 0003 0000 0001 0004 0000 0004 0005\"
\$\"0000 000E 0006 0001 0005 0007 0000 0007\"
\$\"0008 0000 0047 0009 0000 0034 000A 0001\"
\$\"0035 000B 0001 0020 000C 0000 0011 000D\"
\$\"0000 005B 0004 0000 0033 000F 0001 000C\"
\$\"0010 0000 000B 000E 0000\"
};
data 'TEXT' (5002, \"English\") {
" > tmp.r
sed -e 's/"/\\"/g' -e 's/\(.*\)$/"\1\\n"/g' $1 >> tmp.r
echo "
};
resource 'STR#' (5002, \"English\") {
{
\"English\",
\"Agree\",
\"Disagree\",
\"Print\",
\"Save...\",
\"IMPORTANT - Read this License Agreement carefully before clicking on \"
\"the \\\"Agree\\\" button. By clicking on the \\\"Agree\\\" button, you agree \"
\"to be bound by the terms of the License Agreement.\",
\"Software License Agreement\",
\"This text cannot be saved. This disk may be full or locked, or the \"
\"file may be locked.\",
\"Unable to print. Make sure you have selected a printer.\"
}
};
" >> tmp.r
hdiutil convert -format UDCO -o tmp.dmg $2 || exit 1
hdiutil unflatten tmp.dmg || exit 1
/Developer/Tools/Rez /Developer/Headers/FlatCarbon/*.r tmp.r -a -o tmp.dmg \
|| exit 1
hdiutil flatten tmp.dmg || exit 1
hdiutil internet-enable -yes tmp.dmg || exit 1
mv tmp.dmg $2 || (echo "Could not copy tmp.dmg to $2" && exit 1)
rm tmp.dmg
rm tmp.r
echo "SLA $1 successfully added to $2"

View File

@ -1,15 +0,0 @@
VERSION=1.36
RELEASE=svn
all:
VERSION=$(VERSION) RELEASE=$(RELEASE) ./doit
sign:
for i in *.run; do \
gpg -bao $$i.asc $$i; \
done
clean:
rm -rf *.run image defines.m4
.PHONY: all sign clean

View File

@ -1,180 +0,0 @@
#!/bin/bash
# Source directory
MOUNT_DIR="../.."
# Solaris stuff
PLATFORM=`uname|sed -e s/_.*//|tr '[:upper:]' '[:lower:]'`
if [ "X${PLATFORM}" != "Xsunos" ]; then
echo "Unsupported platform! Must run this script on Solaris host!" ; exit 127
fi
if [ "X`uname -m`" = "Xi86pc" ]; then
ARCH=x86
else
ARCH=sparc
fi
# Packages
PKG_SOLARIS_NAME=ioquake3
PKG_DATA_NAME=ioquake3d
PKG_DEMO_NAME=ioquake3m
BUILD_DATE="`/usr/bin/date '+%Y%m%d%H%M%S'`"
SVNVERSION=/usr/local/bin/svnversion
BUILD_VERSION="1.36_SVN"
if [ -x "$SVNVERSION" ]; then
SVN_BANNER=`$SVNVERSION ${MOUNT_DIR}|sed -e 's/S$//' -e 's/M$//' `
BUILD_VERSION="${BUILD_VERSION}${SVN_BANNER}"
fi
PKG_VERSION="`date '+%Y%m%d%H%M'`"
PKG_MAINT_ID="quake@cojot.name"
SOLARIS_PKGFILE="${PKG_SOLARIS_NAME}-${BUILD_VERSION}-${PKG_VERSION}-${ARCH}.pkg"
DATA_PKGFILE="${PKG_DATA_NAME}-${BUILD_VERSION}-${PKG_VERSION}.pkg"
DEMO_PKGFILE="${PKG_DEMO_NAME}-${BUILD_VERSION}-${PKG_VERSION}.pkg"
# build directories
BUILD_DIR="${MOUNT_DIR}/build/release-${PLATFORM}-${ARCH}"
PKG_SRC_DIR="${MOUNT_DIR}/misc/setup/pkg/${PKG_SOLARIS_NAME}"
PKG_BUILD_DIR="/tmp/ioquake3-build/${PKG_SOLARIS_NAME}-${BUILD_VERSION}"
PKG_EXTRA_BUILD_DIR="/usr/local/src/quake3-data/ioquake3/quake3"
PKG_DATA_SRC_DIR="${MOUNT_DIR}/misc/setup/pkg/${PKG_DATA_NAME}"
PKG_DATA_BUILD_DIR="/usr/local/src/quake3-data/ioquake3d/quake3"
PKG_DEMO_SRC_DIR="${MOUNT_DIR}/misc/setup/pkg/${PKG_DEMO_NAME}"
PKG_DEMO_BUILD_DIR="/usr/local/src/quake3-data/ioquake3m/quake3"
# Tools
RM="/usr/bin/rm"
TOUCH="/usr/bin/touch"
SED="/usr/bin/sed"
CAT="/usr/bin/cat"
NAWK="/usr/bin/nawk"
MKDIR="gmkdir -v -p"
INSTALL_BIN="ginstall -D -m 755"
INSTALL_DATA="ginstall -D -m 644"
PKGPROTO="/usr/bin/pkgproto"
PKGMK="/usr/bin/pkgmk"
PKGTRANS="/usr/bin/pkgtrans"
#############################################################################
# SOLARIS PACKAGE
#############################################################################
if [ -d ${BUILD_DIR} ]; then
if [ ! -d ${BUILD_DIR}/pkg ]; then
${MKDIR} ${BUILD_DIR}/pkg
fi
echo "Building ${BUILD_DIR}/pkg/${SOLARIS_PKGFILE}"
${RM} -f ${BUILD_DIR}/pkg/${SOLARIS_PKGFILE}
${TOUCH} ${BUILD_DIR}/pkg/${SOLARIS_PKGFILE}
${SED} -e "/VERSION=/s/.*/VERSION=${BUILD_VERSION}-${PKG_VERSION}/" \
< ${PKG_SRC_DIR}/pkginfo.template \
> ${PKG_SRC_DIR}/pkginfo
${CAT} ${PKG_SRC_DIR}/prototype.template > ${PKG_SRC_DIR}/prototype
${INSTALL_DATA} ${MOUNT_DIR}/COPYING.txt ${PKG_SRC_DIR}/copyright
for EXEC_READ in README id-readme.txt
do
if [ -f ${MOUNT_DIR}/${EXEC_READ} ]; then
${INSTALL_DATA} ${MOUNT_DIR}/${EXEC_READ} ${PKG_BUILD_DIR}/${EXEC_READ}
fi
done
for EXEC_BIN in ioq3ded ioquake3-smp ioquake3
do
if [ -f ${BUILD_DIR}/${EXEC_BIN}.${ARCH} ]; then
${INSTALL_BIN} ${BUILD_DIR}/${EXEC_BIN}.${ARCH} ${PKG_BUILD_DIR}/${EXEC_BIN}.${ARCH}
fi
done
for EXEC_SH in ioq3ded.sh ioquake3.sh
do
if [ -f ${MOUNT_DIR}/misc/setup/pkg/${EXEC_SH} ]; then
${INSTALL_BIN} ${MOUNT_DIR}/misc/setup/pkg/${EXEC_SH} ${PKG_BUILD_DIR}/${EXEC_SH}
fi
done
for EXEC_SO in cgamesparc.so qagamesparc.so uisparc.so cgamex86.so qagamex86.so uix86.so
do
if [ -f ${BUILD_DIR}/baseq3/${EXEC_SO} ]; then
${INSTALL_BIN} ${BUILD_DIR}/baseq3/${EXEC_SO} ${PKG_BUILD_DIR}/baseq3/${EXEC_SO}
fi
if [ -f ${BUILD_DIR}/missionpack/${EXEC_SO} ]; then
${INSTALL_BIN} ${BUILD_DIR}/missionpack/${EXEC_SO} ${PKG_BUILD_DIR}/missionpack/${EXEC_SO}
fi
done
for EXEC_VM in cgame.qvm qagame.qvm ui.qvm
do
if [ -f ${BUILD_DIR}/baseq3/vm/${EXEC_VM} ]; then
${INSTALL_BIN} ${BUILD_DIR}/baseq3/vm/${EXEC_VM} ${PKG_BUILD_DIR}/baseq3/vm/${EXEC_VM}
fi
if [ -f ${BUILD_DIR}/missionpack/vm/${EXEC_VM} ]; then
${INSTALL_BIN} ${BUILD_DIR}/missionpack/vm/${EXEC_VM} ${PKG_BUILD_DIR}/missionpack/vm/${EXEC_VM}
fi
done
${PKGPROTO} ${PKG_BUILD_DIR}=quake3 ${PKG_EXTRA_BUILD_DIR}=quake3 | \
${NAWK} '{ print $1,$2,$3,$4 }' >> ${PKG_SRC_DIR}/prototype
${PKGMK} -o -p "${PKG_MAINT_ID}${BUILD_DATE}" \
-b ${PKG_SRC_DIR} -f ${PKG_SRC_DIR}/prototype \
-d /tmp -a ${ARCH} owner=root group=bin mode=0755
${PKGTRANS} -s /tmp ${BUILD_DIR}/pkg/${SOLARIS_PKGFILE} ${PKG_SOLARIS_NAME}
echo "Building ${BUILD_DIR}/pkg/${DATA_PKGFILE}"
${RM} -f ${BUILD_DIR}/pkg/${DATA_PKGFILE}
${TOUCH} ${BUILD_DIR}/pkg/${DATA_PKGFILE}
${SED} -e "/VERSION=/s/.*/VERSION=${BUILD_VERSION}.${PKG_VERSION}/" \
< ${PKG_DATA_SRC_DIR}/pkginfo.template \
> ${PKG_DATA_SRC_DIR}/pkginfo
${CAT} ${PKG_DATA_SRC_DIR}/prototype.template > ${PKG_DATA_SRC_DIR}/prototype
if [ -d ${MOUNT_DIR}/../webspace/include ]; then
EULA_DIR=${MOUNT_DIR}/../webspace/include
else
if [ -d ${MOUNT_DIR}/../../webspace/include ]; then
EULA_DIR=${MOUNT_DIR}/../../webspace/include
fi
fi
if [ -f ${EULA_DIR}/id_patch_pk3s_Q3A_EULA.txt ]; then
${INSTALL_DATA} ${EULA_DIR}/id_patch_pk3s_Q3A_EULA.txt ${PKG_DATA_SRC_DIR}/copyright
fi
${PKGPROTO} ${PKG_DATA_BUILD_DIR}=quake3 | \
${NAWK} '{ print $1,$2,$3,$4 }' >> ${PKG_DATA_SRC_DIR}/prototype
${PKGMK} -o -p "${PKG_MAINT_ID}${BUILD_DATE}" \
-b ${PKG_DATA_SRC_DIR} -f ${PKG_DATA_SRC_DIR}/prototype \
-d /tmp -a ${ARCH} owner=root group=bin mode=0755
${PKGTRANS} -s /tmp ${BUILD_DIR}/pkg/${DATA_PKGFILE} ${PKG_DATA_NAME}
echo "Building ${BUILD_DIR}/pkg/${DEMO_PKGFILE}"
${RM} -f ${BUILD_DIR}/pkg/${DEMO_PKGFILE}
${TOUCH} ${BUILD_DIR}/pkg/${DEMO_PKGFILE}
${SED} -e "/VERSION=/s/.*/VERSION=${BUILD_VERSION}.${PKG_VERSION}/" \
< ${PKG_DEMO_SRC_DIR}/pkginfo.template \
> ${PKG_DEMO_SRC_DIR}/pkginfo
${CAT} ${PKG_DEMO_SRC_DIR}/prototype.template > ${PKG_DEMO_SRC_DIR}/prototype
if [ -d ${MOUNT_DIR}/../webspace/include ]; then
EULA_DIR=${MOUNT_DIR}/../webspace/include
else
if [ -d ${MOUNT_DIR}/../../webspace/include ]; then
EULA_DIR=${MOUNT_DIR}/../../webspace/include
fi
fi
if [ -f ${EULA_DIR}/id_patch_pk3s_Q3A_EULA.txt ]; then
${INSTALL_DEMO} ${EULA_DIR}/id_patch_pk3s_Q3A_EULA.txt ${PKG_DEMO_SRC_DIR}/copyright
fi
${PKGPROTO} ${PKG_DEMO_BUILD_DIR}=quake3 | \
${NAWK} '{ print $1,$2,$3,$4 }' >> ${PKG_DEMO_SRC_DIR}/prototype
${PKGMK} -o -p "${PKG_MAINT_ID}${BUILD_DATE}" \
-b ${PKG_DEMO_SRC_DIR} -f ${PKG_DEMO_SRC_DIR}/prototype \
-d /tmp -a ${ARCH} owner=root group=bin mode=0755
${PKGTRANS} -s /tmp ${BUILD_DIR}/pkg/${DEMO_PKGFILE} ${PKG_DEMO_NAME}
else
echo "Directory ${BUILD_DIR} not found!"
exit 1
fi

View File

@ -1,124 +0,0 @@
#!/bin/bash
: ${MAKESELF:=/usr/share/loki-setup/makeself}
: ${SETUPIMAGE:=/usr/share/loki-setup/image}
: ${VERSION:=0.0_`date +%Y%m%d%H%M`}
: ${RELEASE:=0}
set -e
set -x
shopt -s nullglob
rm -rf image
mkdir image
### loki-setup files
cp -a $SETUPIMAGE/{setup.data,setup.sh} image/
### splash
rm -f image/setup.data/splash.xpm
[ -e splash.xpm ] && cp splash.xpm image/setup.data/splash.xpm
rm -f image/quake3.png
cp ../quake3.png image/quake3.png
### binaries
topdir="../.."
echo "changequote(\`[', \`]')dnl" > defines.m4
echo "define(VERSION,$VERSION)dnl" >> defines.m4
copystartscript()
{
local arch="$1"
mkdir -p image/bin/Linux/$arch
if [ "$arch" = x86_64 ]; then
ln -s x86_64 image/bin/Linux/amd64
elif [ "$arch" = ppc ]; then
ln -s ppc image/bin/Linux/ppc64
fi
install -m 755 ioquake3.sh image/bin/Linux/$arch/ioquake3
install -m 755 ioq3demo.sh image/bin/Linux/$arch/ioq3demo
}
archs=()
for arch in $topdir/build/release-*; do
arch=${arch##*-}
case "$arch" in
x86) echo "define(HAVE_X86,yes)dnl" >> defines.m4
copystartscript $arch
;;
x86_64) echo "define(HAVE_X86_64,yes)dnl" >> defines.m4
copystartscript $arch
;;
ppc) echo "define(HAVE_PPC,yes)dnl" >> defines.m4
copystartscript $arch
;;
ppc64) echo "define(HAVE_PPC64,yes)dnl" >> defines.m4
copystartscript $arch
;;
*)
echo "architecture $arch unsupported"
continue;
;;
esac
archs[${#archs[@]}]=$arch
done
for arch in "${archs[@]}"; do
dst=image/tmp
mkdir $dst
mkdir $dst/baseq3 $dst/demoq3 $dst/missionpack
install -m 755 $topdir/build/release-linux-$arch/ioquake3.$arch $dst/ioquake3.$arch
install -m 755 $topdir/build/release-linux-$arch/ioq3ded.$arch $dst/ioq3ded.$arch
install -m 755 $topdir/build/release-linux-$arch/renderer_opengl1_$arch.so $dst/renderer_opengl1_$arch.so
install -m 755 $topdir/build/release-linux-$arch/renderer_opengl2_$arch.so $dst/renderer_opengl2_$arch.so
install -m 644 $topdir/build/release-linux-$arch/baseq3/*.so $dst/baseq3
install -m 644 $topdir/build/release-linux-$arch/missionpack/*.so $dst/missionpack
for i in cgame qagame ui; do
ln -s ../baseq3/$i$arch.so $dst/demoq3
done
tar --owner=root --group=root -C $dst -cf ./image/ioquake3.$arch.tar .
rm -rf ./image/tmp
done
# patch pk3 files
if [ -e ./idpatchpk3s.tar -a -e ./idtapatchpk3s.tar ]; then
install -m 644 ./idpatchpk3s.tar image/idpatchpk3s.tar
install -m 644 ./idtapatchpk3s.tar image/idtapatchpk3s.tar
install -m 644 ./id_patch_pk3s_Q3A_EULA.txt image/id_patch_pk3s_Q3A_EULA.txt
echo "define(HAVE_PATCHPK3,yes)dnl" >> defines.m4
elif [ -e quake3-latest-pk3s.zip ]; then
unzip quake3-latest-pk3s.zip
chmod 644 quake3-latest-pk3s/*/*.pk3
tar -C quake3-latest-pk3s/baseq3 -cf image/idpatchpk3s.tar .
tar -C quake3-latest-pk3s/missionpack -cf image/idtapatchpk3s.tar .
rm -r quake3-latest-pk3s
install -m 644 id_patch_pk3s_Q3A_EULA.txt image/id_patch_pk3s_Q3A_EULA.txt
echo "define(HAVE_PATCHPK3,yes)dnl" >> defines.m4
fi
### uninstall script
install -m 755 ./preuninstall.sh image/preuninstall.sh
# desktop file handling
install -m 755 ./install-desktop-files.sh image/install-desktop-files.sh
install -m 755 /usr/bin/xdg-desktop-menu image/xdg-desktop-menu
install -m 644 ioquake3.desktop image/ioquake3.desktop.in
### README, COPYING and EULA
install -m 644 $topdir/voip-readme.txt image/voip-readme.txt
install -m 644 $topdir/README image/README
install -m 644 $topdir/COPYING.txt image/COPYING
# create setup.xml
m4 defines.m4 setup.xml.in > image/setup.data/setup.xml
### makeself installer
ARCH=
if [ "${#archs[@]}" -eq 1 ]; then
ARCH=.$arch
fi
$MAKESELF/makeself.sh image ioquake3-$VERSION-$RELEASE$ARCH.run "ioquake3 $VERSION-$RELEASE" ./setup.sh

View File

@ -1,14 +0,0 @@
#!/bin/sh
set -e
if ! test -e "$SETUP_INSTALLPATH"/ioquake3.desktop.in; then
exit 0
fi
xdg_desktop_menu=`which xdg-desktop-menu 2>/dev/null`
if test "x$xdg_desktop_menu" = x; then
xdg_desktop_menu=./xdg-desktop-menu
fi
sed -e "s#^Exec=.*#Exec=$SETUP_INSTALLPATH/ioquake3#" \
-e "s#^Icon=.*#Icon=$SETUP_INSTALLPATH/quake3.png#" \
< $SETUP_INSTALLPATH/ioquake3.desktop.in \
> $SETUP_INSTALLPATH/ioquake3.desktop
$xdg_desktop_menu install --novendor $SETUP_INSTALLPATH/ioquake3.desktop

View File

@ -1,50 +0,0 @@
#!/bin/sh
readlink() {
local path=$1 ll
if [ -L "$path" ]; then
ll="$(LC_ALL=C ls -l "$path" 2> /dev/null)" &&
echo "${ll/* -> }"
else
return 1
fi
}
script=$0
count=0
while [ -L "$script" ]
do
script=$(readlink "$script")
count=`expr $count + 1`
if [ $count -gt 100 ]
then
echo "Too many symbolic links"
exit 1
fi
done
cd "`dirname $script`"
lib=lib
test -e lib64 && lib=lib64
if test "x$LD_LIBRARY_PATH" = x; then
LD_LIBRARY_PATH="`pwd`/$lib"
else
LD_LIBRARY_PATH="`pwd`/$lib:$LD_LIBRARY_PATH"
fi
export LD_LIBRARY_PATH
archs=`uname -m`
case "$archs" in
i?86) archs=x86 ;;
x86_64) archs="x86_64 x86" ;;
ppc64) archs="ppc64 ppc" ;;
esac
for arch in $archs; do
test -x ./ioquake3.$arch || continue
exec ./ioquake3.$arch +set sv_pure 0 +set vm_cgame 0 +set vm_game 0 +set vm_ui 0 +set fs_game demoq3 "$@"
done
echo "could not execute ioquake3" >&2

View File

@ -1,83 +0,0 @@
#!/bin/sh
CWD=`pwd`
BASE=$CWD/../..
if [ "$TMP" = "" ]; then
TMP=/tmp
fi
# clean, update
make -C $BASE clean || exit 1
svn up $BASE || exit 1
# extract version info
VERSION=`grep "\#define *PRODUCT_VERSION" $BASE/code/qcommon/q_shared.h | \
sed -e 's/[^"]*"\(.*\)"/\1/'`
SVN_REV=`LANG=C svnversion $BASE`
if [ ! "$SVN_REV" = "" ]; then
VERSION=${VERSION}_SVN${SVN_REV}
fi
PKG_VERSION=$VERSION
ARCH=${ARCH:-i586}
if [ "$ARCH" = "i?86" ]; then
ARCHSUFFIX="x86"
elif [ "$ARCH" = "x86_64" ]; then
ARCHSUFFIX="x86_64"
fi
BUILD=${BUILD:-1_io}
APP=ioquake3
PKG=$TMP/package-$APP
rm -rf $PKG
mkdir -p $PKG
# build
make -C $BASE release copyfiles COPYDIR="$PKG"/usr/games/$APP|| exit 1
# copy additional files
cp $BASE/BUGS $BASE/COPYING.txt $BASE/ChangeLog $BASE/README $PKG/usr/games/$APP/
cat $CWD/$APP.SlackBuild > $PKG/usr/games/$APP/$APP.SlackBuild
mkdir -p $PKG/usr/share/$APP/icons
cp $BASE/misc/quake3.png $PKG/usr/share/$APP/icons/ioquake3.png
mkdir -p $PKG/usr/bin
cat >> $PKG/usr/bin/ioquake3 << EOF
#!/bin/sh
cd /usr/games/$APP/
./ioquake3.${ARCHSUFFIX} \$*
exit \$?
EOF
chmod 754 $PKG/usr/bin/ioquake3
mkdir -p $PKG/usr/bin
cat >> $PKG/usr/bin/ioq3ded << EOF
#!/bin/sh
cd /usr/games/$APP/
./ioq3ded.${ARCHSUFFIX} \$*
exit \$?
EOF
chmod 754 $PKG/usr/bin/ioq3ded
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat >> $PKG/install/doinst.sh << EOF
chmod 754 /usr/games/$APP/*.${ARCHSUFFIX}
chmod 754 /usr/bin/ioquake3 /usr/bin/ioq3ded
EOF
chmod +x $PKG/install/doinst.sh
pushd $PKG
chown -R root:root install/ || exit 1
chown -R root:games usr/ || exit 1
/sbin/makepkg -l y -c n $TMP/$APP-$VERSION-$ARCH-$BUILD.tgz
popd

View File

@ -1,10 +0,0 @@
[Desktop Entry]
Name=ioquake3
Exec=ioquake3 --uri %u
Icon=quake3
Type=Application
Terminal=false
Encoding=UTF-8
Categories=Game;ActionGame;
MimeType=x-scheme-handler/quake3;
X-SuSE-translate=false

View File

@ -1,50 +0,0 @@
#!/bin/sh
readlink() {
local path=$1 ll
if [ -L "$path" ]; then
ll="$(LC_ALL=C ls -l "$path" 2> /dev/null)" &&
echo "${ll##* -> }"
else
return 1
fi
}
script=$0
count=0
while [ -L "$script" ]
do
script=$(readlink "$script")
count=`expr $count + 1`
if [ $count -gt 100 ]
then
echo "Too many symbolic links"
exit 1
fi
done
cd "`dirname $script`"
lib=lib
test -e lib64 && lib=lib64
if test "x$LD_LIBRARY_PATH" = x; then
LD_LIBRARY_PATH="`pwd`/$lib"
else
LD_LIBRARY_PATH="`pwd`/$lib:$LD_LIBRARY_PATH"
fi
export LD_LIBRARY_PATH
archs=`uname -m`
case "$archs" in
i?86) archs=x86 ;;
x86_64) archs="x86_64 x86" ;;
ppc64) archs="ppc64 ppc" ;;
esac
for arch in $archs; do
test -x ./ioquake3.$arch || continue
exec ./ioquake3.$arch "$@"
done
echo "could not execute ioquake3" >&2

View File

@ -1,48 +0,0 @@
#!/bin/bash
# Rev: $Id: ioq3ded.sh,v 1.9 2006/01/18 13:47:42 raistlin Exp raistlin $
# Needed to make symlinks/shortcuts work.
# the binaries must run with correct working directory
IOQ3_DIR=/usr/local/share/games/quake3
if [ "x${LD_LIBRARY_PATH}" = "x" ]; then
LD_LIBRARY_PATH="${IOQ3_DIR}/lib"
else
LD_LIBRARY_PATH="${IOQ3_DIR}/lib:${LD_LIBRARY_PATH}"
fi
export LD_LIBRARY_PATH
COMPILE_PLATFORM=`uname|sed -e 's/_.*//'|tr '[:upper:]' '[:lower:]'`
COMPILE_ARCH=`uname -p | sed -e 's/i.86/x86/'`
EXEC_REL=release
# EXEC_BIN=ioquake3.${COMPILE_ARCH}
# EXEC_BIN=ioquake3-smp.${COMPILE_ARCH}
EXEC_BIN=ioq3ded.${COMPILE_ARCH}
EXEC_FLAGS="+set fs_basepath ${IOQ3_DIR} +set vm_game 1 +set vm_cgame 1 +set vm_ui 1 +set sv_pure 1 +set ttycon 0 +set com_ansiColor 0"
EXEC_DIR_LIST="${IOQ3_DIR}"
for d in ${EXEC_DIR_LIST}
do
if [ -d $d ]; then
EXEC_DIR=${d}
break
fi
done
if [ "X${EXEC_DIR}" != "X" ]; then
if [ ! -x ${EXEC_DIR}/${EXEC_BIN} ]; then
echo "Executable ${EXEC_DIR}/${EXEC_BIN} not found!" ; exit 1
fi
cd ${IOQ3_DIR} && \
${EXEC_DIR}/${EXEC_BIN} ${EXEC_FLAGS} $*
exit $?
else
echo "No ioq3 binaries found!"
exit 1
fi

View File

@ -1,48 +0,0 @@
#!/bin/bash
# Rev: $Id: ioquake3.sh,v 1.11 2006/01/18 13:47:42 raistlin Exp raistlin $
# Needed to make symlinks/shortcuts work.
# the binaries must run with correct working directory
IOQ3_DIR=/usr/local/share/games/quake3
if [ "x${LD_LIBRARY_PATH}" = "x" ]; then
LD_LIBRARY_PATH="${IOQ3_DIR}/lib"
else
LD_LIBRARY_PATH="${IOQ3_DIR}/lib:${LD_LIBRARY_PATH}"
fi
export LD_LIBRARY_PATH
COMPILE_PLATFORM=`uname|sed -e 's/_.*//'|tr '[:upper:]' '[:lower:]'`
COMPILE_ARCH=`uname -p | sed -e 's/i.86/x86/'`
EXEC_REL=release
EXEC_BIN=ioquake3.${COMPILE_ARCH}
# EXEC_BIN=ioquake3-smp.${COMPILE_ARCH}
# EXEC_BIN=ioq3ded.${COMPILE_ARCH}
EXEC_FLAGS="+set fs_basepath ${IOQ3_DIR} +set vm_game 1 +set vm_cgame 1 +set vm_ui 1 +set sv_pure 1 +set ttycon 0 +set com_ansiColor 0"
EXEC_DIR_LIST="${IOQ3_DIR}"
for d in ${EXEC_DIR_LIST}
do
if [ -d $d ]; then
EXEC_DIR=${d}
break
fi
done
if [ "X${EXEC_DIR}" != "X" ]; then
if [ ! -x ${EXEC_DIR}/${EXEC_BIN} ]; then
echo "Executable ${EXEC_DIR}/${EXEC_BIN} not found!" ; exit 1
fi
cd ${IOQ3_DIR} && \
${EXEC_DIR}/${EXEC_BIN} ${EXEC_FLAGS} $*
exit $?
else
echo "No ioq3 binaries found!"
exit 1
fi

View File

@ -1,2 +0,0 @@
P SUNWxwplt X Window System platform software
P ioquake3d Icculus.Org Quake3 patch data files for Solaris 10 (X11,GLX,SDL)

View File

@ -1,12 +0,0 @@
CLASSES=none
BASEDIR=/usr/local/share/games
TZ=PST
PATH=/sbin:/usr/sbin:/usr/bin:/usr/sadm/install/bin
PKG=ioquake3
NAME=ioquake3 for Solaris 10 (X11,GLX,SDL)
VERSION=
CATEGORY=application,graphics,opengl
DESC=Icculus.Org Quake3 for Solaris 10 (http://www.ioquake3.org/)
VENDOR=http://www.ioquake3.org/
EMAIL=quake@cojot.name
PKGSAV=/var/sadm/pkg/ioquake3/save

View File

@ -1,21 +0,0 @@
#!/bin/sh
#
# @(#)postinstall $Id: postinstall,v 1.3 2006/01/21 12:54:52 coyote Exp $
#
# postinstall script for quake3
quake3_dir=$BASEDIR/quake3
dest_dir=${PKG_INSTALL_ROOT}/usr/local/bin
if [ -d ${dest_dir} ]; then
for inst_script in ioq3ded.sh ioquake3.sh
do
dest_script=${dest_dir}/${inst_script}
if [ ! -h ${dest_script} ]; then
ln -s ${quake3_dir}/${inst_script} ${dest_script}
fi
done
fi
exit 0

View File

@ -1,21 +0,0 @@
#!/bin/sh
#
# @(#)postremove $Id: postremove,v 1.3 2006/01/21 12:54:52 coyote Exp $
#
# postremove script for quake3
quake3_dir=$BASEDIR
dest_dir=${PKG_INSTALL_ROOT}/usr/local/bin
if [ -d ${dest_dir} ]; then
for inst_script in ioq3ded.sh ioquake3.sh
do
dest_script=${dest_dir}/${inst_script}
if [ -h ${dest_script} ]; then
rm -f ${dest_script}
fi
done
fi
exit 0

View File

@ -1,10 +0,0 @@
#!/bin/sh
#
# @(#)postinstall $Id: preinstall,v 1.2 2006/01/25 13:22:56 coyote Exp $
#
# postinstall script for quake3
quake3_dir=$BASEDIR
exit 0

View File

@ -1,10 +0,0 @@
#!/bin/sh
#
# @(#)postinstall $Id: preremove,v 1.2 2006/01/25 13:22:56 coyote Exp $
#
# postinstall script for quake3
quake3_dir=$BASEDIR
exit 0

View File

@ -1,8 +0,0 @@
!default 0755 root bin
i pkginfo
i copyright
i depend
i postinstall
i postremove
i preinstall
i preremove

View File

@ -1 +0,0 @@
/usr/local/share 20000 15

View File

@ -1 +0,0 @@
P SUNWxwplt X Window System platform software

View File

@ -1,12 +0,0 @@
CLASSES=none
BASEDIR=/usr/local/share/games
TZ=PST
PATH=/sbin:/usr/sbin:/usr/bin:/usr/sadm/install/bin
PKG=ioquake3d
NAME=ioquake3 patch data files for Solaris 10 (X11,GLX,SDL)
VERSION=
CATEGORY=application,graphics,opengl
DESC=ioquake3 patch data files for Solaris 10 (http://www.ioquake3.org/)
VENDOR=http://www.ioquake3.org/
EMAIL=quake@cojot.name
PKGSAV=/var/sadm/pkg/ioquake3d/save

View File

@ -1,10 +0,0 @@
#!/bin/sh
#
# @(#)postinstall $Id: postinstall,v 1.2 2006/01/25 13:22:56 coyote Exp $
#
# postinstall script for quake3
quake3_dir=$BASEDIR
exit 0

View File

@ -1,10 +0,0 @@
#!/bin/sh
#
# @(#)postinstall $Id: postremove,v 1.2 2006/01/25 13:22:56 coyote Exp $
#
# postinstall script for quake3
quake3_dir=$BASEDIR
exit 0

View File

@ -1,10 +0,0 @@
#!/bin/sh
#
# @(#)postinstall $Id: preinstall,v 1.2 2006/01/25 13:22:56 coyote Exp $
#
# postinstall script for quake3
quake3_dir=$BASEDIR
exit 0

View File

@ -1,10 +0,0 @@
#!/bin/sh
#
# @(#)postinstall $Id: preremove,v 1.2 2006/01/25 13:22:56 coyote Exp $
#
# postinstall script for quake3
quake3_dir=$BASEDIR
exit 0

View File

@ -1,7 +0,0 @@
!default 0755 root bin
i pkginfo
i depend
i postinstall
i postremove
i preinstall
i preremove

View File

@ -1 +0,0 @@
/usr/local/share 50000 100

View File

@ -1 +0,0 @@
P SUNWxwplt X Window System platform software

View File

@ -1,12 +0,0 @@
CLASSES=none
BASEDIR=/usr/local/share/games
TZ=PST
PATH=/sbin:/usr/sbin:/usr/bin:/usr/sadm/install/bin
PKG=ioquake3m
NAME=ioquake3 demo data files for Solaris 10 (X11,GLX,SDL)
VERSION=
CATEGORY=application,graphics,opengl
DESC=ioquake3 demo data files for Solaris 10 (http://www.ioquake3.org/)
VENDOR=http://www.ioquake3.org/
EMAIL=quake@cojot.name
PKGSAV=/var/sadm/pkg/ioquake3m/save

View File

@ -1,10 +0,0 @@
#!/bin/sh
#
# @(#)postinstall $Id: postinstall,v 1.2 2006/01/25 13:22:56 coyote Exp $
#
# postinstall script for quake3
quake3_dir=$BASEDIR
exit 0

View File

@ -1,10 +0,0 @@
#!/bin/sh
#
# @(#)postinstall $Id: postremove,v 1.2 2006/01/25 13:22:56 coyote Exp $
#
# postinstall script for quake3
quake3_dir=$BASEDIR
exit 0

View File

@ -1,10 +0,0 @@
#!/bin/sh
#
# @(#)postinstall $Id: preinstall,v 1.2 2006/01/25 13:22:56 coyote Exp $
#
# postinstall script for quake3
quake3_dir=$BASEDIR
exit 0

View File

@ -1,10 +0,0 @@
#!/bin/sh
#
# @(#)postinstall $Id: preremove,v 1.2 2006/01/25 13:22:56 coyote Exp $
#
# postinstall script for quake3
quake3_dir=$BASEDIR
exit 0

View File

@ -1,7 +0,0 @@
!default 0755 root bin
i pkginfo
i depend
i postinstall
i postremove
i preinstall
i preremove

View File

@ -1 +0,0 @@
/usr/local/share 50000 100

View File

@ -1,10 +0,0 @@
#!/bin/sh
rmdir --ignore-fail-on-non-empty demoq3 missionpack >/dev/null 2>&1
if test -e "$SETUP_INSTALLPATH"/ioquake3.desktop.in; then
xdg_desktop_menu=`which xdg-desktop-menu 2>/dev/null`
if test "x$xdg_desktop_menu" = x; then
xdg_desktop_menu=./xdg-desktop-menu
fi
$xdg_desktop_menu uninstall --novendor ioquake3.desktop
rm ioquake3.desktop
fi

View File

@ -1,134 +0,0 @@
<?xml version="1.0" standalone="yes"?>
<install product="ioquake3"
desc="ioquake3"
version="VERSION"
update_url="http://www.ioquake3.org/updates.txt"
promptbinaries="yes"
reinstall="yes"
nopromptoverwrite="yes"
nomenuitems="yes"
postinstall="install-desktop-files.sh"
preuninstall="preuninstall.sh">
<readme>
README
</readme>
<component name="Default" version="VERSION" default="yes">
ifelse(HAVE_X86_64,yes,dnl
<option install="true" arch="x86_64">
ioq3 x86_64 binaries
<binary libc="any" symlink="ioquake3" icon="quake3.png" name="ioquake3">ioquake3</binary>
<files>
ioquake3.x86_64.tar
</files>
<help>you need the binaries to play the game</help>
</option>
)dnl
ifelse(HAVE_X86,yes,dnl
<option install="true" if="|(x86,x86_64)">
ioq3 x86 (32 bit) binaries
<binary libc="any" symlink="ioquake3" icon="quake3.png" name="ioquake3">ioquake3</binary>
<files>
ioquake3.x86.tar
</files>
<help>you need the binaries to play the game</help>
</option>
)dnl
ifelse(HAVE_PPC,yes,dnl
<option install="true" if="|(ppc,ppc64)">
<binary libc="any" symlink="ioquake3" icon="quake3.png" name="ioquake3">ioquake3</binary>
ioq3 ppc binaries
<files>
ioquake3.ppc.tar
</files>
<help>you need the binaries to play the game</help>
</option>
)dnl
ifelse(HAVE_PPC64,yes,dnl
<option install="true" arch="ppc64">
<binary libc="any" symlink="ioquake3" icon="quake3.png" name="ioquake3">ioquake3</binary>
ioq3 ppc64 binaries
<files>
ioquake3.ppc64.tar
</files>
<help>you need the binaries to play the game</help>
</option>
)dnl
<option install="true">
Desktop menu entries
<files mode="0755">
xdg-desktop-menu
</files>
<files>
ioquake3.desktop.in
</files>
</option>
<option install="true" show="false">
shared data
<files>
quake3.png
COPYING
voip-readme.txt
</files>
</option>
</component>
ifelse(HAVE_PATCHPK3,yes,dnl
<component name="Quake III Arena" version="VERSION">
<eula>
id_patch_pk3s_Q3A_EULA.txt
</eula>
<option install="true">
Quake III Arena Point Release 1.32 data files
<files path="baseq3">
idpatchpk3s.tar
</files>
</option>
<option>
<help>
If you don't select this you need to copy pak0.pk3 to the baseq3 directory manually.
</help>
Quake III Arena CDROM data
<files cdromid="CD 1" path="baseq3"
md5sum="1197ca3df1e65f3c380f8abc10ca43bf"
size="458M" mode="0664">
Quake3/baseq3/pak0.pk3
</files>
</option>
</component>
<component name="Quake III Team Arena" version="VERSION">
<eula>
id_patch_pk3s_Q3A_EULA.txt
</eula>
<option install="true">
Quake III Team Arena Point Release 1.32 data files
<files path="missionpack">
idtapatchpk3s.tar
</files>
</option>
<option>
<help>
If you don't select this you need to copy the TA pak0.pk3 to the missionpack directory manually.
</help>
Quake III Team Arena CDROM data
<files cdromid="CD 2" path="missionpack" size="336M"
md5sum="e8ba9e3bf06210930bc0e7fdbcdd01c2" mode="0644">
Setup/missionpack/pak0.pk3
</files>
</option>
</component>
<cdrom id="CD 1" name="Quake 3 Arena installation CD">
Quake3/baseq3/pak0.pk3
</cdrom>
<cdrom id="CD 2" name="Quake 3 Team Arena installation CD">
Setup/missionpack/pak0.pk3
</cdrom>
)dnl
</install>

View File

@ -1,33 +0,0 @@
<?xml version="1.0" standalone="yes"?>
<!-- ioquake3 is the name of the base product -->
<install product="ioquake3"
desc="ioquake3"
component="Foo Mod"
version="1.1"
>
<option install="true">
Foo
<!--
install symlink 'foo' into $PATH, pointing to a script
called startfoo that gets installed into ioquake3's
directory
The script could look like this:
#!/bin/sh
exec ioquake3 +set fs_game foo "$@"
exit 1
-->
<binary arch="any" libc="any"
symlink="foo"
binpath="startfoo">
startfoo
</binary>
<!--
extract archive in ioquake3's directory.
the archive must contain a subdirectory of course
-->
<files>
foo-1.1.zip
</files>
</option>
</install>

View File

@ -1,12 +0,0 @@
|-----handy-ruler------------------------------------------------------|
ioquake3: ioquake 3 - An open source Quake 3 distribution
ioquake3:
ioquake3: ioquake3 aims to build upon id Software's Quake 3 source code release.
ioquake3: The source code was released on August 20, 2005 under the GPL. Since
ioquake3: then code has been cleaned up, bugs have been fixed and features been
ioquake3: added.
ioquake3: The permanent goal is to create THE open source Quake 3 distribution
ioquake3: upon which people base their games and projects.
ioquake3:
ioquake3: http://ioquake3.org/
ioquake3:

File diff suppressed because it is too large Load Diff