2013-07-12 15:40:50 +02:00
|
|
|
# Created by: John Marino <marino@FreeBSD.org>
|
2011-03-02 01:29:45 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gtkada
|
2013-07-02 16:06:12 +02:00
|
|
|
PORTVERSION= 2.24.4.0
|
2014-05-20 13:44:58 +02:00
|
|
|
PORTREVISION= 3
|
2011-03-02 01:29:45 +01:00
|
|
|
CATEGORIES= x11-toolkits
|
2013-04-30 13:57:02 +02:00
|
|
|
MASTER_SITES= http://downloads.dragonlace.net/src/
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
2013-07-02 16:06:12 +02:00
|
|
|
gtkada-rm-${PORTVERSION}${EXTRACT_SUFX}
|
2011-03-02 01:29:45 +01:00
|
|
|
|
2013-07-12 15:40:50 +02:00
|
|
|
MAINTAINER= marino@FreeBSD.org
|
2011-03-02 01:29:45 +01:00
|
|
|
COMMENT= Ada graphical toolkit based on Gtk2+
|
|
|
|
|
2013-04-30 13:57:02 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2014-05-20 13:44:58 +02:00
|
|
|
USES= ada gmake perl5 pkgconfig tar:bzip2
|
2013-09-06 15:01:53 +02:00
|
|
|
USE_PERL5= build
|
2013-07-02 16:06:12 +02:00
|
|
|
USE_GNOME= gtk20
|
2014-05-20 13:44:58 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
ALL_TARGET= src
|
2013-11-10 19:59:47 +01:00
|
|
|
NO_MTREE= yes
|
2014-05-20 13:44:58 +02:00
|
|
|
PORTDOCS= gtkada_rm gtkada_ug
|
|
|
|
PORTEXAMPLES= *
|
2013-07-02 16:06:12 +02:00
|
|
|
|
2013-11-10 19:59:47 +01:00
|
|
|
MAKE_ENV+= PROCESSORS=${MAKE_JOBS_NUMBER}
|
|
|
|
|
2014-05-20 13:44:58 +02:00
|
|
|
CONFLICTS_INSTALL= gtkada3-*
|
2013-07-02 16:06:12 +02:00
|
|
|
|
2014-08-07 23:03:05 +02:00
|
|
|
PORTSCOUT= ignore:1
|
|
|
|
|
2014-05-20 13:44:58 +02:00
|
|
|
OPTIONS_DEFINE= DOCS NLS EXAMPLES
|
2013-04-30 13:57:02 +02:00
|
|
|
|
2013-07-02 16:06:12 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2011-03-02 01:29:45 +01:00
|
|
|
|
2013-07-02 16:06:12 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
BUILD_DEPENDS+= sphinx-build:${PORTSDIR}/textproc/py-sphinx
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
|
|
CONFIGURE_ARGS+= --enable-nls
|
|
|
|
USES+= gettext
|
|
|
|
.else
|
2011-03-02 01:29:45 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
2013-07-02 16:06:12 +02:00
|
|
|
.endif
|
2011-03-02 01:29:45 +01:00
|
|
|
|
2013-07-02 16:06:12 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2014-05-20 13:44:58 +02:00
|
|
|
ALL_TARGET+= docs
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
|
|
ALL_TARGET+= tests
|
2013-07-02 16:06:12 +02:00
|
|
|
.endif
|
|
|
|
|
2013-07-21 15:02:08 +02:00
|
|
|
do-build:
|
2013-11-10 19:59:47 +01:00
|
|
|
# This target is recreated because -j cannot be set, but
|
|
|
|
# MAKE_JOBS_SAFE=yes is needed for PROCESSORS value
|
2014-05-20 13:44:58 +02:00
|
|
|
cd ${WRKSRC} && \
|
2014-06-25 07:35:31 +02:00
|
|
|
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET}
|
2013-07-21 15:02:08 +02:00
|
|
|
|
2013-07-02 16:06:12 +02:00
|
|
|
post-install:
|
2013-11-10 19:59:47 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/libdata
|
|
|
|
@${MV} ${STAGEDIR}${PREFIX}/lib/pkgconfig ${STAGEDIR}${PREFIX}/libdata/
|
|
|
|
${RM} -rf ${STAGEDIR}${PREFIX}/share/doc/gtkada/gtkada_ug/_sources
|
2013-03-08 11:51:34 +01:00
|
|
|
|
2011-03-02 01:29:45 +01:00
|
|
|
.include <bsd.port.mk>
|