Remove hack and make sure guile2 headers are picked up first.

This commit is contained in:
ajacoutot 2022-03-27 10:26:39 +00:00
parent c6fd09135f
commit ae01f8cb7b
1 changed files with 5 additions and 8 deletions

View File

@ -2,6 +2,7 @@ COMMENT = lepton electronic design automation suite
V = 1.9.17-20211219
DISTNAME = lepton-eda-${V:C/-.*//}
REVISION = 0
SHARED_LIBS += lepton 0.0 # 10.0
SHARED_LIBS += leptongui 0.0 # 4.0
@ -51,10 +52,10 @@ CONFIGURE_ENV = GROFF=false \
MAKEINFO=gmakeinfo \
M4=/usr/bin/m4
pre-configure:
if [ -r ${TRUEPREFIX}/include/libguile.h ]; then \
echo "XXX will miscompile due to presence of lang/guile headers"; \
exit 1; fi
# XXX make sure guile2 headers are picked up first (over guile1);
# cannot use CPPFLAGS/CFLAGS since they get appended last
CONFIGURE_ENV += "CC=${CC} -I${LOCALBASE}/include/guile/2.2"
CONFIGURE_ENV += "CXX=${CXX} -I${LOCALBASE}/include/guile/2.2"
post-install:
# would be nice to precompile the guile files otherwise
@ -65,8 +66,4 @@ post-install:
mv ${PREFIX}/share/doc/lepton-eda/examples \
${PREFIX}/share/examples/lepton-eda
if nm -s ${PREFIX}/lib/libleptongui.so.* | grep scm_i_freelist; then \
echo "XXX miscompiled due to presence of lang/guile during build"; \
exit 1; fi
.include <bsd.port.mk>