1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/databases/gtksql/Makefile
John Marino cc27f63556 Explicitly link libraries on 10 unmaintained ports
The following ports will not build with a binutils 2.22+ linker built
with standard options.  This has been obvious with DPorts, but difficult
to see on FreeBSD.  However, setting the ports compiler as a recent gcc
(e.g lang/gcc48) is an excellent way to detect the unspecified but needed
libraries as these recent GCC compilers use the latest binutils linkers.
These patches were tested on FreeBSD 8.4 and DragonFly 3.5
2013-10-07 23:03:12 +00:00

76 lines
1.6 KiB
Makefile

# Created by: Andrey Zakhvatov
# $FreeBSD$
PORTNAME= gtksql
PORTVERSION= 0.4.5
CATEGORIES= databases
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-testing/${PORTNAME}-${PORTVERSION}/
MAINTAINER= ports@FreeBSD.org
COMMENT= Graphical query tool for PostgreSQL/MySQL/SQLite
LICENSE= GPLv2
LIB_DEPENDS= avahi-client:${PORTSDIR}/net/avahi-app
GNU_CONFIGURE= yes
USE_AUTOTOOLS= libtool
USES= pkgconfig gmake
USE_GNOME= gtk20
LDFLAGS+= -L${LOCALBASE}/lib -lgmodule-2.0
MAN1= ${PORTNAME}.1
PORTDOCS= AUTHORS ChangeLog NEWS README TODO
OPTIONS_MULTI= DB
OPTIONS_MULTI_DB= MYSQL PGSQL SQLITE3
OPTIONS_DEFAULT= MYSQL PGSQL SQLITE3
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL= yes
.else
CONFIGURE_ARGS+=--without-mysql
.endif
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
.else
CONFIGURE_ARGS+=--without-postgresql
.endif
.if ${PORT_OPTIONS:MSQLITE3}
LIB_DEPENDS+= sqlite3:${PORTSDIR}/databases/sqlite3
.else
CONFIGURE_ARGS+=--without-sqlite
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/usr/include/mysql|${LOCALBASE}/include/mysql|g' \
-e 's|/usr/include/postgresql|${LOCALBASE}/include/postgresql/server|g' \
${WRKSRC}/configure
@${REINPLACE_CMD} 's|make|$$(MAKE)|' \
${WRKSRC}/scintilla/Makefile.in
@${REINPLACE_CMD} 's|-Os|${CFLAGS}|g' \
${WRKSRC}/scintilla/gtk/makefile
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>