0
0
Fork 0
haikuports/sci-astronomy/celestia/celestia-1.6.2.1.recipe

124 lines
3.6 KiB
Bash
Raw Permalink Normal View History

De-Linting recipes. * apr_util Added PATCHES to recipe, some cleaning up. Won't build, even though I cleaned out the repository folder: "[Errno -2147459069] No such file or directory: '/HiQ-Data/sources/haikuports/repository/apr_util-1.3.10.DependencyInfo'" * arc Improved DESCRIPTION Won't build: /sources/arc-5.21p/arc.c: In function `main': /sources/arc-5.21p/arc.c:231: parse error before `int' /sources/arc-5.21p/arc.c:232: `fd' undeclared (first use in this function) /sources/arc-5.21p/arc.c:232: (Each undeclared identifier is reported only once /sources/arc-5.21p/arc.c:232: for each function it appears in.) * bc Supply the correct pachset name. Improved SUMMARY. Minor cosmetics. * beshare Removed missing patchset which was declared alongside the existing one. Minor cosmetics. * brexx Added PATCHES to the recipe. Minor cosmetics. Won't build: /packages/gcc-2.95.3_2014_10_14-3/.self/develop/tools/i586-pc-haiku/bin/ld: cannot find -lPortManager collect2: ld returned 1 exit status make[1]: *** [obj/rx] Error 1 make[1]: Leaving directory `/sources/BeBRexx/src' make: [brexx] Error 2 (ignored) Collecting files to be packaged ... Error: Couldn't access "/sources/BeBRexx/PortManager/obj/PortManager": No such file or directory * cd Improved SUMMARY. Minor cosmetics. Won't build: Fetching package for devel:libim ... *** failed to find a match for "devel:libim": Name not found * celestia Improved SUMMARY. Minor cosmetics. * chmlib Removed "." from SUMMARY. Minor cosmetics. * colorcode Removed "." from SUMMARY. Minor cosmetics. * command_not_found Removed "(C)" from copyright. Created a proper patchset from the provided patch. Added PATCHES. Remove manual patching from INSTALL(). Minor cosmetics. * coveredcalc Removed "." from SUMMARY. Minor cosmetics. Added cmd:svn to BUILD_PREREQUIRES. * cyberdogs_sdl Improved and removed "." from SUMMARY. Minor cosmetics.
2015-07-19 04:59:39 +00:00
SUMMARY="The free space simulation to explore our universe in 3 dimensions"
DESCRIPTION="Unlike most planetarium software, Celestia doesn't confine you to \
the surface of the Earth. You can travel throughout the solar system, to any of \
over 100,000 stars, or even beyond the galaxy.
All movement in Celestia is seamless; the exponential zoom feature lets you \
explore space across a huge range of scales, from galaxy clusters down to \
spacecraft only a few meters across. A 'point-and-goto' interface makes it \
simple to navigate through the universe to the object you want to visit.
Celestia is expandable. Celestia comes with a large catalog of stars, galaxies, \
planets, moons, asteroids, comets, and spacecraft. If that's not enough, you \
can download dozens of easy to install add-ons with more objects."
HOMEPAGE="http://celestia.sourceforge.net"
2020-12-30 06:04:44 +00:00
COPYRIGHT="2001-2020 Celestia Development Team"
2016-02-17 19:26:37 +00:00
LICENSE="GNU GPL v2"
2020-12-30 06:04:44 +00:00
REVISION="1"
SOURCE_URI="https://fossies.org/linux/misc/Celestia-$portVersion.tar.gz"
CHECKSUM_SHA256="be146fa9d6f4c38c686cc1728677d73e4457d85dbf051e485f24537c3e4d452d"
SOURCE_DIR="Celestia-$portVersion"
2018-09-16 04:20:32 +00:00
PATCHES="celestia-$portVersion.patchset"
ADDITIONAL_FILES="celestia.rdef.in"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
2020-12-30 06:04:44 +00:00
GLOBAL_WRITABLE_FILES="
settings/Celestia/scripts directory auto-merge
settings/Celestia/celestia.cfg keep-old
"
PROVIDES="
celestia$secondaryArchSuffix = $portVersion
app:celestia$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libgl$secondaryArchSuffix
lib:libglu$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
2018-09-16 04:20:32 +00:00
lib:libjpeg$secondaryArchSuffix
lib:liblua$secondaryArchSuffix
lib:libpng16$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
2016-02-17 19:26:37 +00:00
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libgl$secondaryArchSuffix
devel:libglu$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
2018-09-16 04:20:32 +00:00
devel:libjpeg$secondaryArchSuffix
devel:liblua5.1$secondaryArchSuffix
2020-04-15 13:18:44 +00:00
devel:libpng16$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
2018-09-16 04:20:32 +00:00
cmd:aclocal
cmd:autoconf
cmd:autoreconf
cmd:gcc$secondaryArchSuffix
cmd:gettext
2018-09-16 04:20:32 +00:00
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
2018-09-16 11:23:43 +00:00
local
for cf in -O2 -ffast-math \
-fexpensive-optimizations \
-fomit-frame-pointer; do
sed -i \
-e "s/${cf}//g" \
2020-12-30 06:04:44 +00:00
configure.ac admin/* || die "sed failed"
2018-09-16 11:23:43 +00:00
done
2018-09-16 04:20:32 +00:00
autoreconf -fi
export LIBS="-lbe -lGL -lGLU -lglut -lintl -lnetwork"
runConfigure ./configure \
2018-09-16 04:20:32 +00:00
--datarootdir=$dataDir \
--datadir=$dataDir \
--disable-rpath \
--with-glut \
--with-lua
make $jobArgs
}
INSTALL()
{
2020-12-30 06:04:44 +00:00
mkdir -p $appsDir $settingsDir/Celestia
make install
mv $binDir/celestia $appsDir/Celestia
rm -rf $binDir
2020-12-30 06:04:44 +00:00
mv $dataDir/celestia/scripts $settingsDir/Celestia
ln -s $settingsDir/Celestia/scripts $dataDir/celestia/scripts
mv $dataDir/celestia/celestia.cfg $settingsDir/Celestia
ln -s $settingsDir/Celestia/celestia.cfg $dataDir/celestia/celestia.cfg
2018-09-16 04:20:32 +00:00
local APP_SIGNATURE="application/x-vnd.celestia"
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3`"
local LONG_INFO="$SUMMARY"
sed \
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
-e "s|@LONG_INFO@|$LONG_INFO|" \
$portDir/additional-files/celestia.rdef.in > celestia.rdef
addResourcesToBinaries celestia.rdef $appsDir/Celestia
mimeset -f $appsDir/Celestia
addAppDeskbarSymlink $appsDir/Celestia
}