2 # Build script for openvswitch
7 ROOT=/tmp/opflex-prefix
13 ./configure --prefix="$ROOT" --enable-shared
15 DESTDIR=`pwd`/$DESTDIR make install
17 # OVS headers get installed to weird and inconsistent locations. Try
19 mkdir -p $DESTDIR/$ROOT/include/openvswitch/openvswitch
20 mv $DESTDIR/$ROOT/include/openvswitch/*.h $DESTDIR/$ROOT/include/openvswitch/openvswitch
21 mv $DESTDIR/$ROOT/include/openflow $DESTDIR/$ROOT/include/openvswitch
22 cp -t "$DESTDIR/$ROOT/include/openvswitch/" include/*.h
23 find lib -name "*.h" -exec cp --parents -t "$DESTDIR/$ROOT/include/openvswitch/" {} \;
26 tar -czf openvswitch.tgz *