138889SjdpSUMMARY="Next-generation QuakeC compiler"
238889SjdpDESCRIPTION="FTEQCC is a sophisicated QuakeC compiler designed to enhance the experience of \
338889Sjdpwriting QuakeC.
438889Sjdp
538889SjdpFeatures:
638889Sjdp- Vanilla QC and C/C++-like syntax are supported.
738889Sjdp- Objected-oriented features such as classes, inheritance.
838889Sjdp- Debugging features and integration with FTEQW.
938889Sjdp- Arrays and array-emulation for engine targets that don't support it.
1038889Sjdp- Support for typedefs, enum, enumflags (bitfields), structs, unions.
1138889Sjdp- Support for pointers.
1238889Sjdp- Real integer type support.
1338889Sjdp
1438889Sjdp... and so much more"
1538889SjdpHOMEPAGE="https://www.fteqcc.org/"
1638889SjdpCOPYRIGHT="2002-2023 Forethought Entertainment"
1738889SjdpLICENSE="GNU GPL v2"
1838889SjdpREVISION="1"
1938889SjdpsrcGitRev="eb6b127d9ce10949f00bcad8c5953b7092c92d12"
2038889SjdpSOURCE_URI="https://github.com/fte-team/fteqw/archive/$srcGitRev.tar.gz"
2138889SjdpCHECKSUM_SHA256="8d19bf1ca4816d0fb35fda7401ef28b7ca02391ca14ca10843f22d64845d1614"
2238889SjdpSOURCE_DIR="fteqw-$srcGitRev"
2338889SjdpADDITIONAL_FILES="bitflags.txt
2438889Sjdp	classes.txt
2538889Sjdp	csqc_for_idiots.txt
2638889Sjdp	entry_qc.txt
2738889Sjdp	findchain_considered_harmful.txt
2838889Sjdp	fteqcc_manual.txt
2938889Sjdp	sendevent.txt"
3038889Sjdp
3138889SjdpARCHITECTURES="all !x86_gcc2"
3238889SjdpSECONDARY_ARCHITECTURES="x86"
3338889Sjdp
3438889SjdpPROVIDES="
3538889Sjdp	fteqcc$secondaryArchSuffix = $portVersion
3638889Sjdp	cmd:fteqcc$secondaryArchSuffix = $portVersion
3738889Sjdp	"
3838889SjdpREQUIRES="
3938889Sjdp	haiku$secondaryArchSuffix
4038889Sjdp	lib:libz$secondaryArchSuffix
4138889Sjdp	"
4238889Sjdp
4338889SjdpBUILD_REQUIRES="
4438889Sjdp	haiku${secondaryArchSuffix}_devel
4538889Sjdp	devel:libz$secondaryArchSuffix
4638889Sjdp	"
4738889SjdpBUILD_PREREQUIRES="
4838889Sjdp	cmd:gcc$secondaryArchSuffix
4938889Sjdp	cmd:ld$secondaryArchSuffix
5038889Sjdp	cmd:pkg_config$secondaryArchSuffix
5138889Sjdp	cmd:make
5238889Sjdp	"
5338889Sjdp
5438889SjdpBUILD()
5538889Sjdp{
5638889Sjdp	cd $sourceDir/engine/
5738889Sjdp	make $jobArgs qcc-rel PKGCONFIG=pkg-config BASELDFLAGS="-lpthread" -f Makefile
5838889Sjdp}
5938889Sjdp
6038889SjdpINSTALL()
6138889Sjdp{
6238889Sjdp	mkdir -p $docDir
6338889Sjdp	cp $portDir/additional-files/bitflags.txt $docDir/bitflags.txt
6438889Sjdp	cp $portDir/additional-files/classes.txt $docDir/classes.txt
6538889Sjdp	cp $portDir/additional-files/csqc_for_idiots.txt $docDir/csqc_for_idiots.txt
6638889Sjdp	cp $portDir/additional-files/entry_qc.txt $docDir/entry_qc.txt
6738889Sjdp	cp $portDir/additional-files/findchain_considered_harmful.txt $docDir/findchain_considered_harmful.txt
6838889Sjdp	cp $portDir/additional-files/fteqcc_manual.txt $docDir/fteqcc_manual.txt
6938889Sjdp	cp $portDir/additional-files/sendevent.txt $docDir/sendevent.txt
7038889Sjdp
7138889Sjdp	mkdir -p $binDir
7238889Sjdp	cp -r $sourceDir/engine/release/fteqcc $binDir/
7338889Sjdp}
7438889Sjdp