--- Makefile.orig 2010-05-19 14:18:58.000000000 -0400 +++ Makefile 2010-05-19 14:46:30.000000000 -0400 @@ -20,6 +20,11 @@ MAKE_JOBS_SAFE= yes +OPTIONS= ADDAUTH_PATCH "Adds -a option" Off \ + REJECTTEXT_PATCH "Adds -R option" Off \ + LDAP "Adds LDAP support" Off \ + SENDMAIL_PORT "Build against sendmail port" Off + ## # Use the following quirks to choose which sendmail to use (ports or system): # @@ -45,10 +50,6 @@ .endif .endif -.if exists(${LOCALBASE}/lib/libldap.so) -WITH_LDAP=yes -.endif - .if !defined(WITHOUT_LDAP) && defined(WITH_LDAP) USE_OPENLDAP=yes CPPFLAGS+= -I${LOCALBASE}/include @@ -60,15 +61,14 @@ WITH_SENDMAIL_BASE=yes .endif -.if defined(WITH_SENDMAIL_BASE) +.if !defined(WITH_SENDMAIL_PORT) # use base sendmail .if exists(/usr/lib/libmilter.a) MILTERBASE= /usr .else IGNORE= base system sendmail not found or too old, rebuild with WITH_SENDMAIL_PORT=yes .endif .endif - -.if defined(WITH_SENDMAIL_PORT) +.else BUILD_DEPENDS+= ${LOCALBASE}/lib/libmilter.a:${PORTSDIR}/mail/sendmail MILTERBASE?= ${LOCALBASE} .endif