nightandday: rename recipe, fix x86_64 build.

* use a safe source.
This commit is contained in:
Jerome Duval
2017-01-31 22:16:54 +01:00
parent 619c3421e9
commit 681707875a
2 changed files with 99 additions and 6 deletions

View File

@@ -0,0 +1,53 @@
SUMMARY="Automatic desktop color changer"
DESCRIPTION="
This program was inspired by the 'TaveDesktop' program by the Tave Software \
Group. I think that 'TaveDesktop' was a good idea, but I wanted to be able to \
choose my own colors, since the 'TaveDesktop' colors looks bad on an 8bpp \
display.
This program should be self-explanatory. You'll find a small Popup menu when \
clicking the small screen at the top-right corner of the window.
"
HOMEPAGE="https://github.com/HaikuArchives/NightAndDay"
COPYRIGHT="1998-1999 Jean-Baptiste M. Queru"
LICENSE="GNU GPL v2"
REVISION="3"
srcGitRev="3bcc1a5a39dd1dab36bb7c5a299f10a50faeb2f2"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="cf82b2db20550534c63ec209df4debb8d4a7519dc3e320c208510e5c17617c44"
SOURCE_DIR="NightAndDay-$srcGitRev"
PATCHES="nightandday-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 x86 x86_64"
PROVIDES="
nightanddays = $portVersion
app:NightAndDay = $portVersion
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:g++
cmd:ld
"
REQUIRES="
haiku
"
BUILD()
{
cd src
g++ -o NightAndDay nd.cpp -fomit-frame-pointer -ffast-math -Wall -W -Wno-multichar -Werror -D PI=3.141592 -lbe
}
INSTALL()
{
mkdir -p $appsDir
cp src/NightAndDay $appsDir
mkdir -p $docDir
cp ReadMe $docDir
addAppDeskbarSymlink $appsDir/NightAndDay
}