abinfo "Building MuJS ..."
# Note: OPTIM is referenced after CFLAGS in the Makefile, use the former
# instead to make sure it gets applied.
make \
    OPTIM="${CPPFLAGS} ${CFLAGS} ${LDFLAGS}"

abinfo "Installing MuJS ..."
make install \
    OPTIM="${CPPFLAGS} ${CFLAGS} ${LDFLAGS}" \
    DESTDIR="$PKGDIR" \
    prefix=/usr

abinfo "Install MuJS (shared libraries) ..."
make install-shared \
    OPTIM="${CPPFLAGS} ${CFLAGS} ${LDFLAGS}" \
    DESTDIR="$PKGDIR" \
    prefix=/usr
