updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / fblogo / fblogo-0.5.2-cross.patch
blobb7c962e4244681c5df6703e92971a9e2a4544dad
1 --- Makefile 2003-09-28 10:33:24.000000000 +0000
2 +++ Makefile 2008-05-18 19:05:12.000000000 +0000
3 @@ -1,24 +1,28 @@
4 -CC = gcc
5 +CC ?= gcc
6 LIBS = -lpng -lz -lm
7 -CFLAGS = -g -O2 -W -Wall -DPNG_SETJMP_NOT_SUPPORTED
9 +CFLAGS ?= -g -O2 -W -Wall
10 +CFLAGS += -DPNG_SETJMP_NOT_SUPPORTED
11 +LDFLAGS =
12 -INSTALL = /usr/bin/install
13 +INSTALL = /bin/install
14 INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644
15 INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755
16 INSTALL_SCRIPT = $(INSTALL) -p -o root -g root -m 755
18 DESTDIR =
19 -PREFIX = /usr/local
20 +PREFIX = /usr
21 BINDIR = ${PREFIX}/bin
22 MANDIR = ${PREFIX}/share/man
24 fblogo: fblogo.c
25 - $(CC) -o fblogo $(CFLAGS) $(INCLUDES) $(LIBS) fblogo.c
26 + $(CC) -o fblogo $(CFLAGS) $(INCLUDES) $(LDFLAGS) $(LIBS) fblogo.c
28 clean::
29 -rm -f *.o fblogo
31 install:
32 + mkdir -p ${DESTDIR}${PREFIX}
33 + mkdir -p ${DESTDIR}${BINDIR}
34 + mkdir -p ${DESTDIR}${MANDIR}/man1
35 ${INSTALL_PROGRAM} fblogo ${DESTDIR}${BINDIR}
36 ${INSTALL_SCRIPT} fblogo_patch ${DESTDIR}${BINDIR}
37 ${INSTALL_FILE} fblogo.1 ${DESTDIR}${MANDIR}/man1