93af1da5f0
- Add patches to work with vdr set to "Show channel names with source". - Convert Makefile header.
43 lines
1,021 B
Text
43 lines
1,021 B
Text
--- a/command/Makefile
|
|
+++ b/command/Makefile
|
|
@@ -16,6 +16,10 @@ CXXFLAGS ?= -g -rdynamic -O3 -funroll-lo
|
|
PKG-CONFIG ?= pkg-config
|
|
STRIP ?= strip
|
|
|
|
+ifdef FREEBSD
|
|
+LIBS+=-lintl -lexecinfo
|
|
+endif
|
|
+
|
|
### Includes and Defines (add further entries here):
|
|
|
|
PKG-LIBS += libavcodec libavutil
|
|
@@ -86,17 +90,29 @@ markad: $(OBJS)
|
|
$(CXX) $(CXXFLAGS) $(OBJS) $(LIBS) -o $@
|
|
|
|
|
|
+ifdef FREEBSD
|
|
+MANDIR = $(PREFIX)/man
|
|
+else
|
|
MANDIR = $(DESTDIR)/usr/share/man
|
|
+endif
|
|
install-doc:
|
|
@mkdir -p $(MANDIR)/man1
|
|
@gzip -c markad.1 > $(MANDIR)/man1/markad.1.gz
|
|
|
|
install: install-doc markad $(I18Nmsgs)
|
|
+ifdef FREEBSD
|
|
+ @mkdir -p $(PREFIX)/bin
|
|
+ @cp -f markad $(PREFIX)/bin/markad
|
|
+ @$(STRIP) $(PREFIX)/bin/markad
|
|
+ @mkdir -p $(DATADIR)/logos
|
|
+ @cp logos/* $(DATADIR)/logos
|
|
+else
|
|
@mkdir -p $(DESTDIR)/usr/bin
|
|
@cp --remove-destination markad $(DESTDIR)/usr/bin/markad
|
|
@$(STRIP) $(DESTDIR)/usr/bin/markad
|
|
@mkdir -p $(DESTDIR)/var/lib/markad
|
|
@cp -a logos/* $(DESTDIR)/var/lib/markad
|
|
+endif
|
|
@echo markad installed
|
|
|
|
clean:
|