aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-05-07 23:54:51 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-05-07 23:54:51 +0000
commit47e96a4d38456a6606ca1068e7141477966b9fd6 (patch)
treef3437eb55b262584fd8bcd81720f9cdd7ebb50fd
parent26f5e61764502357edcceaf32c870c0d7681c780 (diff)
downloadports-47e96a4d38456a6606ca1068e7141477966b9fd6.tar.gz
ports-47e96a4d38456a6606ca1068e7141477966b9fd6.zip
Notes
-rw-r--r--databases/fastdb/Makefile18
-rw-r--r--databases/fastdb/files/patch-makefile23
2 files changed, 28 insertions, 13 deletions
diff --git a/databases/fastdb/Makefile b/databases/fastdb/Makefile
index 4226a9437890..672d0d33ea7c 100644
--- a/databases/fastdb/Makefile
+++ b/databases/fastdb/Makefile
@@ -11,23 +11,21 @@ COMMENT= Main Memory Relational Database Management System
WRKSRC= ${WRKDIR}/${PORTNAME}
-USE_GMAKE= yes
+OPTIONS_DEFINE= DOCS
+
+USES= gmake dos2unix
+USE_GCC= any
MAKE_ENV= OSTYPE="${OPSYS}" \
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PTHREAD_LIBS="${PTHREAD_LIBS}"
MAKEFILE= makefile
USE_LDCONFIG= yes
-USE_DOS2UNIX= ${MAKEFILE}
+DOS2UNIX_FILES= ${MAKEFILE}
PORTDOCS= FastDB.htm
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
-
post-install:
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/FastDB.htm ${DOCSDIR}
-.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/FastDB.htm ${STAGEDIR}${DOCSDIR}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/databases/fastdb/files/patch-makefile b/databases/fastdb/files/patch-makefile
index b24adb927a6e..ba04f84d0f21 100644
--- a/databases/fastdb/files/patch-makefile
+++ b/databases/fastdb/files/patch-makefile
@@ -1,5 +1,22 @@
---- makefile.orig 2012-09-12 03:22:51.000000000 +0800
-+++ makefile 2013-06-28 09:55:32.000000000 +0800
+--- ./makefile.orig 2014-05-08 01:51:14.473846505 +0200
++++ ./makefile 2014-05-08 01:52:41.930012434 +0200
+@@ -8,13 +8,13 @@
+ PREFIX ?= /usr/local
+
+ # Place where to copy FastDB header files
+-INCSPATH=$(PREFIX)/include/fastdb
++INCSPATH=$(DESTDIR)$(PREFIX)/include/fastdb
+
+ #Place where to copy Fastdb library
+-LIBSPATH=$(PREFIX)/lib
++LIBSPATH=$(DESTDIR)$(PREFIX)/lib
+
+ #Place where to copy Fastdb subsql utility
+-BINSPATH=$(PREFIX)/bin
++BINSPATH=$(DESTDIR)$(PREFIX)/bin
+
+ ifdef NO_PTHREADS
+ OBJS = class.o compiler.o database.o xml.o hashtab.o file.o symtab.o ttree.o rtree.o container.o \
@@ -38,8 +38,8 @@
THRLIBS=
SUFF=
@@ -58,7 +75,7 @@
+ ${BSD_INSTALL_DATA} $(INCS) $(INCSPATH)
mkdir -p $(LIBSPATH)
- cp $(FASTDB_LIB) $(CLI_LIB) $(FASTDB_SHARED) $(CLI_SHARED) $(LIBSPATH)
-+ ${BSD_INSTALL_DATA} $(FASTDB_LIB) $(CLI_LIB) $(FASTDB_SHARED) $(CLI_SHARED) $(LIBSPATH)
++ ${BSD_INSTALL_LIB} $(FASTDB_LIB) $(CLI_LIB) $(FASTDB_SHARED) $(CLI_SHARED) $(LIBSPATH)
(cd $(LIBSPATH) && ln -f -s $(FASTDB_SHARED) libfastdb$(SUFF).so \
&& ln -f -s $(CLI_SHARED) libcli$(SUFF).so)
if [ -f $(JNI_LIB) ]; then cp $(JNI_LIB) $(LIBSPATH); \