1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/x11-toolkits/gtkada/Makefile
John Marino d0c4d21a83 Change Ada Framework foundation from gcc5-aux to gcc6-aux
GCC 6.1 was released this week.  The Ada Framework in FreeBSD ports has
been based on GCC 5.3 GNAT although GCC 6.x has been supported for awhile
via the ADA_DEFAULT option in make.conf.

Now that GCC 6 has been officially released, switch to it by default.
People can maintain the old foundation by putting "ADA_DEFAULT=5" in
/etc/make.conf.

Libraries built by one GNAT are unusable by another, so almost every Ada
port has been bumped as a result.  Noticable exceptions are dns/ironsides
which fails to build on gcc6 (thus USES=ada:5 is set) and cad/ghdl which
needs additional testing as it may require gcc5 on FreeBSD (DragonFly
uses the LLVM backend only).
2016-04-30 06:44:27 +00:00

72 lines
1.5 KiB
Makefile

# Created by: John Marino <marino@FreeBSD.org>
# $FreeBSD$
PORTNAME= gtkada
PORTVERSION= 2.24.4.0
PORTREVISION= 4
CATEGORIES= x11-toolkits
MASTER_SITES= http://downloads.dragonlace.net/src/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
gtkada-rm-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= marino@FreeBSD.org
COMMENT= Ada graphical toolkit based on Gtk2+
LICENSE= GPLv2
USES= ada gmake perl5 pkgconfig tar:bzip2
USE_PERL5= build
USE_GNOME= gtk20
GNU_CONFIGURE= yes
ALL_TARGET= src
NO_MTREE= yes
PORTDOCS= gtkada_rm gtkada_ug
PORTEXAMPLES= *
MAKE_ENV+= PROCESSORS=${MAKE_JOBS_NUMBER}
CONFLICTS_INSTALL= gtkada3-*
PORTSCOUT= ignore:1
OPTIONS_DEFINE= DOCS NLS EXAMPLES
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
BUILD_DEPENDS+= sphinx-build:textproc/py-sphinx
.endif
.if ${PORT_OPTIONS:MNLS}
CONFIGURE_ARGS+= --enable-nls
USES+= gettext
.else
CONFIGURE_ARGS+= --disable-nls
.endif
.if ${PORT_OPTIONS:MDOCS}
ALL_TARGET+= docs
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
ALL_TARGET+= tests
.endif
post-patch:
# fix for gcc-5
@${REINPLACE_CMD} -e 's|inline gint roundint|gint roundint|' \
${WRKSRC}/src/gtkextra/gtkplot*
do-build:
# This target is recreated because -j cannot be set, but
# MAKE_JOBS_SAFE=yes is needed for PROCESSORS value
cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET}
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/libdata
@${MV} ${STAGEDIR}${PREFIX}/lib/pkgconfig ${STAGEDIR}${PREFIX}/libdata/
${RM} -rf ${STAGEDIR}${PREFIX}/share/doc/gtkada/gtkada_ug/_sources
.include <bsd.port.mk>