From 27bd1b38d326af9732b7567cd6144c0ebb8555a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Wr=C3=B3bel?= Date: Fri, 12 Sep 2014 23:51:52 +0200 Subject: [PATCH] BSD support in Makefile --- GNUmakefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/GNUmakefile b/GNUmakefile index 7353c3a..c52c09a 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -4,9 +4,27 @@ ifndef VLC_SUPPORT VLC_SUPPORT = true endif +ifeq ($(shell uname)),FreeBSD) + BSD = true +endif +ifeq ($(shell uname)),NetBSD) + BSD = true +endif +ifeq ($(shell uname)),OpenBSD) + BSD = true +endif +ifeq ($(shell uname)),DragonFly) + BSD = true +endif + ifeq ($(SINGLE_USER),false) +ifneq ($(BSD),true) BASE_PATH = /usr VLC_LIB_PATH = ${PREFIX}/usr/lib +else + BASE_PATH = /usr/local + VLC_LIB_PATH = ${PREFIX}/usr/local/lib +endif else BASE_PATH = ${HOME}/.local VLC_LIB_PATH = ${HOME}/.local/share