dev-libs/libtickit-0.3.4: add
[sgilles-overlay.git] / dev-libs / libtickit / files / libtickit-0.3.4-change-makefile.patch
blobcdbac7e3ed06124f29706238ebe2b8944212023c
1 diff --git a/Makefile b/Makefile
2 index d8132ee..05c9b39 100644
3 --- a/Makefile
4 +++ b/Makefile
5 @@ -8,16 +8,10 @@ ifneq ($(VERBOSE),1)
6 LIBTOOL +=--quiet
7 endif
9 -override CFLAGS +=-Wall -Iinclude -Isrc -std=c99
10 +CFLAGS ?=
11 +LDFLAGS ?=
13 -ifeq ($(DEBUG),1)
14 - override CFLAGS +=-ggdb -DDEBUG
15 -endif
17 -ifeq ($(PROFILE),1)
18 - override CFLAGS +=-pg
19 - override LDFLAGS+=-pg
20 -endif
21 +CFLAGS += -Iinclude -Isrc -std=c99
23 ifeq ($(shell pkg-config --atleast-version=1.1.0 unibilium && echo 1),1)
24 override CFLAGS +=$(shell pkg-config --cflags unibilium) -DHAVE_UNIBILIUM
25 @@ -48,13 +42,13 @@ VERSION_CURRENT=2
26 VERSION_REVISION=4
27 VERSION_AGE=0
29 -PREFIX=/usr/local
30 -BINDIR=$(PREFIX)/bin
31 -LIBDIR=$(PREFIX)/lib
32 -INCDIR=$(PREFIX)/include
33 -MANDIR=$(PREFIX)/share/man
34 -MAN3DIR=$(MANDIR)/man3
35 -MAN7DIR=$(MANDIR)/man7
36 +PREFIX ?= /usr
37 +BINDIR ?= $(PREFIX)/bin
38 +LIBDIR ?= $(PREFIX)/lib
39 +INCDIR ?= $(PREFIX)/include
40 +MANDIR ?= $(PREFIX)/share/man
41 +MAN3DIR ?= $(MANDIR)/man3
42 +MAN7DIR ?= $(MANDIR)/man7
44 all: $(LIBRARY)
46 @@ -115,7 +109,7 @@ examples/%: examples/%.lo $(LIBRARY)
47 $(LIBTOOL) --mode=link --tag=CC $(CC) -o $@ $^ $(LDFLAGS)
49 .PHONY: install
50 -install: install-inc install-lib install-man
51 +install: install-inc install-lib
52 $(LIBTOOL) --mode=finish $(DESTDIR)$(LIBDIR)
54 install-inc: $(HFILES)