1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/graphics/dynamechs/Makefile
Niclas Zeising be6c15b5c6 Add USES=xorg USES=gl, ports categories g
Add USES=xorg and USES=gl to ports in categories starting with 'g'.
While here, try to sprinkle other USES (mostly gnome and sdl) as needed.
2019-11-05 22:16:14 +00:00

42 lines
1.0 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= dynamechs
PORTVERSION= 4.0.p1
PORTREVISION= 8
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
USES= gl gmake perl5 shebangfix tar:bzip2
USE_GL= glut
USE_PERL5= build
SHEBANG_FILES= make/*.pl
MAKE_ENV= OPENGLINCDIR="${LOCALBASE}/include" \
OPENGLLIBDIR="${LOCALBASE}/lib"
ALL_TARGET= freebsd
USE_LDCONFIG= yes
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>