By default, only the NCURSES version of THE is built (which is not very useful, really). To build the XCurses (X11) version requires the inclusion of devel/pdcurses XCurses.so(.8). Simple changes to the Makefile make this an automatic process with an additional "depends(WITH_XCURSES)" subsection. This builds and installs "xthe" instead of "nthe". "nthe" can still be built by default. Note: I don't know how to properly adjust the pkg-plist for this conditional object build. Fix: MAN1= the.1 + .if defined(WITH_XAW3D) + CONFIGURE_ARGS+= --with-xaw3d + LIB_DEPENDS+= Xaw3d.8:${PORTSDIR}/x11-toolkits/Xaw3d + .endif + .if defined(WITH_XCURSES) + CONFIGURE_ARGS+= --with-xcurses + LIB_DEPENDS+= XCurses.8:${PORTSDIR}/devel/pdcurses + .endif + .if defined(WITH_REXX_REGINA) BUILD_DEPENDS+= regina:${PORTSDIR}/lang/rexx-regina RUN_DEPENDS+= regina:${PORTSDIR}/lang/rexx-regina *************** post-install: + .if defined(WITH_XCURSES) + @${LN} -sf xthe ${PREFIX}/bin/the + .else @${LN} -sf nthe ${PREFIX}/bin/the + .endif .if !defined(NOPORTDOCS) @${MKDIR} ${PREFIX}/share/doc/THE ${INSTALL_DATA} ${WRKSRC}/*.html ${PREFIX}/share/doc/THE--Ti7kful0PPI679jQzk0vjMTyfvzIUnncyNmFRlJfQkwCwyCj Content-Type: text/plain; name="file.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.diff" *** Makefile.orig Tue Jan 31 19:03:09 2006 --- Makefile Sun Aug 6 16:00:09 2006 *************** *** 27,32 **** --- 27,41 ----
Please modify the previous changes for WITH_CURSES from + .if defined(WITH_XCURSES) + CONFIGURE_ARGS+= --with-xcurses + LIB_DEPENDS+= XCurses.8:${PORTSDIR}/devel/pdcurses + .endif to + .if defined(WITH_XCURSES) + CONFIGURE_ARGS+= --with-xcurses \ + --with-cursesincdir=/usr/local/include \ + --with-curseslibdir=/usr/local/lib + LIB_DEPENDS+= XCurses.2:${PORTSDIR}/devel/pdcurses + .endif
State Changed From-To: open->closed Committed, with improvements (plist conditional, OPTIONS menu)