Browse Source

Merge pull request #81 from herrhotzenplotz/freebsd-build-fix

FreeBSD Makefile and include fixes
Alexey Kutepov 5 years ago
parent
commit
ca382a2662
2 changed files with 5 additions and 4 deletions
  1. 4 4
      Makefile
  2. 1 0
      src/vodus.cpp

+ 4 - 4
Makefile

@@ -1,10 +1,10 @@
 VODUS_PKGS=freetype2 libavcodec libavutil
-VODUS_CXXFLAGS=-Wall -fno-exceptions -std=c++17 -ggdb $(shell pkg-config --cflags $(VODUS_PKGS))
-VODUS_LIBS=$(shell pkg-config --libs $(VODUS_PKGS)) -lgif
+VODUS_CXXFLAGS=-Wall -fno-exceptions -std=c++17 -ggdb `pkg-config --cflags $(VODUS_PKGS)`
+VODUS_LIBS=`pkg-config --libs $(VODUS_PKGS)` -lgif
 
 EMOTE_DOWNLOADER_PKGS=libcurl
-EMOTE_DOWNLOADER_CXXFLAGS=-Wall -fno-exceptions -std=c++17 -ggdb $(shell pkg-config --cflags $(EMOTE_DOWNLOADER_PKGS))
-EMOTE_DOWNLOADER_LIBS=$(shell pkg-config --libs $(EMOTE_DOWNLOADER_PKGS))
+EMOTE_DOWNLOADER_CXXFLAGS=-Wall -fno-exceptions -std=c++17 -ggdb `pkg-config --cflags $(EMOTE_DOWNLOADER_PKGS)`
+EMOTE_DOWNLOADER_LIBS=`pkg-config --libs $(EMOTE_DOWNLOADER_PKGS)`
 
 RENDER_ARGS=--font assets/ComicNeue_Bold.otf --output output.mpeg --font-size 46 --fps 30 --width 600 --height 1080 --limit 20 sample.txt --bitrate 6000000
 

+ 1 - 0
src/vodus.cpp

@@ -2,6 +2,7 @@
 #include <cstdio>
 #include <cstdint>
 #include <cmath>
+#include <ctime>
 
 #include <algorithm>