summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/soqt/Makefile
blob: d133c0c157689f484f12d5a013d05d63043d8e74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Created by: roland.jesse@gmx.net
# $FreeBSD$

PORTNAME=	SoQt
PORTVERSION=	1.5.0
PORTREVISION=	6
CATEGORIES=	x11-toolkits
MASTER_SITES=	https://bitbucket.org/Coin3D/coin/downloads/
DIST_SUBDIR=	KDE

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Qt4 toolkit library for Coin

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/LICENSE.GPL

LIB_DEPENDS=	libCoin.so:graphics/Coin

USES=		gmake libtool pathfix pkgconfig
USE_QT4=	corelib opengl moc_build
QT_NONSTANDARD=	yes
USE_GL=		gl
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	QTDIR="${PREFIX}" MOC="${MOC}"
CONFIGURE_ARGS=	--with-pthread=yes --with-coin=${LOCALBASE} \
		--with-qt=${QT_LIBDIR} \
		--enable-debug=no
INSTALL_TARGET=	install-strip
USE_LDCONFIG=	yes

CPPFLAGS+=	-I${QT_INCDIR}/Qt -I${QT_INCDIR} -I${LOCALBASE}/include
LDFLAGS+=	-L${QT_LIBDIR} -L${LOCALBASE}/lib

post-patch:
	@${REINPLACE_CMD} -e \
		'/LDFLAGS/s| $$sim_ac_coin_ldflags|| ; \
		 /CXXFLAGS/s| -fno-for-scope||' ${WRKSRC}/configure

post-install:
	@${TOUCH} ${STAGEDIR}${PREFIX}/include/Inventor/Qt/engines/.keep_me

.include <bsd.port.mk>
OpenPOWER on IntegriCloud