summaryrefslogtreecommitdiff
path: root/x11-toolkits/fox17/Makefile
blob: 60bfdb9b7e32fa0aa4c885cb7c396b8bd07c4cae (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
54
55
56
57
58
# New ports collection Makefile for:	fox17
# Date created:				23 August 2010
# Whom:					gahr
#
# $FreeBSD$
#

PORTNAME=	fox
PORTVERSION=	1.7.23
CATEGORIES=	x11-toolkits
MASTER_SITES=	http://www.fox-toolkit.org/ftp/ \
		ftp://ftp.fox-toolkit.org/pub/

MAINTAINER=	gahr@FreeBSD.org
COMMENT=	Fast and extensive C++ GUI toolkit -- devel version

LIB_DEPENDS=	jpeg.11:${PORTSDIR}/graphics/jpeg \
		png.6:${PORTSDIR}/graphics/png \
		tiff.4:${PORTSDIR}/graphics/tiff \
		Xft.2:${PORTSDIR}/x11-fonts/libXft

CONFLICTS=	fox-1.4.* fox-1.6.*

LATEST_LINK=	fox17

MAJORVER=	${PORTVERSION:R}
PLIST_SUB+=	MAJORVER=${MAJORVER}
DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}-${MAJORVER}

USE_GL=		glut
USE_GNOME=	gnomehack
USE_LDCONFIG=	yes

GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS=	--with-opengl=yes

CPPFLAGS=	-I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2
LDFLAGS=	-L${LOCALBASE}/lib

MAN1=		reswrap.1 shutterbug.1 adie.1 PathFinder.1 calculator.1 \
		ControlPanel.1

.include <bsd.port.pre.mk>

.if (${ARCH} == "alpha" || ${ARCH} == "sparc64") && ${OSVERSION} < 700000
THREAD_LIBS=	-lthr
.else
THREAD_LIBS=	${PTHREAD_LIBS}
.endif
LDFLAGS+=	${THREAD_LIBS}

post-patch:
.if defined(NOPORTDOCS)
	${REINPLACE_CMD} -e '/^SUBDIRS/s/ doc//' ${WRKSRC}/Makefile.am ${WRKSRC}/Makefile.in
.endif

.include <bsd.port.post.mk>