From: "Bart vdr. Meulen" <[email protected]>

Dhex is a ncurses based hex editor, with a diff mode.

Signed-off-by: Bart vdr. Meulen <[email protected]>
---
 rules/dhex.in   |   10 +++++++++
 rules/dhex.make |   65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 75 insertions(+)
 create mode 100644 rules/dhex.in
 create mode 100644 rules/dhex.make

diff --git a/rules/dhex.in b/rules/dhex.in
new file mode 100644
index 0000000..9fd20a7
--- /dev/null
+++ b/rules/dhex.in
@@ -0,0 +1,10 @@
+## SECTION=editors
+
+config DHEX
+       tristate
+       prompt "dhex"
+       select NCURSES
+       help
+         DHEX is a more than just another hex editor. It includes a diff mode,
+         which can be used to easily and conveniently compare two binary files.
+
diff --git a/rules/dhex.make b/rules/dhex.make
new file mode 100644
index 0000000..7b3d106
--- /dev/null
+++ b/rules/dhex.make
@@ -0,0 +1,65 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2011 by Bart vdr. Meulen <[email protected]>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_DHEX) += dhex
+
+#
+# Paths and names
+#
+DHEX_VERSION   := 0.65
+DHEX_MD5       := 2d4ee5cc0cd95da5a1c7630b971e986d
+DHEX           := dhex_$(DHEX_VERSION)
+DHEX_SUFFIX    := tar.gz
+DHEX_URL       := http://www.dettus.net/dhex/$(DHEX).$(DHEX_SUFFIX)
+DHEX_SOURCE    := $(SRCDIR)/$(DHEX).$(DHEX_SUFFIX)
+DHEX_DIR       := $(BUILDDIR)/$(DHEX)
+DHEX_LICENSE   := GPLv2
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(DHEX_SOURCE):
+       @$(call targetinfo)
+       @$(call get, DHEX)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+DHEX_CONF_TOOL         := NO
+DHEX_MAKE_OPT          := $(CROSS_ENV)
+DHEX_INSTALL_OPT       := install $(CROSS_ENV)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/dhex.targetinstall:
+       @$(call targetinfo)
+
+       @$(call install_init,  dhex)
+       @$(call install_fixup, dhex,PACKAGE,dhex)
+       @$(call install_fixup, dhex,PRIORITY,optional)
+       @$(call install_fixup, dhex,VERSION,$(DHEX_VERSION))
+       @$(call install_fixup, dhex,SECTION,base)
+       @$(call install_fixup, dhex,AUTHOR,"Bart vdr. Meulen 
<[email protected]>")
+       @$(call install_fixup, dhex,DEPENDS,)
+       @$(call install_fixup, dhex,DESCRIPTION,missing)
+
+       @$(call install_copy, dhex, 0, 0, 0755, -, /bin/dhex)
+
+       @$(call install_finish, dhex)
+
+       @$(call touch)
+
-- 
1.7.9.5


-- 
ptxdist mailing list
[email protected]

Reply via email to