Attempted hacks for problem finding libguile-srfi* on Darwin
This commit is contained in:
parent
6ac9fab7f2
commit
e67a92135f
2 changed files with 23 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.3 2013/06/24 20:06:06 outpaddling Exp $
|
||||
# $NetBSD: Makefile,v 1.4 2013/06/25 12:49:00 outpaddling Exp $
|
||||
#
|
||||
|
||||
DISTNAME= meep-1.2
|
||||
|
@ -23,6 +23,8 @@ CONFIGURE_ARGS+=--with-libctl=${PREFIX}/share/libctl \
|
|||
--prefix=${MPI_PREFIX:Q} \
|
||||
--mandir=${MPI_PREFIX:Q}/man
|
||||
|
||||
MESSAGE_SUBST+= PREFIX=${PREFIX:Q}
|
||||
|
||||
.include "../../wip/mpb-openmpi/buildlink3.mk"
|
||||
.include "../../math/gsl/buildlink3.mk"
|
||||
# Should this be satisfied by fftw2-openmpi from mpb-openmpi?
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.18 2013/06/24 20:21:03 outpaddling Exp $
|
||||
# $NetBSD: Makefile,v 1.19 2013/06/25 12:48:32 outpaddling Exp $
|
||||
|
||||
DISTNAME= meep-1.2
|
||||
CATEGORIES= math
|
||||
|
@ -15,17 +15,33 @@ USE_LANGUAGES= c c++ fortran77
|
|||
|
||||
CONFIGURE_ARGS+=--with-libctl=${BUILDLINK_PREFIX.libctl}/share/libctl
|
||||
|
||||
MESSAGE_SUBST+= PREFIX=${PREFIX:Q}
|
||||
|
||||
TEST_TARGET= check
|
||||
|
||||
# ERROR: file: "libguile-srfi-srfi-1-v-3", message: "file not found"
|
||||
# Why does this have no effect? No sign of it in config.log.
|
||||
# LDFLAGS+= ${LINKER_RPATH_FLAG}${PREFIX}/lib
|
||||
|
||||
# Temporary hack until I figure out how to properly tweak LDFLAGS
|
||||
# Why doesn't COMPILER_RPATH_FLAG work here? ( expands to -L )
|
||||
# Doesn't fix the libguile issue anyway
|
||||
# SUBST_CLASSES+= ldflags
|
||||
# SUBST_STAGE.ldflags= post-configure
|
||||
# SUBST_FILES.ldflags= Makefile
|
||||
# SUBST_SED.ldflags= -e "s|-L${PREFIX}/lib|-L${PREFIX}/lib -Wl,-rpath,${PREFIX}/lib|g"
|
||||
|
||||
.include "../../mk/bsd.prefs.mk"
|
||||
|
||||
# Hack to work around problem finding libguile*.dylib
|
||||
# Darwin needs libguile with a .so suffix and LD_LIBRARY_PATH to include
|
||||
# Latest seems to only need LD_LIBRARY_PATH
|
||||
# ${LOCALBASE}/lib
|
||||
.if ${OPSYS} == "Darwin"
|
||||
.for l in ${PREFIX}/lib/libguile-srfi-srfi-*.dylib
|
||||
post-install:
|
||||
${CP} ${l} ${l%.dylib}.so
|
||||
#.for l in ${PREFIX}/lib/libguile-srfi-srfi-*.dylib
|
||||
#post-install:
|
||||
# ${CP} ${l} ${l%.dylib}.so
|
||||
#.endfor
|
||||
.endif
|
||||
|
||||
.include "../../wip/mpb/buildlink3.mk"
|
||||
|
|
Loading…
Reference in a new issue