Changeset View
Changeset View
Standalone View
Standalone View
graphics/ilmbase/Makefile
Show All 18 Lines | |||||
USES= compiler:c++14-lang pkgconfig libtool | USES= compiler:c++14-lang pkgconfig libtool | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
# The configure script uses bash arrays | # The configure script uses bash arrays | ||||
CONFIGURE_SHELL=${BASH_CMD} | CONFIGURE_SHELL=${BASH_CMD} | ||||
CONFIGURE_ARGS= --disable-static | CONFIGURE_ARGS= --disable-static | ||||
MAKE_ARGS+= PTHREAD_LIBS="-pthread -lpthread" | # libtool links C++ libraries with -nostdlib, which prevents -pthread from | ||||
# having an effect (at least with clang). Make sure we also pass -lpthread so | |||||
# we do link against libthr.so. | |||||
CONFIGURE_ENV+= PTHREAD_LIBS="-pthread -lpthread" | |||||
TEST_TARGET= check | TEST_TARGET= check | ||||
PORTDOCS= AUTHORS ChangeLog README.md | PORTDOCS= AUTHORS ChangeLog README.md | ||||
OPTIONS_DEFINE= DOCS LARGE_STACK | OPTIONS_DEFINE= DOCS LARGE_STACK | ||||
LARGE_STACK_DESC= Enable sys-dependent large stack optimizations | LARGE_STACK_DESC= Enable sys-dependent large stack optimizations | ||||
LARGE_STACK_CONFIGURE_ENABLE= large-stack | LARGE_STACK_CONFIGURE_ENABLE= large-stack | ||||
BASH_CMD= ${LOCALBASE}/bin/bash | BASH_CMD= ${LOCALBASE}/bin/bash | ||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
MAJORVER= 2_3 | MAJORVER= 2_3 | ||||
VER= 24 | VER= 24 | ||||
PLIST_SUB= MAJORVER=${MAJORVER} | PLIST_SUB= MAJORVER=${MAJORVER} | ||||
PLIST_SUB+= VER=${VER} | PLIST_SUB+= VER=${VER} | ||||
HALF_BIN= eLut toFloat | HALF_BIN= eLut toFloat | ||||
regression-test regression check:: test | regression-test regression check:: test | ||||
post-configure: | post-configure: | ||||
${REINPLACE_CMD} -e 's/#define HAVE_UCONTEXT_H 1/#undef HAVE_UCONTEXT_H/' ${WRKSRC}/config/IlmBaseConfig.h | ${REINPLACE_CMD} -e 's/#define HAVE_UCONTEXT_H 1/#undef HAVE_UCONTEXT_H/' ${WRKSRC}/config/IlmBaseConfig.h | ||||
${REINPLACE_CMD} -e '/^libIlmThread_la_LIBADD/s/$$/ $$(PTHREAD_LIBS)/' ${WRKSRC}/IlmThread/Makefile | |||||
post-install: | post-install: | ||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libHalf.so.${VER} | ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libHalf.so.${VER} | ||||
${RM} ${STAGEDIR}${PREFIX}/lib/*.la | ${RM} ${STAGEDIR}${PREFIX}/lib/*.la | ||||
.for l in libIex libIexMath libImath libIlmThread | .for l in libIex libIexMath libImath libIlmThread | ||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${l}-${MAJORVER}.so.${VER} | ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${l}-${MAJORVER}.so.${VER} | ||||
@#${LN} -s ${l}-${MAJORVER}.so.${VER} ${STAGEDIR}${PREFIX}/lib/${l}.so || : | @#${LN} -s ${l}-${MAJORVER}.so.${VER} ${STAGEDIR}${PREFIX}/lib/${l}.so || : | ||||
${LN} -s ${l}.so ${STAGEDIR}${PREFIX}/lib/${l}-${MAJORVER}.so | ${LN} -s ${l}.so ${STAGEDIR}${PREFIX}/lib/${l}-${MAJORVER}.so | ||||
Show All 10 Lines |