aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--databases/rdfdb/Makefile5
-rw-r--r--databases/rdfdb/files/patch-makefile2
2 files changed, 3 insertions, 4 deletions
diff --git a/databases/rdfdb/Makefile b/databases/rdfdb/Makefile
index c28746e16d12..78dfffd715da 100644
--- a/databases/rdfdb/Makefile
+++ b/databases/rdfdb/Makefile
@@ -29,12 +29,11 @@ RDFDB_PORT?= 7001
PLIST_SUB= RDFDB_DIR=${RDFDB_DIR}
post-patch:
- @${SED} -e 's,%%LOCALBASE%%,${LOCALBASE},g' \
+ @${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},g' \
-e 's,%%PTHREAD_LIBS%%,${PTHREAD_LIBS:S/"//g},g' \
-e 's,%%BDB_INCLUDE_DIR%%,${BDB_INCLUDE_DIR},g'\
-e 's,%%BDB_LIB_NAME%%,${BDB_LIB_NAME},g' \
- < ${WRKSRC}/makefile > ${WRKSRC}/makefile.new
- @${MV} ${WRKSRC}/makefile.new ${WRKSRC}/makefile
+ ${WRKSRC}/makefile
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/rdfdb ${PREFIX}/bin
diff --git a/databases/rdfdb/files/patch-makefile b/databases/rdfdb/files/patch-makefile
index 4ed14543f31f..9c9e4931e03b 100644
--- a/databases/rdfdb/files/patch-makefile
+++ b/databases/rdfdb/files/patch-makefile
@@ -10,7 +10,7 @@ $FreeBSD$
+CC ?= gcc -g
+INCLUDES = -I %%BDB_INCLUDE_DIR%% -I expat/xmltok -I expat/xmlparse
+LIBS = -l%%BDB_LIB_NAME%% %%PTHREAD_LIBS%%
-+CPPFLAGS += ${CFLAGS} $(INCLUDES) -L /usr/local/lib
++CPPFLAGS += ${CFLAGS} $(INCLUDES) -L %%LOCALBASE%%/lib
OBJS = utils/hash.o \
utils/utils.o \