Changeset View
Changeset View
Standalone View
Standalone View
lang/hugs/Makefile
Show All 17 Lines | |||||
BROKEN_powerpc64= fails to compile: cppinput.c: detected recursion whilst expanding macro "vector" | BROKEN_powerpc64= fails to compile: cppinput.c: detected recursion whilst expanding macro "vector" | ||||
WRKSRC= ${WRKDIR}/${DISTNAME} | WRKSRC= ${WRKDIR}/${DISTNAME} | ||||
HUGS_DATE= Sep2006 | HUGS_DATE= Sep2006 | ||||
USES= bison gmake openal:al,alut | USES= bison gmake openal:al,alut | ||||
USE_CSTD= gnu89 | USE_CSTD= gnu89 | ||||
USE_GCC= yes | USE_GCC= yes | ||||
mat: ARCH is not defined at that point of the Makefile. | |||||
Not Done Inline ActionsHum, it worked for me as it is. Should I include <bsd.options.mk> then, or something else? arrowd: Hum, it worked for me as it is. Should I include `<bsd.options.mk>` then, or something else? | |||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CONFIGURE_ARGS+= --with-pthreads | CONFIGURE_ARGS+= --with-pthreads | ||||
Done Inline ActionsIf this is only needed on 12-CURRENT then check OSVERSION > 1200056 or whatever as well. swills: If this is only needed on 12-CURRENT then check `OSVERSION > 1200056` or whatever as well. | |||||
USE_GL= glut | USE_GL= glut | ||||
USE_XORG= sm ice xmu xi x11 | USE_XORG= sm ice xmu xi x11 | ||||
.include <bsd.port.pre.mk> | |||||
.if ${ARCH} == i386 && ${OSVERSION} > 1200000 | |||||
CFLAGS+= -O0 | |||||
.endif | |||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} 's/LIBS/LIBRARIES/' ${WRKSRC}/libraries/Makefile.in | @${REINPLACE_CMD} 's/LIBS/LIBRARIES/' ${WRKSRC}/libraries/Makefile.in | ||||
@${REINPLACE_CMD} -e '/^install :: install_notes/d ; \ | @${REINPLACE_CMD} -e '/^install :: install_notes/d ; \ | ||||
/^install :: install_guide/d' \ | /^install :: install_guide/d' \ | ||||
${WRKSRC}/src/MkInstal.in | ${WRKSRC}/src/MkInstal.in | ||||
@${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g' \ | @${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g' \ | ||||
${WRKSRC}/packages/OpenGL/configure \ | ${WRKSRC}/packages/OpenGL/configure \ | ||||
${WRKSRC}/packages/GLUT/configure \ | ${WRKSRC}/packages/GLUT/configure \ | ||||
${WRKSRC}/packages/X11/configure \ | ${WRKSRC}/packages/X11/configure \ | ||||
${WRKSRC}/packages/HGL/configure | ${WRKSRC}/packages/HGL/configure | ||||
@${REINPLACE_CMD} -e 's,"gcc","${CC}",g' \ | @${REINPLACE_CMD} -e 's,"gcc","${CC}",g' \ | ||||
${WRKSRC}/hsc2hs/Main.hs | ${WRKSRC}/hsc2hs/Main.hs | ||||
do-build: | do-build: | ||||
. for dir in src libraries docs | . for dir in src libraries docs | ||||
cd ${WRKSRC}/${dir} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET} | cd ${WRKSRC}/${dir} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET} | ||||
. endfor | . endfor | ||||
do-install: | do-install: | ||||
. for dir in src libraries demos docs | . for dir in src libraries demos docs | ||||
cd ${WRKSRC}/${dir} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET} | cd ${WRKSRC}/${dir} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET} | ||||
. endfor | . endfor | ||||
.include <bsd.port.mk> | .include <bsd.port.post.mk> |
ARCH is not defined at that point of the Makefile.