summaryrefslogtreecommitdiff
path: root/gcal
diff options
context:
space:
mode:
Diffstat (limited to 'gcal')
-rw-r--r--gcal/Makefile43
-rw-r--r--gcal/patches/spawn.in.h.patch16
2 files changed, 59 insertions, 0 deletions
diff --git a/gcal/Makefile b/gcal/Makefile
new file mode 100644
index 0000000..d9cad01
--- /dev/null
+++ b/gcal/Makefile
@@ -0,0 +1,43 @@
+# $Id: Makefile 5624 2006-11-23 00:29:07Z nbd $
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=gcal
+PKG_VERSION:=3.6
+PKG_RELEASE:=1
+
+PKG_SOURCE:=gcal-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=ftp://ftp.gnu.org/pub/gnu/gcal/
+PKG_MD5SUM:=9c3819ca118d6e3adb6a716858cba7d6
+PKG_CAT:=zcat
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/gcal
+ SECTION:=utils
+ CATEGORY:=Utilities
+ TITLE:=GCal
+ URL:=http://www.gnu.org/software/gcal/
+endef
+
+define Package/gcal/description
+ GNU version of unix calendar program cal(1).
+endef
+
+define Build/Configure
+ $(call Build/Configure/Default, \
+ --prefix=/usr --with-linux-headers="$(LINUX_DIR)" \
+ )
+endef
+
+define Package/gcal/install
+ $(INSTALL_DIR) $(1)/usr/bin/
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/gcal $(1)/usr/bin/
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/gcal2txt $(1)/usr/bin/
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/txt2gcal $(1)/usr/bin/
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/tcal $(1)/usr/bin/
+endef
+
+$(eval $(call BuildPackage,gcal))
diff --git a/gcal/patches/spawn.in.h.patch b/gcal/patches/spawn.in.h.patch
new file mode 100644
index 0000000..e9b3042
--- /dev/null
+++ b/gcal/patches/spawn.in.h.patch
@@ -0,0 +1,16 @@
+--- gcal-3.6/lib/spawn.in.h 2010-03-22 13:31:49.000000000 +0100
++++ gcal-3.6a/lib/spawn.in.h 2010-10-30 16:57:51.000000000 +0200
+@@ -24,6 +24,11 @@
+ /* The include_next requires a split double-inclusion guard. */
+ #if @HAVE_SPAWN_H@
+ # @INCLUDE_NEXT@ @NEXT_SPAWN_H@
++#else
++/* At least the sched.h and the signal.h are required
++ from gcal or glibc */
++#include <sched.h>
++#include <signal.h>
+ #endif
+
+ #ifndef _GL_SPAWN_H
+
+