From 6a77cdb2f4b2c3fdce36a1dc49a461d2d4007426 Mon Sep 17 00:00:00 2001 From: Oliver Braun Date: Wed, 25 Feb 2004 11:25:52 +0000 Subject: [PATCH] * Respect CC and CFLAGS. * Fix for amd64 --- lang/hugs/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lang/hugs/Makefile b/lang/hugs/Makefile index 2476d09e1c0e..5896bdd92410 100644 --- a/lang/hugs/Makefile +++ b/lang/hugs/Makefile @@ -22,17 +22,22 @@ USE_SIZE= yes USE_REINPLACE= yes USE_BISON= yes CONFIGURE_ARGS+= --prefix=${PREFIX} --enable-ffi +CONFIGURE_ENV+= CC="${CC}" CFLAGS="${CFLAGS}" ALL_TARGET= default ffihugs MAN1= hugs.1 hugs-package.1 +.if ${MACHINE_ARCH:L} == "amd64" +CFLAGS+= "-fPIC" +.endif + post-patch: @${REINPLACE_CMD} -e '/^install :: install_notes/d ; \ /^install :: install_guide/d' \ ${WRKSRC}/MkInstal.in do-configure: - @(cd ${WRKSRC}/unix && ./configure ${CONFIGURE_ARGS}) + @(cd ${WRKSRC}/unix && ${CONFIGURE_ENV} ./configure ${CONFIGURE_ARGS}) .if !defined(NOPORTDOCS) post-install: