mirror of
https://git.freebsd.org/ports.git
synced 2025-05-30 09:56:43 -04:00
- Fix build
- Stage support PR: 184234 Submitted by: Ports Fury
This commit is contained in:
parent
5f05a9fd77
commit
f6c9a93db2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=343271
3 changed files with 106 additions and 91 deletions
|
@ -3,73 +3,80 @@
|
||||||
|
|
||||||
PORTNAME= gtksql
|
PORTNAME= gtksql
|
||||||
PORTVERSION= 0.4.5
|
PORTVERSION= 0.4.5
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= databases
|
CATEGORIES= databases
|
||||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-testing/${PORTNAME}-${PORTVERSION}/
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-testing/${PORTNAME}-${PORTVERSION}
|
||||||
|
|
||||||
MAINTAINER= ports@FreeBSD.org
|
MAINTAINER= ports@FreeBSD.org
|
||||||
COMMENT= Graphical query tool for PostgreSQL/MySQL/SQLite
|
COMMENT= Graphical query tool for PostgreSQL/MySQL/SQLite
|
||||||
|
|
||||||
LICENSE= GPLv2
|
LICENSE= GPLv2 # (or later)
|
||||||
|
|
||||||
LIB_DEPENDS= libavahi-client.so:${PORTSDIR}/net/avahi-app
|
LIB_DEPENDS= libscintilla.so:${PORTSDIR}/x11-toolkits/scintilla
|
||||||
|
RUN_DEPENDS= xdg-open:${PORTSDIR}/devel/xdg-utils
|
||||||
|
|
||||||
GNU_CONFIGURE= yes
|
OPTIONS_DEFINE= AVAHI
|
||||||
USE_AUTOTOOLS= libtool
|
OPTIONS_MULTI= DB
|
||||||
USES= pkgconfig gmake
|
OPTIONS_MULTI_DB= MYSQL PGSQL SQLITE
|
||||||
|
OPTIONS_DEFAULT= SQLITE
|
||||||
|
|
||||||
|
USES= gettext gmake pkgconfig
|
||||||
USE_GNOME= gtk20
|
USE_GNOME= gtk20
|
||||||
LDFLAGS+= -L${LOCALBASE}/lib -lgmodule-2.0
|
GNU_CONFIGURE= yes
|
||||||
|
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
|
||||||
|
AUTOHEADER="${TRUE}"
|
||||||
|
|
||||||
MAN1= ${PORTNAME}.1
|
CPPFLAGS+= -I${LOCALBASE}/include/scintilla -I${LOCALBASE}/include
|
||||||
PORTDOCS= AUTHORS ChangeLog NEWS README TODO
|
LDFLAGS+= -L${LOCALBASE}/lib -lscintilla -lscintilla_lexers
|
||||||
|
|
||||||
OPTIONS_MULTI= DB
|
|
||||||
OPTIONS_MULTI_DB= MYSQL PGSQL SQLITE3
|
|
||||||
OPTIONS_DEFAULT= MYSQL PGSQL SQLITE3
|
|
||||||
|
|
||||||
NO_STAGE= yes
|
|
||||||
.include <bsd.port.options.mk>
|
.include <bsd.port.options.mk>
|
||||||
|
|
||||||
|
.if ${PORT_OPTIONS:MAVAHI}
|
||||||
|
LIB_DEPENDS+= libavahi-common.so:${PORTSDIR}/net/avahi-app
|
||||||
|
.else
|
||||||
|
CONFIGURE_ARGS+= --without-avahi
|
||||||
|
.endif
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MMYSQL}
|
.if ${PORT_OPTIONS:MMYSQL}
|
||||||
USE_MYSQL= yes
|
USE_MYSQL= yes
|
||||||
|
CPPFLAGS+= -I${LOCALBASE}/include/mysql
|
||||||
|
LDFLAGS+= -L${LOCALBASE}/lib/mysql
|
||||||
.else
|
.else
|
||||||
CONFIGURE_ARGS+=--without-mysql
|
CONFIGURE_ARGS+= --without-mysql
|
||||||
.endif
|
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MNLS}
|
|
||||||
USES+= gettext
|
|
||||||
PLIST_SUB+= NLS=""
|
|
||||||
.else
|
|
||||||
CONFIGURE_ARGS+=--disable-nls
|
|
||||||
PLIST_SUB+= NLS="@comment "
|
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MPGSQL}
|
.if ${PORT_OPTIONS:MPGSQL}
|
||||||
USE_PGSQL= yes
|
USE_PGSQL= yes
|
||||||
.else
|
.else
|
||||||
CONFIGURE_ARGS+=--without-postgresql
|
CONFIGURE_ARGS+= --without-postgresql
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MSQLITE3}
|
.if ${PORT_OPTIONS:MSQLITE}
|
||||||
LIB_DEPENDS+= libsqlite3.so:${PORTSDIR}/databases/sqlite3
|
USE_SQLITE= yes
|
||||||
.else
|
.else
|
||||||
CONFIGURE_ARGS+=--without-sqlite
|
CONFIGURE_ARGS+= --without-sqlite
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -e 's|/usr/include/mysql|${LOCALBASE}/include/mysql|g' \
|
@${REINPLACE_CMD} -e \
|
||||||
-e 's|/usr/include/postgresql|${LOCALBASE}/include/postgresql/server|g' \
|
'/-lstdc++/s|^|#| ; \
|
||||||
|
/scintilla.a/s|^|#| ; \
|
||||||
|
/\/scintilla\/include/s|^|#| ; \
|
||||||
|
/ac_header/s|postgres.h|libpq-fe.h| ; \
|
||||||
|
/^packagedatadir/s|=.*|=share/gtksql|' \
|
||||||
${WRKSRC}/configure
|
${WRKSRC}/configure
|
||||||
@${REINPLACE_CMD} 's|make|$$(MAKE)|' \
|
@${REINPLACE_CMD} -e \
|
||||||
${WRKSRC}/scintilla/Makefile.in
|
's|-O1|| ; \
|
||||||
@${REINPLACE_CMD} 's|-Os|${CFLAGS}|g' \
|
s|-g$$|-DGTK|' \
|
||||||
${WRKSRC}/scintilla/gtk/makefile
|
${WRKSRC}/src/Makefile.in
|
||||||
|
@${REINPLACE_CMD} -e \
|
||||||
post-install:
|
's|<postgres\.h>|<postgresql/internal/c.h>|' \
|
||||||
.if ${PORT_OPTIONS:MDOCS}
|
${WRKSRC}/src/d_postgres_f.c
|
||||||
@${MKDIR} ${DOCSDIR}
|
@${REINPLACE_CMD} -e \
|
||||||
.for file in ${PORTDOCS}
|
's|mozilla|xdg-open|' \
|
||||||
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
${WRKSRC}/src/gtkui-object.c
|
||||||
.endfor
|
@${REINPLACE_CMD} -e \
|
||||||
.endif
|
's|/usr/local/gtksql|${PREFIX}/lib/gtksql|' \
|
||||||
|
${WRKSRC}/src/plugins.c
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,20 +1,19 @@
|
||||||
--- Makefile.in.orig 2013-10-08 11:01:04.306764000 +0200
|
--- Makefile.in.orig 2013-10-08 11:01:04.306764000 +0200
|
||||||
+++ Makefile.in 2013-10-08 11:27:51.000000000 +0200
|
+++ Makefile.in 2013-10-08 11:27:51.000000000 +0200
|
||||||
@@ -728,7 +728,7 @@
|
@@ -237,14 +237,12 @@
|
||||||
|
target_alias = @target_alias@
|
||||||
|
top_builddir = @top_builddir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
-SUBDIRS = Pics po scintilla intl src pixmaps man gnome
|
||||||
|
-gtksqldocdir = ${prefix}/doc/gtksql
|
||||||
|
+SUBDIRS = Pics po src pixmaps man gnome
|
||||||
|
+gtksqldocdir = ${docdir}
|
||||||
|
gtksqldoc_DATA = \
|
||||||
|
README\
|
||||||
|
- COPYING\
|
||||||
|
AUTHORS\
|
||||||
|
ChangeLog\
|
||||||
|
- INSTALL\
|
||||||
|
NEWS\
|
||||||
|
TODO
|
||||||
|
|
||||||
info-am:
|
|
||||||
|
|
||||||
-install-data-am: install-gtksqldocDATA
|
|
||||||
+install-data-am:
|
|
||||||
|
|
||||||
install-dvi: install-dvi-recursive
|
|
||||||
|
|
||||||
@@ -764,7 +764,7 @@
|
|
||||||
|
|
||||||
ps-am:
|
|
||||||
|
|
||||||
-uninstall-am: uninstall-gtksqldocDATA
|
|
||||||
+uninstall-am:
|
|
||||||
|
|
||||||
.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
|
|
||||||
install-strip
|
|
||||||
|
|
|
@ -1,35 +1,44 @@
|
||||||
bin/gtksql
|
bin/gtksql
|
||||||
|
man/man1/gtksql.1.gz
|
||||||
share/applications/gtksql.desktop
|
share/applications/gtksql.desktop
|
||||||
%%NLS%%share/locale/de_DE/LC_MESSAGES/gtksql.mo
|
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
|
||||||
share/pixmaps/connect-grey.xpm
|
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
|
||||||
share/pixmaps/connect.png
|
%%PORTDOCS%%%%DOCSDIR%%/NEWS
|
||||||
share/pixmaps/connect.xpm
|
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||||
share/pixmaps/delete-grey.xpm
|
%%PORTDOCS%%%%DOCSDIR%%/TODO
|
||||||
share/pixmaps/delete.xpm
|
%%DATADIR%%/pixmaps/connect-grey.xpm
|
||||||
share/pixmaps/disconnect-grey.xpm
|
%%DATADIR%%/pixmaps/connect.png
|
||||||
share/pixmaps/disconnect.png
|
%%DATADIR%%/pixmaps/connect.xpm
|
||||||
share/pixmaps/disconnect.xpm
|
%%DATADIR%%/pixmaps/delete-grey.xpm
|
||||||
share/pixmaps/export-grey.xpm
|
%%DATADIR%%/pixmaps/delete.xpm
|
||||||
share/pixmaps/export.xpm
|
%%DATADIR%%/pixmaps/disconnect-grey.xpm
|
||||||
share/pixmaps/gtksql.png
|
%%DATADIR%%/pixmaps/disconnect.png
|
||||||
share/pixmaps/gtksql.xpm
|
%%DATADIR%%/pixmaps/disconnect.xpm
|
||||||
share/pixmaps/gtksql_db.png
|
%%DATADIR%%/pixmaps/export-grey.xpm
|
||||||
share/pixmaps/gtksql_field.png
|
%%DATADIR%%/pixmaps/export.xpm
|
||||||
share/pixmaps/gtksql_gnome_icon.png
|
%%DATADIR%%/pixmaps/gtksql.png
|
||||||
share/pixmaps/gtksql_table.png
|
%%DATADIR%%/pixmaps/gtksql.xpm
|
||||||
share/pixmaps/new-grey.xpm
|
%%DATADIR%%/pixmaps/gtksql_db.png
|
||||||
share/pixmaps/new.xpm
|
%%DATADIR%%/pixmaps/gtksql_field.png
|
||||||
share/pixmaps/open-grey.xpm
|
%%DATADIR%%/pixmaps/gtksql_gnome_icon.png
|
||||||
share/pixmaps/open.xpm
|
%%DATADIR%%/pixmaps/gtksql_table.png
|
||||||
share/pixmaps/question.xpm
|
%%DATADIR%%/pixmaps/new-grey.xpm
|
||||||
share/pixmaps/refresh-grey.xpm
|
%%DATADIR%%/pixmaps/new.xpm
|
||||||
share/pixmaps/refresh.xpm
|
%%DATADIR%%/pixmaps/open-grey.xpm
|
||||||
share/pixmaps/rename-grey.xpm
|
%%DATADIR%%/pixmaps/open.xpm
|
||||||
share/pixmaps/rename.xpm
|
%%DATADIR%%/pixmaps/question.xpm
|
||||||
share/pixmaps/save-grey.xpm
|
%%DATADIR%%/pixmaps/refresh-grey.xpm
|
||||||
share/pixmaps/save.xpm
|
%%DATADIR%%/pixmaps/refresh.xpm
|
||||||
share/pixmaps/send-grey.xpm
|
%%DATADIR%%/pixmaps/rename-grey.xpm
|
||||||
share/pixmaps/send.xpm
|
%%DATADIR%%/pixmaps/rename.xpm
|
||||||
share/pixmaps/warning.xpm
|
%%DATADIR%%/pixmaps/save-grey.xpm
|
||||||
%%NLS%%@dirrmtry share/locale/de_DE/LC_MESSAGES
|
%%DATADIR%%/pixmaps/save.xpm
|
||||||
%%NLS%%@dirrmtry share/locale/de_DE
|
%%DATADIR%%/pixmaps/send-grey.xpm
|
||||||
|
%%DATADIR%%/pixmaps/send.xpm
|
||||||
|
%%DATADIR%%/pixmaps/warning.xpm
|
||||||
|
share/locale/de_DE/LC_MESSAGES/gtksql.mo
|
||||||
|
@dirrmtry share/locale/de_DE/LC_MESSAGES
|
||||||
|
@dirrmtry share/locale/de_DE
|
||||||
|
@dirrm %%DATADIR%%/pixmaps
|
||||||
|
@dirrm %%DATADIR%%
|
||||||
|
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||||
|
|
Loading…
Add table
Reference in a new issue