summaryrefslogtreecommitdiff
path: root/package/procmail
diff options
context:
space:
mode:
Diffstat (limited to 'package/procmail')
-rw-r--r--package/procmail/Makefile5
-rw-r--r--package/procmail/patches/patch-Makefile_new19
-rw-r--r--package/procmail/patches/patch-autoconf_h7
3 files changed, 25 insertions, 6 deletions
diff --git a/package/procmail/Makefile b/package/procmail/Makefile
index b03828a3c..ead1496f0 100644
--- a/package/procmail/Makefile
+++ b/package/procmail/Makefile
@@ -16,9 +16,10 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,PROCMAIL,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+TCFLAGS+= -DPROCMAIL
+
do-build:
- ${MAKE} -C ${WRKBUILD}/src -f ../Makefile.new \
- CC="${TARGET_CC}"
+ ${MAKE} -C ${WRKBUILD}/src -f ../Makefile.new
do-install:
${INSTALL_DIR} ${IDIR_PROCMAIL}/usr/bin
diff --git a/package/procmail/patches/patch-Makefile_new b/package/procmail/patches/patch-Makefile_new
new file mode 100644
index 000000000..695c46873
--- /dev/null
+++ b/package/procmail/patches/patch-Makefile_new
@@ -0,0 +1,19 @@
+--- procmail-3.22.orig/Makefile.new 1970-01-01 00:00:00.000000000 +0100
++++ procmail-3.22/Makefile.new 2009-06-04 22:43:04.000000000 +0200
+@@ -0,0 +1,16 @@
++PM_OBJ=cstdio.o common.o exopen.o goodies.o locking.o \
++ mailfold.o foldinfo.o misc.o pipes.o regexp.o robust.o \
++ sublib.o acommon.o mcommon.o lastdirsep.o authenticate.o \
++ lmtp.o memblk.o variables.o from.o comsat.o
++
++FM_OBJ=common.o fields.o formisc.o sublib.o ecommon.o \
++ acommon.o
++
++all: procmail formail
++
++procmail: procmail.o $(PM_OBJ)
++ $(CC) $(CFLAGS) $@.o $(PM_OBJ) -o $@ $(LDFLAGS)
++
++formail: formail.o $(FM_OBJ)
++ $(CC) $(CFLAGS) $@.o $(FM_OBJ) -o $@ $(LDFLAGS)
++
diff --git a/package/procmail/patches/patch-autoconf_h b/package/procmail/patches/patch-autoconf_h
index f7c210574..7435b378e 100644
--- a/package/procmail/patches/patch-autoconf_h
+++ b/package/procmail/patches/patch-autoconf_h
@@ -1,14 +1,13 @@
-$Id$
-
This patch is required to make procmail cross compile - it tries to run some
automatic tests which obviously do not work in a cross compiled environment.
--- procmail-3.22.orig/autoconf.h 1970-01-01 00:00:00.000000000 +0100
-+++ procmail-3.22/autoconf.h 2006-07-27 07:50:48.000000000 +0200
-@@ -0,0 +1,21 @@
++++ procmail-3.22/autoconf.h 2009-06-04 22:52:50.000000000 +0200
+@@ -0,0 +1,22 @@
+/* This file was automagically generated by autoconf */
+
+/* 5 moves in 64 steps of size 16384 when reallocing */
++#define NOpow
+#define NOpw_class
+#define NOstrlcat
+#define NOsetrgid