diff --git a/app-office/calcurse/calcurse-4.3.0.recipe b/app-office/calcurse/calcurse-4.3.0.recipe new file mode 100644 index 000000000..98bbf1769 --- /dev/null +++ b/app-office/calcurse/calcurse-4.3.0.recipe @@ -0,0 +1,69 @@ +SUMMARY="A calendar and scheduling application for the command line" +DESCRIPTION="calcurse is a calendar and scheduling application for the \ +command line. It helps keep track of events, appointments and everyday tasks. \ +A configurable notification system reminds user of upcoming deadlines, the \ +curses based interface can be customized to suit user needs and a very \ +powerful set of command line options can be used to filter and format \ +appointments, making it suitable for use in scripts." +HOMEPAGE="http://calcurse.org/" +COPYRIGHT="2005-2017 calcurse Development Team" +LICENSE="BSD (2-clause)" +REVISION="1" +SOURCE_URI="http://calcurse.org/files/calcurse-$portVersion.tar.gz" +CHECKSUM_SHA256="31ecc3dc09e1e561502b4c94f965ed6b167c03e9418438c4a7ad5bad2c785f9a" +PATCHES="calcurse-$portVersion.patchset" + +ARCHITECTURES="!x86_gcc2 x86_64" +SECONDARY_ARCHITECTURES="x86" + +if [ "$targetArchitecture" != x86_gcc2 ] +then + commandBinDir=$binDir + commandSuffix=$secondaryArchSuffix +else + commandBinDir=$prefix/bin + commandSuffix= +fi + +PROVIDES=" + calcurse$secondaryArchSuffix = $portVersion + cmd:calcurse$commandSuffix + cmd:calcurse_caldav$commandSuffix + cmd:calcurse_upgrade$commandSuffix + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libncursesw$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libncursesw$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoconf + cmd:autopoint + cmd:find + cmd:gcc$secondaryArchSuffix + cmd:make + " + +BUILD() +{ + autoreconf -vfi + # define _BSD_SOURCE for /boot/system/develop/headers/bsd/paths.h + CFLAGS="-D_BSD_SOURCE" runConfigure --omit-dirs binDir ./configure \ + --bindir=$commandBinDir + make $jobArgs +} + +INSTALL() +{ + make install +} + +TEST() +{ + make check +} diff --git a/app-office/calcurse/patches/calcurse-4.3.0.patchset b/app-office/calcurse/patches/calcurse-4.3.0.patchset new file mode 100644 index 000000000..931d04c05 --- /dev/null +++ b/app-office/calcurse/patches/calcurse-4.3.0.patchset @@ -0,0 +1,50 @@ +From 01abcd76f624ef17b56d85c8135850b15d94a672 Mon Sep 17 00:00:00 2001 +From: Andy +Date: Sun, 3 Dec 2017 13:25:59 +0000 +Subject: Fix version and don't check for lm or pthread + +--- + configure.ac | 20 +------------------- + 1 file changed, 1 insertion(+), 19 deletions(-) + +diff --git a/configure.ac b/configure.ac +index b1480ec..d516199 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -3,7 +3,7 @@ + #------------------------------------------------------------------------------- + AC_PREREQ(2.59) + AC_INIT([calcurse], +- m4_esyscmd([build-aux/git-version-gen .version]), ++ 4.3.0, + [bugs@calcurse.org]) + AM_INIT_AUTOMAKE + #m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) +@@ -50,24 +50,6 @@ AC_CHECK_FUNC(initscr,, + fi + LIBS="$LIBS -l$available_ncurses" + ]) +- +-AC_CHECK_HEADERS([pthread.h], [ +- AC_CHECK_LIB(pthread, pthread_create, [ +- LIBS="$LIBS -pthread" +- AC_DEFINE(HAVE_LIBPTHREAD, 1, +- [Define to 1 if you have the 'pthread' library (-pthread).]) +- ], +- AC_MSG_ERROR(The pthread library is required in order to build calcurse!)) +-], AC_MSG_ERROR(The pthread header is required in order to build calcurse!)) +- +-AC_CHECK_HEADERS([math.h], [ +- AC_CHECK_LIB(m, exp, [ +- LIBS="$LIBS -lm" +- AC_DEFINE(HAVE_LIBMATH, 1, +- [Define to 1 if you have the 'math' library (-lm).]) +- ], +- AC_MSG_ERROR(The math library is required in order to build calcurse!)) +-], AC_MSG_ERROR(The math header is required in order to build calcurse!)) + #------------------------------------------------------------------------------- + # Check whether to build documentation + #------------------------------------------------------------------------------- +-- +2.15.0 +