diff options
| author | Fabian Affolter <fabian@affolter-engineering.ch> | 2012-02-23 20:45:53 +0000 |
|---|---|---|
| committer | Fabian Affolter <fabian@affolter-engineering.ch> | 2012-02-23 20:45:53 +0000 |
| commit | 263dddb3205e221f0f42aa8f3d4fefd1e58a0772 (patch) | |
| tree | 12537f106679ed0e973f5e4dc92f3adff6b12b9e /testing/dhex/makefile.patch | |
| parent | 8ad232a8ec169af538a4664f90761191eeb71bce (diff) | |
| parent | d6bf8e6ceffe191bda5bb535d5f9f9d118f3daea (diff) | |
| download | aports-263dddb3205e221f0f42aa8f3d4fefd1e58a0772.tar.bz2 aports-263dddb3205e221f0f42aa8f3d4fefd1e58a0772.tar.xz | |
Merge branch 'master' of git://git.alpinelinux.org/aports
Diffstat (limited to 'testing/dhex/makefile.patch')
| -rw-r--r-- | testing/dhex/makefile.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/testing/dhex/makefile.patch b/testing/dhex/makefile.patch new file mode 100644 index 000000000..9e7788b40 --- /dev/null +++ b/testing/dhex/makefile.patch @@ -0,0 +1,49 @@ +--- ./Makefile.orig ++++ ./Makefile +@@ -1,12 +1,22 @@ +-CC= gcc +-LDFLAGS= -L/usr/lib -L/usr/local/lib -L/usr/lib/ncurses -L/usr/local/lib/ncurses ++CC?= gcc ++LDFLAGS?= -L/usr/lib -L/usr/local/lib -L/usr/lib/ncurses -L/usr/local/lib/ncurses + CPPFLAGS= -I/usr/include -I/usr/local/include -I/usr/include/ncurses -I/usr/local/include/ncurses +-CFLAGS= -O3 -Wall -std=c99 ++CFLAGS?= -O3 -Wall -std=c99 + #CFLAGS+= -ffunction-sections -fdata-sections + #LDFLAGS+= --gc-sections + LIBS= -lncurses +-DESTDIR= /usr/local/ + ++prefix= /usr/local ++bindir= $(prefix)/bin ++mandir= $(prefix)/man ++man1dir= $(mandir)/man1 ++man5dir= $(mandir)/man5 ++DESTDIR= ++ ++MKDIR_P= install -d ++INSTALL= install ++ ++ + OFILES=buffers.o \ + configfile.o \ + correlation.o \ +@@ -27,14 +37,11 @@ + $(CC) $(LDFLAGS) -o $@ $(OFILES) $(LIBS) + + install:all +- strip dhex +- cp dhex $(DESTDIR)/bin +- cp dhex.1 $(DESTDIR)/man/man1 +- cp dhexrc.5 $(DESTDIR)/man/man5 +- cp dhex_markers.5 $(DESTDIR)/man/man5 +- cp dhex_searchlog.5 $(DESTDIR)/man/man5 +- +- ++ $(MKDIR_P) $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir) $(DESTDIR)$(man5dir) ++ $(INSTALL) -m755 dhex $(DESTDIR)$(bindir) ++ $(INSTALL) -m644 dhex.1 $(DESTDIR)$(man1dir) ++ $(INSTALL) -m644 dhexrc.5 dhex_markers.5 dhex_searchlog.5 \ ++ $(DESTDIR)$(man5dir) + + .c.o: + $(CC) $< -c -I. $(CPPFLAGS) $(CFLAGS) $(OPTIONS) |
