1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/graphics/dynamechs/Makefile
Kenji Takefu 687edfacdc devel/gmake: Update to 4.4.1
Some ports required patches.

PR:		272216
Exp-run by:	antoine
2024-03-03 10:44:21 +01:00

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>