freebsd-ports/databases/postgresql-mysql_fdw/Makefile
Mark Linimon 078a5d7419 Workaround the following problem on aarch64 by setting LLD_UNSAFE=yes:
cc: error: invalid linker name in argument '-fuse-ld=bfd'

Neither emaste nor I can figure out exactly where the offending stanza is
coming in.  It will take someone with more knowledge of gmake debug flags,
and possibly the src build infrastructure, to figure it out.

While here, pet portlint.

Approved by:	portmgr (tier-2 blanket)
2018-06-24 00:54:27 +00:00

31 lines
679 B
Makefile

# Created by: Jov <amutu@amutu.com>
# $FreeBSD$
PORTNAME= mysql_fdw
PORTVERSION= 2.2.0
CATEGORIES= databases
PKGNAMEPREFIX= postgresql${PGSQL_VER:S/.//}-
MAINTAINER= ports@FreeBSD.org
COMMENT= PostgreSQL foreign data wrapper for MySQL
LICENSE= PostgreSQL
USES= gmake pgsql:9.3+ mysql
LLD_UNSAFE= yes
USE_GITHUB= yes
GH_ACCOUNT= EnterpriseDB
GH_TAGNAME= c14ee1d
MAKE_ENV= USE_PGXS=1
WANT_PGSQL= server
PLIST_FILES= lib/postgresql/mysql_fdw.so \
share/postgresql/extension/mysql_fdw--1.0.sql \
share/postgresql/extension/mysql_fdw.control
do-patch:
${SED} -i '.orig' 's/#if defined(__APPLE__)/& || defined(__FreeBSD__)/' ${WRKSRC}/mysql_fdw.c
.include <bsd.port.mk>