diff options
author | obraun <obraun@FreeBSD.org> | 2004-02-25 19:25:52 +0800 |
---|---|---|
committer | obraun <obraun@FreeBSD.org> | 2004-02-25 19:25:52 +0800 |
commit | d77bcbeafd071a4827da14eb21256a03a0449a61 (patch) | |
tree | 03edb28d1eca2c5e4750985ee843014359378300 /lang | |
parent | 002fab1b14138c0aacaf7f82dca3da5cdcc4b750 (diff) | |
download | freebsd-ports-gnome-d77bcbeafd071a4827da14eb21256a03a0449a61.tar.gz freebsd-ports-gnome-d77bcbeafd071a4827da14eb21256a03a0449a61.tar.zst freebsd-ports-gnome-d77bcbeafd071a4827da14eb21256a03a0449a61.zip |
* Respect CC and CFLAGS.
* Fix for amd64
Diffstat (limited to 'lang')
-rw-r--r-- | lang/hugs/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
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: |