aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2003-10-23 17:36:34 +0800
committerache <ache@FreeBSD.org>2003-10-23 17:36:34 +0800
commit649a795a64f068f5ce88c6c0bf6f9fd225bf9094 (patch)
treebf272a19ea6ef44b75ae4b95fd9e117e37a3ac07 /mail
parentcb4325f0f168640a52817d789dae28c38df3bc63 (diff)
downloadfreebsd-ports-gnome-649a795a64f068f5ce88c6c0bf6f9fd225bf9094.tar.gz
freebsd-ports-gnome-649a795a64f068f5ce88c6c0bf6f9fd225bf9094.tar.zst
freebsd-ports-gnome-649a795a64f068f5ce88c6c0bf6f9fd225bf9094.zip
Fix configure error
Submitted by: Anthony Howe
Diffstat (limited to 'mail')
-rw-r--r--mail/milter-sender/Makefile4
-rw-r--r--mail/milter-sender/files/version.h.in124
2 files changed, 128 insertions, 0 deletions
diff --git a/mail/milter-sender/Makefile b/mail/milter-sender/Makefile
index 21df12a35ace..8ad84b8d2a04 100644
--- a/mail/milter-sender/Makefile
+++ b/mail/milter-sender/Makefile
@@ -7,6 +7,7 @@
PORTNAME= milter-sender
PORTVERSION= 0.41
+PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://www.snert.com/Software/download/
DISTFILES= libsnert-1.23.tgz milter-sender-${PORTVERSION}.tgz
@@ -40,6 +41,9 @@ CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}" LIBS="${PTHREAD_LIBS}"
CONFIGURE_ARGS+= --with-db
MAKE_ENV+= PREFIX="${PREFIX}"
+post-patch:
+ @${CP} ${FILESDIR}/version.h.in ${WRKSRC}/../lib/
+
pre-configure:
@cd ${WRKSRC}/../lib && \
${SETENV} CC="${CC}" CXX="${CXX}" \
diff --git a/mail/milter-sender/files/version.h.in b/mail/milter-sender/files/version.h.in
new file mode 100644
index 000000000000..aeefca7b9302
--- /dev/null
+++ b/mail/milter-sender/files/version.h.in
@@ -0,0 +1,124 @@
+/*
+ * version.h
+ *
+ * Copyright 2002, 2003 by Anthony Howe. All rights reserved.
+ */
+
+#ifndef __com_snert_lib_version_h__
+#define __com_snert_lib_version_h__ 1
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define __LIBSNERT__ 1
+
+#undef LIBSNERT_MAJOR
+#undef LIBSNERT_MINOR
+#undef LIBSNERT_BUILD
+#undef LIBSNERT_VERSION
+#undef LIBSNERT_AUTHOR
+#undef LIBSNERT_COPYRIGHT
+
+typedef struct {
+ int major;
+ int minor;
+ int build;
+ const char *author;
+ const char *version;
+ const char *copyright;
+} VersionInfo;
+
+extern VersionInfo LibSnert;
+
+/*
+ * Fine resolution clock:
+ *
+ * POSIX_API nanoseconds 10^-9
+ * BSD_API microseconds 10^-6
+ * ANSI_API seconds 10^1
+ */
+#undef TIME_API
+
+/*
+ * SYSTEMV_API
+ * POSIX_API
+ * WIN32_API
+ * FCNTL_API
+ * FLOCK_API
+ */
+#undef SERIALIZATION_API
+
+/*
+ * SYSTEMV_API
+ * POSIX_API
+ * WIN32_API
+ * MMAP_ANON
+ */
+#undef SHARED_MEMORY_API
+
+/*
+ * Headers & Functions
+ */
+#undef HAVE_ACCEPT
+#undef HAVE_CONNECT
+#undef HAVE_FCNTL_H
+#undef HAVE_GETPAGESIZE
+#undef HAVE_GETSOCKOPT
+#undef HAVE_GETTIMEOFDAY
+#undef HAVE_INET_ADDR
+#undef HAVE_INET_ATON
+#undef HAVE_INET_NTOA
+#undef HAVE_INET_NTOP
+#undef HAVE_IO_H
+#undef HAVE_LIMITS_H
+#undef HAVE_MEMORY_H
+#undef HAVE_MKDIR
+#undef HAVE_MMAP
+#undef HAVE_MUNMAP
+#undef HAVE_RECVFROM
+#undef HAVE_SELECT
+#undef HAVE_SEMAPHORE_H
+#undef HAVE_SEM_DESTROY
+#undef HAVE_SEM_INIT
+#undef HAVE_SEM_POST
+#undef HAVE_SEM_WAIT
+#undef HAVE_SENDTO
+#undef HAVE_SETSOCKOPT
+#undef HAVE_SHUTDOWN
+#undef HAVE_SOCKET
+#undef HAVE_STDLIB_H
+#undef HAVE_STRCSPN
+#undef HAVE_STRDUP
+#undef HAVE_STRERROR
+#undef HAVE_STRFTIME
+#undef HAVE_STRINGS_H
+#undef HAVE_STRING_H
+#undef HAVE_STRSPN
+#undef HAVE_STRTOL
+#undef HAVE_SYSLOG_H
+#undef HAVE_SYS_FILE_H
+#undef HAVE_SYS_MMAN_H
+#undef HAVE_SYS_STAT_H
+#undef HAVE_SYS_TIME_H
+#undef HAVE_SYS_TYPES_H
+#undef HAVE_UNISTD_H
+#undef HAVE_VPRINTF
+#undef HAVE_WINDOWS_H
+#undef HAVE_WINSOCK2_H
+#undef PROTOTYPES
+#undef STDC_HEADERS
+#undef TIME_WITH_SYS_TIME
+
+#undef _
+#ifdef __STDC__
+# define _(x) x
+#else
+# define _(x) ()
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __com_snert_lib_version_h__ */