File tree 2 files changed +2
-26
lines changed
2 files changed +2
-26
lines changed Original file line number Diff line number Diff line change 1
- PREFIX = /usr
2
1
LD = ld
3
2
CC = cc
4
3
INSTALL = install
@@ -7,18 +6,7 @@ LDFLAGS =
7
6
VLC_PLUGIN_CFLAGS := $(shell pkg-config --cflags vlc-plugin)
8
7
VLC_PLUGIN_LIBS := $(shell pkg-config --libs vlc-plugin)
9
8
10
- libdir = $(PREFIX ) /lib
11
-
12
- # Slackware and openSUSE use /usr/lib64 on x86_64
13
- ARCH =$(shell uname -m)
14
- ifeq ($(ARCH ) , x86_64)
15
- lib64Test =$(shell grep -E "Slackware|openSUSE" /etc/* -release | wc -l)
16
- ifneq ($(lib64Test), 0)
17
- libdir = $(PREFIX ) /lib64
18
- endif
19
- endif
20
-
21
- plugindir = $(libdir ) /vlc/plugins
9
+ plugindir := $(shell pkg-config vlc-plugin --variable=pluginsdir)
22
10
23
11
override CC += -std=gnu99
24
12
override CPPFLAGS += -DPIC -I. -Isrc
Original file line number Diff line number Diff line change 1
- PREFIX = /usr
2
1
LD = ld
3
2
CC = cc
4
3
INSTALL = install
@@ -7,18 +6,7 @@ LDFLAGS =
7
6
VLC_PLUGIN_CFLAGS := $(shell pkg-config --cflags vlc-plugin)
8
7
VLC_PLUGIN_LIBS := $(shell pkg-config --libs vlc-plugin)
9
8
10
- libdir = $(PREFIX ) /lib
11
-
12
- # Slackware and openSUSE use /usr/lib64 on x86_64
13
- ARCH =$(shell uname -m)
14
- ifeq ($(ARCH ) , x86_64)
15
- lib64Test =$(shell grep -E "Slackware|openSUSE" /etc/* -release | wc -l)
16
- ifneq ($(lib64Test), 0)
17
- libdir = $(PREFIX ) /lib64
18
- endif
19
- endif
20
-
21
- plugindir = $(libdir ) /vlc/plugins
9
+ plugindir := $(shell pkg-config vlc-plugin --variable=pluginsdir)
22
10
23
11
override CC += -std=gnu99
24
12
override CPPFLAGS += -DPIC -I. -Isrc
You can’t perform that action at this time.
0 commit comments