184f235ac1
The 5.6.x release consolidates the 5.5.x development stream started in 2004. Highlights: * UNICODE character set support * Unbounded integer arithmetic and rational numbers * New and faster CHR release * Added clp(r) constraints over reals * Many enhancements to the web and notably sematic web libraries * Much more ...
66 lines
1.8 KiB
Makefile
66 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.12 2006/08/02 15:15:36 kristerw Exp $
|
|
|
|
.include "../../lang/swi-prolog-lite/Makefile.common"
|
|
|
|
PKGNAME= swi-prolog-packages-${SWIPLVERS}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
COMMENT= Packages for SWI Prolog
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_GNU_READLINE= yes # uses rl_event_hook() interface
|
|
USE_TOOLS+= gmake
|
|
|
|
CONFIGURE_ENV+= PL=swi-prolog
|
|
CONFIGURE_ARGS+= --disable-mt
|
|
|
|
BUILD_DIRS+= ${WRKSRC}/packages
|
|
INSTALL_DIRS+= ${WRKSRC}/packages
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
post-configure:
|
|
${LN} -sf ${LOCALBASE}/bin/plld ${WRKSRC}/src
|
|
${LN} -sf ${LOCALBASE}/bin/swi-prolog ${WRKSRC}/src
|
|
cd ${WRKSRC}/packages; \
|
|
${SETENV} \
|
|
CPP=${CPP:Q} \
|
|
${GMAKE} configure
|
|
|
|
pre-install: checkforx
|
|
|
|
# Based on misc/openoffice:
|
|
DISPLAY?= #empty, if unset
|
|
checkforx:
|
|
.if ${DISPLAY} == "" || ${DISPLAY_OK:!${X11BASE}/bin/xdpyinfo >/dev/null 2>&1 && echo YES || echo NO!} == "NO"
|
|
. if exists(${X11BASE}/bin/Xvfb)
|
|
-${X11BASE}/bin/Xvfb :2 & \
|
|
${ECHO} $$! >${WRKDIR}/.Xvfb.pid
|
|
${ECHO} checkforx: Xvfb-PID: `${CAT} ${WRKDIR}/.Xvfb.pid`
|
|
sleep 5
|
|
DISPLAY= :2
|
|
. else
|
|
@${ECHO} "Error: Environment variable DISPLAY must be set"
|
|
@${ECHO} " and point to a connectible X server."
|
|
@${FALSE}
|
|
. endif #Xvfb
|
|
.endif #DISPLAY
|
|
|
|
MAKE_ENV+= DISPLAY=${DISPLAY:Q}
|
|
|
|
post-install: teardownx
|
|
${RM} -f ${LOCALBASE}/lib/swi-prolog-${SWIPLVERS}/xpce-6.6.17/prolog/lib/.pwd
|
|
teardownx:
|
|
${ECHO} teardownx: Xvfb-PID: `${CAT} ${WRKDIR}/.Xvfb.pid`
|
|
sleep 5
|
|
-kill `${CAT} ${WRKDIR}/.Xvfb.pid`
|
|
${RM} -f ${WRKDIR}/.Xvfb.pid
|
|
|
|
|
|
.include "../../lang/swi-prolog-lite/buildlink3.mk"
|
|
.include "../../graphics/jpeg/buildlink3.mk"
|
|
.include "../../graphics/xpm/buildlink3.mk"
|
|
.include "../../devel/ncurses/buildlink3.mk"
|
|
.include "../../devel/readline/buildlink3.mk"
|
|
#.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|