Bug 86609

Summary: courier-imap 4.0.6 prefixed installation and configure cleanup
Product: Ports & Packages Reporter: Martin Piayda <martin.piayda>
Component: Individual Port(s)Assignee: Oliver Lehmann <oliver>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Martin Piayda 2005-09-26 19:50:15 UTC
I've updated the current Makefile for prefixed installations and enhanced the configure section to make it more readable

Fix: 

-CONFIGURE_ENV= CFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
-               CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
-               CXXFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
-               LIBS="${LDFLAGS} -L${LOCALBASE}/lib"
+CPPFLAGS+=      -I${LOCALBASE}/include -I${PREFIX}/include
+LDFLAGS+=       -L${LOCALBASE}/lib -L${PREFIX}/lib
+CONFIGURE_ENV=  REHASH=${SCRIPTDIR}/c_rehash \
+                CPPFLAGS='${CPPFLAGS}' \
+               CXXFLAGS='${CPPFLAGS}' \
+                LDFLAGS='${LDFLAGS}'
+MAKE_ENV:=      ${CONFIGURE_ENV}

 #
 # options available:
@@ -71,7 +74,8 @@
                --enable-workarounds-for-imap-client-bugs \
                --enable-unicode \
                --disable-root-check \
-               --with-locking-method=fcntl
+               --with-locking-method=fcntl \
+               COURIERAUTHCONFIG=${PREFIX}/bin/courierauthconfig

 .include <bsd.port.pre.mk>--iC5nlEMz6sYzFl0ubJjFQIjcakl4Ic31qxXhob2GQk1EbvtB
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

diff -ruN bak/Makefile Makefile
--- bak/Makefile    Sat Sep 24 14:56:19 2005
+++ Makefile   Mon Sep 26 20:24:26 2005
@@ -34,10 +34,13 @@
 USE_GMAKE=     yes
 USE_RC_SUBR=   yes
How-To-Repeat: always
Comment 1 Marcus Alves Grando freebsd_committer freebsd_triage 2005-09-26 20:56:19 UTC
Responsible Changed
From-To: freebsd-ports-bugs->oliver

Over to maintainer.
Comment 2 Oliver Lehmann freebsd_committer freebsd_triage 2005-09-26 21:38:26 UTC
State Changed
From-To: open->closed

Committed a slightly modified version, thanks 

I committed 
COURIERAUTHCONFIG=${LOCALBASE}/bin/courierauthconfig 
instead of 
COURIERAUTHCONFIG=${PREFIX}/bin/courierauthconfig
Comment 3 Martin Piayda 2005-09-26 23:22:40 UTC
A prefixed installation does not work with ${LOCALBASE}

I have tested ${PREFIX} to work with either prefixed and standard
environmental installation. So... the makefile which is now in ports is
broken...

Regards,
Martin