diff options
author | tijl <tijl@FreeBSD.org> | 2014-08-26 22:06:08 +0800 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2014-08-26 22:06:08 +0800 |
commit | f8357b5cbaa160ccdf9943cac099f5e092c591da (patch) | |
tree | d0c8617b772b8f0a175d436d938b8d844590b41f /science/chemtool-devel | |
parent | 89a7d6ecbdde724b92ca6650493f56cf68855f35 (diff) | |
download | freebsd-ports-gnome-f8357b5cbaa160ccdf9943cac099f5e092c591da.tar.gz freebsd-ports-gnome-f8357b5cbaa160ccdf9943cac099f5e092c591da.tar.zst freebsd-ports-gnome-f8357b5cbaa160ccdf9943cac099f5e092c591da.zip |
- Fix missing library problems when the linker enforces explicit linking
PR: 192062
Exp-run by: antoine
Approved by: portmgr (antoine)
Diffstat (limited to 'science/chemtool-devel')
-rw-r--r-- | science/chemtool-devel/Makefile | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/science/chemtool-devel/Makefile b/science/chemtool-devel/Makefile index dd33f7af783c..4cbee98e48c4 100644 --- a/science/chemtool-devel/Makefile +++ b/science/chemtool-devel/Makefile @@ -17,26 +17,22 @@ RUN_DEPENDS= transfig:${PORTSDIR}/print/transfig WRKSRC= ${WRKDIR}/${PORTNAME}-1.7alpha15/ USE_GNOME= gtk20 -#USE_AUTOTOOLS= autoconf213 +USE_XORG= x11 GNU_CONFIGURE= yes USES= gettext gmake pkgconfig tar:tgz CONFIGURE_ARGS= --enable-emf=yes PKGNAMESUFFIX= -devel MAKE_ARGS+= MAKE=${MAKE_CMD} MAKE_JOBS_UNSAFE= yes -#to include emf -CFLAGS+= -I${LOCALBASE}/include/libEMF -CXXFLAGS+= -I${LOCALBASE}/include/libEMF +CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/libEMF +LIBS+= -L${LOCALBASE}/lib post-patch: - @${REINPLACE_CMD} -e 's+%%LOCALBASE%%+${LOCALBASE}+g;' ${WRKSRC}/configure.in - @${REINPLACE_CMD} -e 's+%%LOCALBASE%%+${LOCALBASE}+g;' ${WRKSRC}/configure + @${REINPLACE_CMD} 's/-lstdc++//' ${WRKSRC}/configure + @${REINPLACE_CMD} '/^SYS_LIBRARIES =/s/$$/ -lX11/' ${WRKSRC}/Makefile.in post-install: - @(cd ${WRKSRC}; \ - ${MKDIR} ${STAGEDIR}${PREFIX}/share/examples/chemtool/; \ - cd ${WRKSRC}/examples/; \ - ${INSTALL_DATA} * ${STAGEDIR}${PREFIX}/share/examples/chemtool; \ - ) + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} .include <bsd.port.mk> |