Date: Sun, 11 Feb 2007 18:40:13 GMT From: Larry Rosenman <ler@lerctr.org> To: freebsd-ports-bugs@FreeBSD.org Subject: ports/108897 add UTF-8 support Message-ID: <200702111840.l1BIeDGD027970@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/108897; it has been noted by GNATS. From: Larry Rosenman <ler@lerctr.org> To: bug-followup@freebsd.org Cc: yaemon@kikansha.jp Subject: ports/108897 add UTF-8 support Date: Sun, 11 Feb 2007 12:36:45 -0600 (CST) I've taken Tsuneo Nakagawa's patch, and updated it appropriately. Please use this patch (I don't think his(her?) plist changes are necessary). Please apply --- /usr/ports/mail/cone/Makefile Thu Dec 21 20:51:11 2006 +++ Makefile Sun Feb 11 12:32:35 2007 @@ -7,7 +7,7 @@ PORTNAME= cone PORTVERSION= 0.69 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= mail # This is for beta versions, leave it in please: #MASTER_SITES= http://www.courier-mta.org/beta/${PORTNAME}/ \ @@ -31,15 +31,41 @@ USE_BZIP2= yes USE_PERL5= yes USE_GMAKE= yes +CPPFLAGS= -I${LOCALBASE}/include GNU_CONFIGURE= yes CONFIGURE_ARGS= -C --without-db --with-certdb --prefix=${PREFIX} --exec-prefix=${PREFIX} CONFIGURE_ENV= REHASH="${PERL} ${SCRIPTDIR}/c_rehash" LDFLAGS=-L${LOCALBASE}/lib \ - CPPFLAGS=-I${LOCALBASE}/include + CPPFLAGS="${CPPFLAGS}" CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} MAN1= cone.1 leaf.1 mailtool.1 INSTALL_TARGET= install-strip +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 502010 +IGNORE= not supported on FreeBSD versions before 5.2.1-RELEASE +.endif + +.if exists(${LOCALBASE}/include/ncurses/ncurses.h) || defined(WITH_NCURSESW) +CPPFLAGS+= -I${WRKDIR} -D_XOPEN_SOURCE_EXTENDED +LIB_DEPENDS+= ncursesw.5:${PORTSDIR}/devel/ncurses + +post-extract: + ${MKDIR} ${WRKDIR}/ncursesw + ${LN} -s ${LOCALBASE}/include/ncurses/ncurses.h ${WRKDIR}/ncursesw/curses.h +.else + +ONFIGURE_ARGS+= --disable-unicode + +pre-extract: + @${ECHO_CMD} "" + @${ECHO_CMD} "to use multilanguage ( unicode ) MUA, please set WITH_NCURSESW" + @${ECHO_CMD} "or install devel/ncurses first" + @${ECHO_CMD} "" + +.endif + post-install: ${INSTALL_SCRIPT} ${WRKSRC}/sysconftool ${PREFIX}/sbin/cone-sysconftool PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PORTNAME} POST-INSTALL @@ -47,12 +73,6 @@ .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} ${INSTALL_MAN} ${WRKSRC}/ChangeLog ${DOCSDIR} -.endif - -.include <bsd.port.pre.mk> - -.if ${OSVERSION} < 502010 -IGNORE= not supported on FreeBSD versions before 5.2.1-RELEASE .endif .include <bsd.port.post.mk> -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 512-248-2683 E-Mail: ler@lerctr.org US Mail: 430 Valona Loop, Round Rock, TX 78681-3893
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702111840.l1BIeDGD027970>