1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/french/gfaim/files/patch-Makefile
2004-04-06 08:51:40 +00:00

35 lines
940 B
Plaintext

--- Makefile.orig Tue Nov 21 11:35:22 2000
+++ Makefile Tue Apr 6 08:48:34 2004
@@ -1,18 +1,19 @@
-CC=gcc
-DATADIR=/usr/lib/gfaim
-gfaim: gfaim.c
- $(CC) -DDATADIR="\"$(DATADIR)\"" `gtk-config --cflags` gfaim.c -o gfaim `gtk-config --libs`
+CFLGS= ${CFLAGS} `${GTK_CONFIG} --cflags`
+LIBS= `${GTK_CONFIG} --libs` ${LDFLAGS}
+
+all: gfaim.c
+ $(CC) -DDATADIR="\"$(DATADIR)\"" ${CFLGS} gfaim.c -o gfaim ${LIBS}
clean:
rm -f *.o gfaim
install:
- install -g bin -m 755 gfaim /usr/bin
- install -g bin -m 755 imprec /usr/bin
- install -d $(DATADIR)
- install *.dat *.idx -m 644 $(DATADIR)
- install *.txt /usr/doc/gfaim
-
-
-
+ ${BSD_INSTALL_PROGRAM} gfaim $(PREFIX)/bin
+ ${BSD_INSTALL_SCRIPT} imprec $(PREFIX)/bin
+ install -d $(PREFIX)/lib/gfaim
+ ${BSD_INSTALL_DATA} *.dat *.idx $(PREFIX)/lib/gfaim
+.if !defined(NOPORTDOCS)
+ install -d $(PREFIX)/share/doc/gfaim
+ ${BSD_INSTALL_DATA} *.txt $(PREFIX)/share/doc/gfaim
+.endif