mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
687edfacdc
Some ports required patches. PR: 272216 Exp-run by: antoine
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
PORTNAME= dynamechs
|
|
PORTVERSION= 4.0.p1
|
|
PORTREVISION= 9
|
|
PORTEPOCH= 1
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/4.0pre1
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION:S/.p/pre/}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Multibody Dynamic Simulation Library
|
|
WWW= https://dynamechs.sourceforge.net/
|
|
|
|
USES= gl gmake perl5 shebangfix tar:bzip2
|
|
USE_CXXSTD= c++14
|
|
USE_GL= glut
|
|
USE_LDCONFIG= yes
|
|
USE_PERL5= build
|
|
|
|
SHEBANG_FILES= make/*.pl
|
|
|
|
MAKE_ENV= OPENGLINCDIR="${LOCALBASE}/include" \
|
|
OPENGLLIBDIR="${LOCALBASE}/lib"
|
|
MAKE_JOBS_UNSAFE=yes
|
|
ALL_TARGET= freebsd
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
's|.SILENT:||' ${WRKSRC}/Makefile
|
|
|
|
do-configure:
|
|
@${CP} -f ${FILESDIR}/make.platform.freebsd ${WRKSRC}/make/
|
|
|
|
do-install:
|
|
.for dir in dm dmu dmGL
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/include/${PORTNAME}/${dir}
|
|
(cd ${WRKSRC}/${dir} && ${FIND} . -name "*.h" -or -name "*.hpp" | \
|
|
${XARGS} -J % ${INSTALL_DATA} % \
|
|
${STAGEDIR}${PREFIX}/include/${PORTNAME}/${dir})
|
|
(cd ${WRKSRC}/lib/platform.freebsd && ${INSTALL_LIB} lib${dir}.so \
|
|
${STAGEDIR}${PREFIX}/lib)
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|