Skip to content

Instantly share code, notes, and snippets.

From 6da5bec9ab40f1ea17bfb1812cacd6ffbd854d0c Mon Sep 17 00:00:00 2001
From: Thibault Payet <monwarez@gmail.com>
Date: Sun, 30 Apr 2023 15:13:02 +0200
Subject: [PATCH] Use FreeBSD version of hidapi instead of the bundled one
---
makefile | 19 +++++-
python/libusbsio/libusbsio.py | 10 +++
src/hid_api/freebsd/hid.c | 102 ++++++++++++++++++++++++++++++
src/hid_api/freebsd/hidapi_mock.h | 55 ++++++++++++++++
@monwarez
monwarez / name.oct
Last active June 22, 2017 21:03
mean curve
for f = 1:length(file)
...
end
% init at the first curve data
BRMean = Data(1).BR
lg2Mean = Data(1).lg2
% accumulate the rest of data
@monwarez
monwarez / news-ad
Created October 10, 2016 14:43
gak news
Halloween is here once again. An old friend has returned to us from his travels all over Gasaron.
The ancient skeleton Gak can be found in the woodlands of Argaes looking to feast on as much candy as he possibly
can before Halloween night. You will be able to collect candy that was stolen and scattered all over the world.
All kinds of creatures have been greedily hoarding this candy. It's your mission to claim it back and make sure Gak is satisfied.
In exchange, you will be rewarded on and after October 31st with some wonderful items that Gak has collected over
the past few years.
build started at Tue Jul 19 13:57:03 CEST 2016
port directory: /usr/ports/games/manaplus
building for: FreeBSD 102amd64-default 10.2-RELEASE-p14 FreeBSD 10.2-RELEASE-p14 amd64
maintained by: monwarez@mailoo.org
Makefile ident: $FreeBSD: head/games/manaplus/Makefile 418687 2016-07-18 05:25:03Z mva $
Poudriere version: 3.1.14
Host OSVERSION: 1003504
Jail OSVERSION: 1002000
---Begin Environment---
build started at Sun Apr 3 09:29:35 CEST 2016
port directory: /usr/ports/games/megaglest
building for: FreeBSD 102amd64-default 10.2-RELEASE-p8 FreeBSD 10.2-RELEASE-p8 amd64
maintained by: monwarez@mailoo.org
Makefile ident: $FreeBSD: head/games/megaglest/Makefile 412346 2016-04-01 14:00:51Z mat $
Poudriere version: 3.1.12
Host OSVERSION: 1003500
Jail OSVERSION: 1002000
---Begin Environment---
This file has been truncated, but you can view the full file.
===> rigsofrods-0.4.5.1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by rigsofrods-0.4.5.1 for building
===> Extracting for rigsofrods-0.4.5.1
=> SHA256 Checksum OK for RigsOfRods-rigs-of-rods-0.4.5.1-a2ae9d9_GH0.tar.gz.
===> Patching for rigsofrods-0.4.5.1
===> Applying FreeBSD patches for rigsofrods-0.4.5.1
===> rigsofrods-0.4.5.1 depends on file: /usr/local/lib/libPagedGeometry.a - found
===> rigsofrods-0.4.5.1 depends on file: /usr/local/lib/libMyGUI.OgrePlatform.a - found
===> rigsofrods-0.4.5.1 depends on file: /usr/local/lib/libSocketW.a - found
===> rigsofrods-0.4.5.1 depends on file: /usr/local/bin/cmake - found
@monwarez
monwarez / patch-CMakeLists.txt
Created June 11, 2016 14:07
RoR patching for FreeBSD
--- CMakeLists.txt.orig 2016-03-22 21:30:39 UTC
+++ CMakeLists.txt
@@ -115,7 +115,7 @@ ELSEIF(UNIX)
set(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL} -Os -ffast-math -DNDEBUG")
set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG}")
- set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE}")
+ set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} -lintl")
set(CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO "${CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO}")
@monwarez
monwarez / patch-CMakeLists.txt
Created June 11, 2016 13:50
Ogre3d FreeBSD port diff
--- CMakeLists.txt.orig 2013-12-01 18:28:12.000000000 +0100
+++ CMakeLists.txt 2014-03-11 21:56:26.000000000 +0100
@@ -102,9 +102,9 @@
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse")
endif ()
# This is a set of sensible warnings that provide meaningful output
- set(OGRE_WARNING_FLAGS "-Wall -Winit-self -Wno-overloaded-virtual -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter -Wshadow -Wno-missing-field-initializers -Wno-long-long")
+ set(OGRE_WARNING_FLAGS "-Wall -Winit-self -Wno-overloaded-virtual -Wcast-qual -Wwrite-strings -Wno-unused-parameter -Wshadow -Wno-missing-field-initializers -Wno-long-long")
if (NOT APPLE)
- set(OGRE_WARNING_FLAGS "${OGRE_WARNING_FLAGS} -Wno-unused-but-set-parameter")