diff --git a/app-misc/hexcompare/hexcompare-1.0.4.recipe b/app-misc/hexcompare/hexcompare-1.0.4.recipe new file mode 100644 index 000000000..7dee6cd5f --- /dev/null +++ b/app-misc/hexcompare/hexcompare-1.0.4.recipe @@ -0,0 +1,55 @@ +SUMMARY="A curses-based visual file comparison utility" +DESCRIPTION="hexcompare is a tool for comparing two binary or ASCII files. Its \ +main advantage over other ordinary comparison tools is that it gives a very \ +convenient visual representation (common parts shown in blue, mismatching \ +parts in red) which allows to quickly spot the zones of interest." +HOMEPAGE="https://sourceforge.net/projects/hexcompare/" +COPYRIGHT="2010-2015 iseal & mv_fox" +LICENSE="GNU GPL v3" +REVISION="1" +SOURCE_URI="https://downloads.sf.net/hexcompare/hexcompare-$portVersion.tar.gz" +CHECKSUM_SHA256="a9609b28099d7578228f359a460a06f7fc1ae8cde614ea10e525b88eb04a9451" +SOURCE_URI_2="http://httpredir.debian.org/debian/pool/main/h/hexcompare/hexcompare_$portVersion-1.debian.tar.xz" +CHECKSUM_SHA256_2="28a70dd7de7221957916cbe4dfe523384217875768666ce8121505cfe39ba788" +PATCHES="hexcompare-$portVersion.patch" + +ARCHITECTURES="x86_gcc2 x86 x86_64" + +PROVIDES=" + hexcompare = $portVersion + cmd:hexcompare = $portVersion + " +REQUIRES=" + haiku + lib:libncurses + " + +BUILD_REQUIRES=" + haiku_devel + devel:libncurses + " +BUILD_PREREQUIRES=" + cmd:dos2unix + cmd:gcc + cmd:install + cmd:make + " + +PATCH() +{ + # Convert CRLF to LF to satisfy gcc2. + dos2unix general.h gui.c gui.h main.c +} + +BUILD() +{ + CFLAGS="-I$includeDir" LDFLAGS="-L$developLibDir" make $jobArgs +} + +INSTALL() +{ + install -d -m 755 $binDir $docDir $manDir/man1 + install -t $binDir -c -m 555 -s hexcompare + install -t $docDir -c -m 444 README + install -t $manDir/man1 -c -m 444 $sourceDir2/debian/manpage/hexcompare.1 +} diff --git a/app-misc/hexcompare/patches/hexcompare-1.0.4.patch b/app-misc/hexcompare/patches/hexcompare-1.0.4.patch new file mode 100644 index 000000000..77c56570c --- /dev/null +++ b/app-misc/hexcompare/patches/hexcompare-1.0.4.patch @@ -0,0 +1,14 @@ +--- a/Makefile ++++ b/Makefile +@@ -1,9 +1,9 @@ +-CFLAGS = -O3 -Wall -Wextra -pedantic -Wformat-security -std=gnu89 ++CFLAGS = -O3 -Wall -pedantic -Wformat-security -std=gnu89 + + all: hexcompare + + hexcompare: main.c gui.c +- $(CC) $(CFLAGS) -o hexcompare main.c gui.c -lncurses ++ $(CC) $(CFLAGS) -o hexcompare main.c gui.c -lncurses $(LDFLAGS) + + clean: + rm -f *.o