1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
$NetBSD: patch-Makefile.in,v 1.1 2015/11/17 14:56:07 jmcneill Exp $
--- Makefile.in.orig 2015-10-19 06:31:15.000000000 +0000
+++ Makefile.in
@@ -169,6 +169,10 @@ ifeq ($(findstring freebsd,@ARCH@),freeb
DIRECTORY_ARCHIVES += xbmc/freebsd/freebsd.a
endif
+ifeq ($(findstring netbsd,@ARCH@),netbsd)
+DIRECTORY_ARCHIVES += xbmc/freebsd/freebsd.a
+endif
+
ifeq (@HAVE_XBMC_NONFREE@,1)
DIRECTORY_ARCHIVES += lib/UnrarXLib/UnrarXLib.a
endif
@@ -436,6 +440,11 @@ ifeq ($(findstring freebsd,@ARCH@),freeb
DYNOBJSXBMC+= xbmc/freebsd/freebsd.a
endif
+ifeq ($(findstring netbsd,@ARCH@),netbsd)
+DYNOBJSXBMC+= xbmc/freebsd/freebsd.a
+endif
+
+
ifeq (@USE_STATIC_FFMPEG@,1)
FFMPEGOBJS = @FFMPEG_LIBDIR@/libavcodec.a \
@FFMPEG_LIBDIR@/libavfilter.a \
@@ -535,6 +544,14 @@ ifeq ($(findstring freebsd,@ARCH@), free
-exec install "{}" $(DESTDIR)$(libdir)/@APP_NAME_LC@/"{}" \; \
-exec printf " -- %-75.75s\r" "{}" \;
else
+ifeq ($(findstring netbsd,@ARCH@), netbsd)
+ @find -E system addons -type f ! -iregex ".*\.git.*" \
+ -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs" \
+ -exec sh -c "install -d \"$(DESTDIR)$(libdir)/@APP_NAME_LC@/\`dirname '{}'\`\"" \; \
+ -and \
+ -exec install "{}" $(DESTDIR)$(libdir)/@APP_NAME_LC@/"{}" \; \
+ -exec printf " -- %-75.75s\r" "{}" \;
+else
ifeq ($(findstring Darwin,$(shell uname -s)),Darwin)
@find -E system addons -type f -not -iregex ".*\.git.*" \
-iregex ".*@ARCH@.*|.*\.vis|.*\.xbs" \
@@ -547,6 +564,7 @@ else
@find -L addons -regextype posix-extended -type f -not -iregex ".*\.git.*" -iregex ".*\.so|.*\.so\.[0-9].*" -exec cp -d "{}" $(DESTDIR)$(libdir)/@APP_NAME_LC@/"{}" \; -printf " -- %-75.75f\r"
endif
endif
+endif
install-scripts:
@install -d $(DESTDIR)$(bindir)
@@ -570,7 +588,7 @@ install-datas: install-scripts
@echo "Copying system files to $(DESTDIR)$(datarootdir)/@APP_NAME_LC@"
@install -d $(DESTDIR)$(datarootdir)/@APP_NAME_LC@
@# Arch independent files
-ifeq ($(findstring bsd,@ARCH@), bsd)
+ifeq ($(findstring freebsd,@ARCH@), freebsd)
@find -E addons media userdata system -type f \
-not -iregex ".*-@ARCH@.*|.*\.vis|.*\.xbs|.*\.git.*|.*\.so|.*\.so\.[0-9].*|.*\.dll|$(subst ${space},|,$(INSTALL_FILTER))" \
-exec sh -c "install -d \"$(DESTDIR)$(datarootdir)/@APP_NAME_LC@/\`dirname '{}'\`\"" \; \
@@ -578,6 +596,14 @@ ifeq ($(findstring bsd,@ARCH@), bsd)
-exec install -m 0644 "{}" $(DESTDIR)$(datarootdir)/@APP_NAME_LC@/"{}" \; \
-exec printf " -- %-75.75s\r" "{}" \;
else
+ifeq ($(findstring netbsd,@ARCH@), netbsd)
+ @find -E addons media userdata system -type f \
+ ! -iregex ".*-@ARCH@.*|.*\.vis|.*\.xbs|.*\.git.*|.*\.so|.*\.so\.[0-9].*|.*\.dll|$(subst ${space},|,$(INSTALL_FILTER))" \
+ -exec sh -c "install -d \"$(DESTDIR)$(datarootdir)/@APP_NAME_LC@/\`dirname '{}'\`\"" \; \
+ -and \
+ -exec install -m 0644 "{}" $(DESTDIR)$(datarootdir)/@APP_NAME_LC@/"{}" \; \
+ -exec printf " -- %-75.75s\r" "{}" \;
+else
ifeq ($(findstring Darwin,$(shell uname -s)),Darwin)
@find -E addons media userdata system -type f \
-not -iregex ".*-@ARCH@.*|.*\.vis|.*\.xbs|.*\.git.*|.*\.so|.*\.so\.[0-9].*|.*\.dll|$(subst ${space},|,$(INSTALL_FILTER))" \
@@ -589,6 +615,7 @@ else
@find addons media userdata system -regextype posix-extended -type f -not -iregex ".*-@ARCH@.*|.*\.vis|.*\.xbs|.*\.git.*|.*\.so|.*\.so\.[0-9].*|.*\.dll|$(subst ${space},|,$(INSTALL_FILTER))" -exec install -D -m 0644 "{}" $(DESTDIR)$(datarootdir)/@APP_NAME_LC@/"{}" \; -printf " -- %-75.75f\r"
endif
endif
+endif
@# Icons and links
@install -d $(DESTDIR)$(datarootdir)/applications
@install -m 0644 tools/Linux/@APP_NAME_LC@.desktop $(DESTDIR)$(datarootdir)/applications/@APP_NAME_LC@.desktop
|