source: trunk/dports/sysutils/tmux/files/GNUmakefile.diff @ 49988

Last change on this file since 49988 was 49988, checked in by toby@…, 11 years ago

tmux 0.8

File size: 1.5 KB
  • GNUmakefile

    old new  
    4646      osdep-unknown.c osdep-openbsd.c osdep-freebsd.c osdep-linux.c \
    4747      osdep-darwin.c attributes.c
    4848
    49 CC?= gcc
    50 INCDIRS+= -I. -I-
    51 CFLAGS+= -DBUILD="\"$(VERSION) ($(DATE))\"" -DMETA="'${META}'"
     49CC= __CC__
     50INCDIRS+= -I.
     51CFLAGS+= __CFLAGS__ -DBUILD="\"$(VERSION) ($(DATE))\"" -DMETA="'${META}'"
    5252ifdef FDEBUG
    5353CFLAGS+= -g -ggdb -DDEBUG
    5454LDFLAGS+= -rdynamic
     
    6161CFLAGS+= -Wundef -Wbad-function-cast -Winline -Wcast-align
    6262endif
    6363
    64 LDFLAGS+=
     64LDFLAGS+= __LDFLAGS__
    6565LIBS+= -lncurses
    6666
    67 PREFIX?= /usr/local
     67PREFIX?= __PREFIX__
    6868INSTALLDIR= install -d
    69 INSTALLBIN= install -g bin -o root -m 555
    70 INSTALLMAN= install -g bin -o root -m 444
     69INSTALLBIN= install -m 555
     70INSTALLMAN= install -m 444
    7171
    7272ifeq ($(shell uname),AIX)
    7373INCDIRS+= -I/usr/local/include/ncurses -Icompat
     
    103103endif
    104104
    105105ifeq ($(shell uname),Darwin)
    106 INCDIRS+= -Icompat
    107106SRCS+= compat/strtonum.c compat/bsd-poll.c compat/vis.c
    108107CFLAGS+= -DNO_STRTONUM -DNO_SETRESUID -DNO_SETRESGID -DNO_SETPROCTITLE \
    109108         -DNO_QUEUE_H -DNO_TREE_H -DBROKEN_POLL
     
    137137install:
    138138        $(INSTALLDIR) $(DESTDIR)$(PREFIX)/bin
    139139        $(INSTALLBIN) $(PROG) $(DESTDIR)$(PREFIX)/bin/$(PROG)
    140         $(INSTALLDIR) $(DESTDIR)$(PREFIX)/man/man1
    141         $(INSTALLMAN) $(PROG).1 $(DESTDIR)$(PREFIX)/man/man1/$(PROG).1
     140        $(INSTALLDIR) $(DESTDIR)$(PREFIX)/share/man/man1
     141        $(INSTALLMAN) $(PROG).1 $(DESTDIR)$(PREFIX)/share/man/man1/$(PROG).1
    142142
    143143clean:
    144144        rm -f $(CLEANFILES)
Note: See TracBrowser for help on using the repository browser.