Skip to content

Instantly share code, notes, and snippets.

@jperkin
Created March 13, 2013 16:35
Show Gist options
  • Save jperkin/5153873 to your computer and use it in GitHub Desktop.
Save jperkin/5153873 to your computer and use it in GitHub Desktop.
vowpal_wabbit package
Add a description here :)
$NetBSD$
SHA1 (patch-vowpalwabbit_nn.cc) = 80da95ea262fc49a809733eeac8d335876307ff0
# $NetBSD$
#
DISTNAME= vowpal_wabbit-7.2
CATEGORIES= # XXX: dunno, devel?
MAINTAINER= pkgsrc-users@netbsd.org
HOMEPAGE= https://github.com/JohnLangford/vowpal_wabbit/wiki
COMMENT= Vowpal Wabbit - a fast online learning algorithm
#LICENSE= XXX: BSD-ish?
GIT_REPOSITORIES= master
GIT_REPO.master= git://github.com/JohnLangford/${PKGBASE}.git
GIT_MODULE.master= ${PKGBASE}
GIT_TAG.master= v7.2
GNU_CONFIGURE= yes
USE_LANGUAGES= c c++
USE_TOOLS+= aclocal autoheader autoconf automake
WRKSRC= ${WRKDIR}/${PKGBASE}
LIBS.SunOS+= -lsocket -lnsl
pre-configure:
cd ${WRKSRC} && \
${PREFIX}/bin/libtoolize -fc && \
aclocal -I acinclude.d && \
autoheader && \
automake -ac && \
autoconf
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../wip/mk/git-package.mk"
.include "../../mk/bsd.pkg.mk"
$NetBSD$
Need alloca.h on SunOS
--- vowpalwabbit/nn.cc.orig 2013-03-13 15:22:34.000000000 +0000
+++ vowpalwabbit/nn.cc
@@ -3,6 +3,9 @@ Copyright (c) by respective owners inclu
individual contributors. All rights reserved. Released under a BSD (revised)
license as described in the file LICENSE.
*/
+#ifdef __sun
+#include <alloca.h>
+#endif
#include <float.h>
#include <math.h>
#include <stdio.h>
@comment $NetBSD$
bin/active_interactor
bin/library_example
bin/spanning_tree
bin/vw
include/vowpalwabbit/allreduce.h
include/vowpalwabbit/vw.h
lib/liballreduce.la
lib/libvw.la
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment