ports/databases/pg_filedump/files/patch-Makefile
Jun Kuriyama d73b950702 pg_filedump is a utility to format PostgreSQL heap, index, and control
files into a human-readable form. You can format/dump the files
several ways as well as dumping straight binary. This utility is
intended to aid in the understanding of the internal contents of a
PostgreSQL block.

WWW: http://sources.redhat.com/rhdb/utilities.html
2009-08-18 02:53:33 +00:00

28 lines
949 B
Text

--- Makefile.orig 2008-02-28 23:12:21.000000000 +0900
+++ Makefile 2009-08-17 23:37:15.000000000 +0900
@@ -3,10 +3,10 @@
CC=gcc
CFLAGS=-g -O -Wall -Wmissing-prototypes -Wmissing-declarations
-INCLUDE=/usr/include/pgsql/server
+INCLUDE=${LOCALBASE}/include/postgresql/server
# PGSQL MUST POINT TO pgsql SOURCE DIRECTORY
-PGSQL=../../../../postgres/pgsql
+PGSQL=../../../postgresql83-client/work/postgresql-8.3.7
CRC_SRC=${PGSQL}/src/backend/utils/hash
CRC_INCLUDE=${PGSQL}/src
@@ -17,10 +17,10 @@
${CC} ${CFLAGS} -o pg_filedump pg_filedump.o pg_crc.o
pg_filedump.o: pg_filedump.c
- ${CC} ${CFLAGS} -I${INCLUDE} pg_filedump.c -c
+ ${CC} ${CFLAGS} -I${INCLUDE} -I${LOCALBASE}/include pg_filedump.c -c
pg_crc.o: ${CRC_SRC}/pg_crc.c
- ${CC} ${CFLAGS} -I${CRC_INCLUDE} -I${INCLUDE} ${CRC_SRC}/pg_crc.c -c
+ ${CC} ${CFLAGS} -I${CRC_INCLUDE} -I${INCLUDE} -I${LOCALBASE}/include ${CRC_SRC}/pg_crc.c -c
clean:
rm -rf *.o pg_filedump