freebsd-ports/mail/prayer/files/patch-Config
2008-04-16 17:30:19 +00:00

79 lines
2.3 KiB
Text

--- Config.orig 2008-04-16 00:43:56.000000000 -0800
+++ Config 2008-04-16 00:44:36.000000000 -0800
@@ -28,7 +28,7 @@
############################################################################
# Location of compiler
-CC = gcc
+#CC = gcc
# Location of make program (GNU make required)
MAKE = gmake
# Location of install program (GNU install or compatible required)
@@ -37,9 +37,10 @@
# Base Compiler options for GCC.
#BASECFLAGS = -Wall -g
#BASELDFLAGS = -g
-BASECFLAGS = -Wall -g -O2
+#BASECFLAGS = -Wall -g -O2
+BASECFLAGS = -Wall -g ${PORTCFLAGS}
BASELDFLAGS = -g -O2
-BASE_LIBS = -lcrypt
+BASE_LIBS = -lcrypt -liconv
# Base Compiler options for Sun SUNWspro compiler
#CC = /opt/SUNWspro/bin/cc
@@ -58,9 +59,9 @@
# which points to ../../imap/c-client. This just reduces the amount of
# noise output on each line when building the package.
#
-CCLIENT_DIR=./c-client
-CCLIENT_INCLUDE=-I $(CCLIENT_DIR)
-CCLIENT_LIBS=./$(CCLIENT_DIR)/c-client.a
+#CCLIENT_DIR=./c-client
+#CCLIENT_INCLUDE=-I $(CCLIENT_DIR)
+#CCLIENT_LIBS=./$(CCLIENT_DIR)/c-client.a
CCLIENT_SSL_ENABLE = true
#
@@ -80,12 +81,14 @@
# Following works with the mail/cclient port from FreeBSD
#
#CCLIENT_INCLUDE = -I/usr/local/include/c-client
+CCLIENT_INCLUDE = -I${LOCALBASE}/include/c-client
#CCLIENT_LIBS = -L/usr/local/lib -lc-client4
+CCLIENT_LIBS = -L${LOCALBASE}/lib -lc-client4
#
# Complication:
# The FreeBSD port uses PAM and optionally SSL if built WITH_SSL=yes.
#
-#CCLIENT_SSL_ENABLE = true
+CCLIENT_SSL_ENABLE = true
#CCLIENT_KERB_ENABLE = true
############################################################################
@@ -99,7 +102,7 @@
Z_LIBS = -lz
# LDAP (required if LDAP_ENABLE set)
-LDAP_INCLUDE =
+LDAP_INCLUDE = -I${LOCALBASE}/include
LDAP_LIBS = -lldap
# Pam (required if CCLIENT_PAM_ENABLE set)
@@ -128,12 +131,12 @@
# DB definitions (required if SESSION_CACHE_ENABLE set)
#
# Following suitable for Redhat Linux which has DB 3 preinstalled
-DB_INCLUDE=
-DB_LIBS=-ldb
+#DB_INCLUDE=
+#DB_LIBS=-ldb
# Following suitable for FreeBSD with DB 4 package installed
-#DB_INCLUDE=-I/usr/local/include/db4
-#DB_LIBS=-L/usr/local/lib -ldb4
+DB_INCLUDE=-I/usr/local/include/db42
+DB_LIBS=-L/usr/local/lib -ldb-4.2
############################################################################