1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00
freebsd-ports/sysutils/hoz/files/patch-src_Makefile
Pav Lucistnik 4813d21b29 HOZ is what you would call a "file splitter". Its file format is the same as
the one used by the "Hacha" software, a well known splitter in Spain and
Latinamerica. HOZ is an open-source and portable  C implementation of an
"Hacha" compatible splitter.

PR:		ports/86245 (based on)
Submitted by:	Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2005-09-18 14:40:36 +00:00

58 lines
1.8 KiB
Plaintext

--- Makefile.orig Mon Jan 12 17:23:38 2004
+++ Makefile Sun Sep 18 16:35:03 2005
@@ -4,14 +4,13 @@
OBJ = hoz.o hozgtk.o hozgtk_c.o hozgtk_i.o hozgtk_s.o hozcli.o
LINKOBJ = hoz.o hozcli.o
GLINKOBJ = hoz.o hozgtk.o hozgtk_c.o hozgtk_i.o hozgtk_s.o
-CFLAGS = -Wall \
- -O2 \
+CFLAGS += -Wall \
-DG_DISABLE_DEPRECATED \
-DGDK_DISABLE_DEPRECATED \
- -DGDK_PIXBUF_DISABLE_DEPRECATED \
- -DGTK_DISABLE_DEPRECATED
-BIN = /usr/bin/hoz
-GBIN = /usr/bin/ghoz
+ -DGDK_PIXBUF_DISABLE_DEPRECATED
+
+BIN = hoz
+GBIN = ghoz
GTK_COMP = `pkg-config gtk+-2.0 --cflags`
GTK_LINK = `pkg-config gtk+-2.0 --libs`
@@ -34,26 +33,26 @@
rm -f $(OBJ) ${BIN} ${GBIN}
hoz.o: hoz.c
- $(CC) -c hoz.c -o hoz.o $(CFLAGS) ${LANG}
+ $(CC) -c hoz.c -o hoz.o $(CFLAGS) ${CPPFLAGS} ${LANG}
hozgtk.o: hozgtk.c
- $(CC) -c hozgtk.c -o hozgtk.o $(CFLAGS) $(GTK_COMP) ${LANG}
+ $(CC) -c hozgtk.c -o hozgtk.o $(CFLAGS) ${CPPFLAGS} $(GTK_COMP) ${LANG}
hozgtk_c.o: hozgtk_c.c
- $(CC) -c hozgtk_c.c -o hozgtk_c.o $(CFLAGS) $(GTK_COMP) ${LANG}
+ $(CC) -c hozgtk_c.c -o hozgtk_c.o $(CFLAGS) ${CPPFLAGS} $(GTK_COMP) ${LANG}
hozgtk_i.o: hozgtk_i.c
- $(CC) -c hozgtk_i.c -o hozgtk_i.o $(CFLAGS) $(GTK_COMP) ${LANG}
+ $(CC) -c hozgtk_i.c -o hozgtk_i.o $(CFLAGS) ${CPPFLAGS} $(GTK_COMP) ${LANG}
hozgtk_s.o: hozgtk_s.c
- $(CC) -c hozgtk_s.c -o hozgtk_s.o $(CFLAGS) $(GTK_COMP) ${LANG}
+ $(CC) -c hozgtk_s.c -o hozgtk_s.o $(CFLAGS) ${CPPFLAGS} $(GTK_COMP) ${LANG}
hozcli.o: hozcli.c
- $(CC) -c hozcli.c -o hozcli.o $(CFLAGS) ${LANG}
+ $(CC) -c hozcli.c -o hozcli.o $(CFLAGS) ${CPPFLAGS} ${LANG}
$(BIN): $(LINKOBJ)
- $(CC) $(LINKOBJ) -o $(BIN) $(LIBS)
+ $(CC) $(LINKOBJ) -o $(BIN) $(LIBS) ${LDFLAGS}
$(GBIN): $(GLINKOBJ)
- $(CC) $(GLINKOBJ) -o $(GBIN) $(LIBS) $(GTK_LINK)
+ $(CC) $(GLINKOBJ) -o $(GBIN) $(LIBS) $(GTK_LINK) ${LDFLAGS}