openbsd-ports/graphics/fxtv/patches/patch-Makefile
naddy 87674e8f6a Complete overhaul of this port.
Submitted by Wilbern Cobb <vedge@csoft.org>.
2002-02-02 00:52:18 +00:00

69 lines
2.1 KiB
Plaintext

$OpenBSD: patch-Makefile,v 1.2 2002/02/02 00:52:18 naddy Exp $
--- Makefile.orig Mon Feb 12 18:08:59 2001
+++ Makefile Wed Aug 15 13:46:30 2001
@@ -50,8 +50,11 @@ endif
ifeq ($(OS),NetBSD)
override RPATH_FLAG = -R
endif
+ifeq ($(OS),OpenBSD)
+ override RPATH_FLAG = -rpath
+ override LD_INC += -L$(X11BASE)/lib -L$(LOCALBASE)/lib
+endif
-override LD_INC = $(foreach dir,$(LIBDIRS),-Wl,-L,$(dir))
ifneq ($(RPATH_FLAG),)
override LD_INC += $(foreach dir,$(LIBDIRS),-Wl,$(RPATH_FLAG),$(dir))
endif
@@ -60,9 +63,9 @@ endif
# CFLAGS
#
ifneq ($(DEBUG),NO)
- override CFLAGS = -DDEBUG -g
+ override CFLAGS += -DDEBUG -g
else
- override CFLAGS = -DNDEBUG -O2
+ override CFLAGS += -DNDEBUG
endif
C_WARN_FLAG = -Wall
override CFLAGS += $(C_WARN_FLAG) $(INC) $(CF_VERS)
@@ -73,9 +76,10 @@ endif
override CFLAGS += $(C_WARN_FLAG) -DX11BASE=\"$(X11BASEINST)\"
ifeq ($(OS), linux)
-override CFLAGS = $(CFLAGS) -DOLD_TUNER_IFACE
+override CFLAGS += -DOLD_TUNER_IFACE
endif
+
#
# LDFLAGS,LIBS
#
@@ -98,6 +102,11 @@ override PIXMAPS = $(wildcard
override CSRCOBJ = $(CSRC:%.c=%.o)
override EXEC = fxtv
+ifeq ($(OS), OpenBSD)
+override FXTV_LIBDIR = $(LOCALBASE)/share/fxtv
+override CFLAGS += -DFXTV_LIBDIR=\"$(FXTV_LIBDIR)/%T/%N\"
+endif
+
all : $(EXEC)
%.o : %.c
@@ -118,13 +127,14 @@ tv.o : tv.c app_rsrc.h
install : fxtv
mkdir -p $(FXTV_LIBDIR)/bitmaps
install -c -m 444 -o root $(PIXMAPS) $(FXTV_LIBDIR)/bitmaps
- install -c -m 444 -o root README $(FXTV_LIBDIR)
mkdir -p $(X11BASEINST)/lib/X11/app-defaults
install -c -m 444 -o root Fxtv $(X11BASEINST)/lib/X11/app-defaults
mkdir -p $(X11BASEINST)/bin
install -c -m 444 -o root fxtv.1 $(X11BASEINST)/man/man1/fxtv.1
install -c -m 555 -o root fxtv $(X11BASEINST)/bin
install -c -m 555 -o root fxtv_cnvt.sh $(FXTV_LIBDIR)
+ mkdir -p $(X11BASEINST)/share/doc/fxtv
+ install -c -m 444 -o root README $(X11BASEINST)/share/doc/fxtv
clean:
rm -f *.o fxtv *.core *~