adds diffutils
authorJohn Crispin <john@openwrt.org>
Wed, 11 Jun 2008 08:29:35 +0000 (08:29 +0000)
committerJohn Crispin <john@openwrt.org>
Wed, 11 Jun 2008 08:29:35 +0000 (08:29 +0000)
SVN-Revision: 11431

devel/build-essential/Makefile
devel/diffutils/Makefile [new file with mode: 0644]
devel/patch/Makefile

index 48090a3..0060b0b 100644 (file)
@@ -18,7 +18,7 @@ define Package/build-essential
   SECTION:=devel
   CATEGORY:=Development
   TITLE:=Build essentials 
-  DEPENDS=+gcc +make +binutils +patch @BUILD_DEVELOPER_SYSTEM
+  DEPENDS=+gcc +make +binutils +patch +diffutils @BUILD_DEVELOPER_SYSTEM
 endef
 
 define Build/Compile
diff --git a/devel/diffutils/Makefile b/devel/diffutils/Makefile
new file mode 100644 (file)
index 0000000..319e81c
--- /dev/null
@@ -0,0 +1,43 @@
+#
+# Copyright (C) 2008 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=diffutils
+PKG_VERSION:=2.8.1
+PKG_RELEASE:=1
+PKG_MD5SUM:=71f9c5ae19b60608f6c7f162da86a428
+PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/diffutils/
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/diffutils
+  SECTION:=devel
+  CATEGORY:=Development
+  TITLE:=diffutils
+  URL:=http://www.gnu.org/
+endef
+
+define Package/diffutils/description
+  The Diffutils package contains programs that show the differences between files or directories.
+endef
+
+define Build/Configure
+       $(call Build/Configure/Default,ac_cv_func_mempcpy=n)
+endef
+
+define Build/Compile
+       $(MAKE_VARS) $(MAKE) $(MAKE_ARGS) -C $(PKG_BUILD_DIR) all
+endef
+
+define Package/diffutils/install
+       $(INSTALL_DIR) $(1)/usr/bin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/{sdiff,diff3,diff,cmp} $(1)/usr/bin/
+endef
+
+$(eval $(call BuildPackage,diffutils))
index 19a68ca..83dbac5 100644 (file)
@@ -32,7 +32,7 @@ define Build/Configure
 endef
 
 define Build/Compile
-       $(MAKE_VARS) $(MAKE) $(MAKE_ARGS) DESTDIR=$(PKG_INSTALL_DIR) exec_prefix=$(PKG_INSTALL_DIR) -C $(PKG_BUILD_DIR) all install 
+       $(MAKE_VARS) $(MAKE) $(MAKE_ARGS) exec_prefix=$(PKG_INSTALL_DIR) -C $(PKG_BUILD_DIR) all install 
 endef
 
 define Package/patch/install