summaryrefslogtreecommitdiff
path: root/graphics/quesoglc/Makefile
blob: 1b7230e876acf46e2e7b9bbf856b6638cbc85170 (plain) (blame)
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
43
44
45
46
47
48
49
50
51
52
53
PORTNAME=	quesoglc
PORTVERSION=	0.7.2
PORTREVISION=	10
CATEGORIES=	graphics
MASTER_SITES=	SF/${PORTNAME}/${PORTVERSION}

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	Free implementation of the OpenGL Character Renderer
WWW=		http://quesoglc.sourceforge.net/

LICENSE=	LGPL21+
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libfribidi.so:converters/fribidi \
		libfreetype.so:print/freetype2 \
		libfontconfig.so:x11-fonts/fontconfig

USES=		gl gmake libtool localbase pathfix pkgconfig tar:bzip2 xorg
GNU_CONFIGURE=	yes
USE_GL=		gl glu
USE_XORG=	x11
INSTALL_TARGET=	install-strip
USE_LDCONFIG=	yes

# needs GLEW MX (multiple rendering contexts), so system glew won't go
CONFIGURE_ARGS=	--without-glew --with-fribidi

PORTDOCS=	README

OPTIONS_DEFINE=	DOCS TEST

TEST_CONFIGURE_ENABLE=	executables
# these libs are only required for building tests, which are not
# installed, so no LIB_DEPENDS; tests also require X11 display
# and are interactive
TEST_BUILD_DEPENDS=	${LOCALBASE}/lib/libglut.so:graphics/freeglut \
			${LOCALBASE}/lib/libSM.so:x11/libSM \
			${LOCALBASE}/lib/libICE.so:x11/libICE \
			${LOCALBASE}/lib/libXi.so:x11/libXi \
			${LOCALBASE}/lib/libXmu.so:x11-toolkits/libXmu
TEST_TEST_TARGET=	check

.include <bsd.port.options.mk>

.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
CFLAGS+=	-Wno-error=incompatible-function-pointer-types
.endif

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>