summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2017-03-13 18:17:03 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2017-03-13 18:17:03 +0000
commit78458da1c7ef680aeae11d76ff4748ccce5ef90a (patch)
treec23683d60089db35f1e3f9eedc8c49fc87a78b78 /databases
parentUpdate to 3.0-2048-gfb46d057. (diff)
- Fix build
- Add new necessary dependencies - Replace portions of CPPFLAGS and LDFLAGS with sed patches for ${WRKSRC}/configure - Add sed patch to rename some deprecated structure names after v3.7.1 update of x11-toolkits/scintilla PR: 217697 Submitted by: lightside@gmx.com Approved by: mat (mentor) Differential Revision: https://reviews.freebsd.org/D9974
Diffstat (limited to 'databases')
-rw-r--r--databases/gtksql/Makefile27
-rw-r--r--databases/gtksql/files/patch-Makefile.in6
-rw-r--r--databases/gtksql/files/patch-po__Makefile.in.in4
3 files changed, 19 insertions, 18 deletions
diff --git a/databases/gtksql/Makefile b/databases/gtksql/Makefile
index 9d37a9ae6036..4738822f80e4 100644
--- a/databases/gtksql/Makefile
+++ b/databases/gtksql/Makefile
@@ -3,7 +3,7 @@
PORTNAME= gtksql
PORTVERSION= 0.4.5
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= databases
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-testing/${PORTNAME}-${PORTVERSION}
@@ -13,21 +13,17 @@ COMMENT= Graphical query tool for PostgreSQL/MySQL/SQLite
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
-LIB_DEPENDS= libscintilla.so:x11-toolkits/scintilla
+LIB_DEPENDS= libfreetype.so:print/freetype2 \
+ libfontconfig.so:x11-fonts/fontconfig \
+ libscintilla.so:x11-toolkits/scintilla
RUN_DEPENDS= xdg-open:devel/xdg-utils
-BROKEN= does not build (incomplete definition of type 'struct CharacterRange')
-
-USES= gettext gmake pkgconfig
-USE_GNOME= gtk20 cairo glib20 pango
+USES= gettext gmake localbase pkgconfig
+USE_GNOME= gdkpixbuf2 gtk20 cairo
GNU_CONFIGURE= yes
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
AUTOHEADER="${TRUE}"
-CPPFLAGS+= -I${LOCALBASE}/include/scintilla -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib -lscintilla -lscintilla_lexers
-LDFLAGS+= -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo
-
OPTIONS_DEFINE= AVAHI DOCS
OPTIONS_MULTI= DB
OPTIONS_MULTI_DB= MYSQL PGSQL SQLITE
@@ -49,9 +45,9 @@ SQLITE_CONFIGURE_OFF= --without-sqlite
post-patch:
@${REINPLACE_CMD} -e \
- '/-lstdc++/s|^|#| ; \
- /scintilla.a/s|^|#| ; \
- /\/scintilla\/include/s|^|#| ; \
+ 's|-lstdc++|| ; \
+ /^PACKAGE_LIBS=/s|$${packagesrcdir}.*scintilla.a|-lscintilla -lscintilla_lexers| ; \
+ /^CPPFLAGS=/s|../scintilla/include|${LOCALBASE}/include/scintilla| ; \
/ac_header/s|postgres.h|libpq-fe.h| ; \
s|/usr/local|${PREFIX}| ; \
s|-R|-Wl,-rpath=| ; \
@@ -70,5 +66,10 @@ post-patch:
@${REINPLACE_CMD} -e \
's|/usr/local/gtksql|${PREFIX}/lib/gtksql|' \
${WRKSRC}/src/plugins.c
+# Some structure names were renamed in Scintilla.h (v3.7.1)
+ @${REINPLACE_CMD} -E \
+ 's|^#include <string.h>$$|#include <stdlib.h>\${.newline}&| ; \
+ s|(CharacterRange\|TextRange)|Sci_&|' \
+ ${WRKSRC}/src/gtksql_query_scintilla.c
.include <bsd.port.mk>
diff --git a/databases/gtksql/files/patch-Makefile.in b/databases/gtksql/files/patch-Makefile.in
index 122a1c648197..0797faa597d4 100644
--- a/databases/gtksql/files/patch-Makefile.in
+++ b/databases/gtksql/files/patch-Makefile.in
@@ -1,6 +1,6 @@
---- Makefile.in.orig 2013-10-08 11:01:04.306764000 +0200
-+++ Makefile.in 2013-10-08 11:27:51.000000000 +0200
-@@ -237,14 +237,12 @@
+--- Makefile.in.orig 2007-11-01 14:05:59 UTC
++++ Makefile.in
+@@ -237,14 +237,12 @@ sysconfdir = @sysconfdir@
target_alias = @target_alias@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
diff --git a/databases/gtksql/files/patch-po__Makefile.in.in b/databases/gtksql/files/patch-po__Makefile.in.in
index 1d17c20310df..bd4d47066663 100644
--- a/databases/gtksql/files/patch-po__Makefile.in.in
+++ b/databases/gtksql/files/patch-po__Makefile.in.in
@@ -1,5 +1,5 @@
---- ./po/Makefile.in.in.orig 2013-02-26 19:25:06.000000000 +0100
-+++ ./po/Makefile.in.in 2013-02-26 19:25:37.000000000 +0100
+--- po/Makefile.in.in.orig 2006-06-13 16:40:55 UTC
++++ po/Makefile.in.in
@@ -13,6 +13,7 @@
PACKAGE = @PACKAGE@
VERSION = @VERSION@