49 lines
1.6 KiB
Text
49 lines
1.6 KiB
Text
$NetBSD: patch-aa,v 1.3 2009/02/18 08:00:37 mlelstv Exp $
|
|
|
|
--- Makefile.orig 2007-06-19 11:30:08.000000000 +0200
|
|
+++ Makefile
|
|
@@ -1,17 +1,17 @@
|
|
VERSION = 0.1.6.8
|
|
DISTNAME = replex-$(VERSION)
|
|
TARNAME = $(DISTNAME).tar.gz
|
|
-INCS = -I..
|
|
-CFLAGS = -g -m32 -Wall -O6 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DVERSION=\"$(VERSION)\"
|
|
-LDFLAGS = -m32
|
|
-LIBS = -L.
|
|
+INCS =
|
|
+CFLAGS = -g -Wall -O2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DVERSION=\"$(VERSION)\"
|
|
+LIBS =
|
|
MFLAG = -M
|
|
OBJS = element.o pes.o mpg_common.o ts.o ringbuffer.o avi.o multiplex.o
|
|
|
|
SRC = avi.c element.c mpg_common.c pes.c replex.c ringbuffer.c ts.c multiplex.c
|
|
HEADERS = element.h pes.h mpg_common.h ts.h ringbuffer.h avi.h replex.h multiplex.h
|
|
EXTRA = COPYING README TODO CHANGES
|
|
-DESTDIR = /usr/local
|
|
+#DESTDIR =
|
|
+#PREFIX = /usr/local
|
|
|
|
|
|
.PHONY: depend clean install uninstall
|
|
@@ -38,14 +38,15 @@ dist: $(SRC) $(HEADERS) Makefile
|
|
%.o: %.c %.h
|
|
$(CC) -c $(CFLAGS) $(INCS) $(DEFINES) $<
|
|
|
|
-install: libreplex.a replex
|
|
- install -m 644 libreplex.a $(DESTDIR)/lib/
|
|
- install -m 755 replex $(DESTDIR)/bin/
|
|
+install: README replex
|
|
+ $(BSD_INSTALL_PROGRAM) replex $(DESTDIR)$(PREFIX)/bin/
|
|
+ $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(PREFIX)/share/doc/replex/
|
|
+ $(BSD_INSTALL_DATA) README $(DESTDIR)$(PREFIX)/share/doc/replex/
|
|
|
|
uninstall:
|
|
- rm -f $(DESTDIR)/lib/libreplex.a
|
|
- rm -f $(DESTDIR)/bin/replex
|
|
-
|
|
+ rm -f $(DESTDIR)$(PREFIX)/share/doc/replex/README
|
|
+ rmdir $(DESTDIR)$(PREFIX)/share/doc/replex
|
|
+ rm -f $(DESTDIR)$(PREFIX)/bin/replex
|
|
|
|
.depend:
|
|
$(CC) $(DEFINES) $(MFLAG) $(SRC) $(CSRC) $(CPPSRC) $(INCS)> .depend
|