Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,18 @@ SRC = hellpaper.c

TARGET = hellpaper
CFLAGS = -Wall -O2
LIBS = -lraylib -lm #-lGL -lpthread -ldl -lrt

#- mac os need some different flags for raylib
#- see https://github.com/raysan5/raylib/wiki/Working-on-macOS#:~:text=If-,the,-build%20fails%2C%20you
UNAME_S := $(shell uname -s)

ifeq ($(UNAME_S), Darwin)
CFLAGS += -I$(shell brew --prefix raylib)/include
LIBS = -lraylib -lm -L$(shell brew --prefix raylib)/lib -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo
else
LIBS = -lraylib -lm #-lGL -lpthread -ldl -lrt
endif


PREFIX ?= /usr/local
BINDIR = $(PREFIX)/bin
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

<p align="center">
<img
src="https://github.com/user-attachments/assets/29eb2060-3b3b-4bd1-b871-034a5493cec5"
src="https://github.com/user-attachments/assets/bb5d7c6f-f84d-4b92-94ec-a3f434e6cd08"
alt="Preview of Hellpaper"
width="500"
>
<p align="center">A wallpaper picker for Linux, built with Raylib.</p>
<p align="center">A wallpaper picker, built with Raylib.</p>
</p>

## "Features"
Expand Down
7 changes: 7 additions & 0 deletions hellpaper.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@
#include <math.h>
#include <pthread.h>
#include <stdatomic.h>
/*
* sysinfo can only be used on linux and in this code here uses it only at
* one location. sysconf is actually from <unistd.h> which is
* already included
* */
#ifdef __linux__
#include <sys/sysinfo.h>
#endif
#include <ctype.h>
#include <stdarg.h>

Expand Down
Binary file added hellpaper_demo_compressed.mp4
Binary file not shown.