openbsd-ports/devel/ode/Makefile
2010-10-24 20:58:58 +00:00

45 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.4 2010/10/24 21:10:58 ajacoutot Exp $
COMMENT = high performance library for simulating rigid body dynamics
SHARED_LIBS += ode 0.0 # .2.1
DISTNAME = ode-0.11.1
REVISION = 1
CATEGORIES = devel
MAINTAINER = Jonathan Armani <armani@openbsd.org>
HOMEPAGE = http://www.ode.org/
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=opende/}
EXTRACT_SUFX = .tar.bz2
# LGPLv2.1
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB += GL GLU ICE SM X11 Xau Xdamage Xdmcp Xext Xfixes Xxf86vm c drm m
WANTLIB += pthread pthread-stubs stdc++ xcb
USE_LIBTOOL = Yes
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --enable-shared
CONFIGURE_ENV+= CPPFLAGS="-I${X11BASE}/include" \
LDFLAGS="-L${X11BASE}/lib" \
LIBS="-lm"
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ode
${INSTALL_DATA} ${WRKSRC}/LICENSE.TXT ${PREFIX}/share/doc/ode/LICENSE
${INSTALL_DATA} ${WRKSRC}/README.txt ${PREFIX}/share/doc/ode/README
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ode/
${INSTALL_DATA} ${WRKSRC}/ode/demo/.libs/demo_* \
${PREFIX}/share/examples/ode/
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ode/textures/
${INSTALL_DATA} ${WRKSRC}/drawstuff/textures/* \
${PREFIX}/share/examples/ode/textures/
.include <bsd.port.mk>