aboutsummaryrefslogtreecommitdiff
path: root/graphics/libgfx/Makefile
blob: d60b0b44ae3c632a5e428e02e57115de41a48ee1 (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
# New ports collection makefile for:	libgfx
# Date created:		28 August 2006
# Whom:			Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	libgfx
DISTVERSION=	1.1.0
PORTREVISION=	1
CATEGORIES=	graphics
MASTER_SITES=	http://graphics.cs.uiuc.edu/~garland/dist/ CENKES

MAINTAINER=	infofarmer@FreeBSD.org
COMMENT=	OpenGL/FLTK development

LIB_DEPENDS=	fltk.1:${PORTSDIR}/x11-toolkits/fltk \
		tiff.4:${PORTSDIR}/graphics/tiff \
		png.5:${PORTSDIR}/graphics/png \
		jpeg.9:${PORTSDIR}/graphics/jpeg
BUILD_DEPENDS=	${LOCALBASE}/lib/libgzstream.a:${PORTSDIR}/devel/gzstream

USE_GL=		yes
USE_GMAKE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CFLAGS="${CFLAGS}" CPPFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS=	--enable-gzstream --with-libtiff-lzw --with-x
CFLAGS=		-I${LOCALBASE}/include -I${X11BASE}/include
LDFLAGS=	-L${LOCALBASE}/lib -L${X11BASE}/lib
BUILD_WRKSRC=	${WRKSRC}/src
ALL_TARGET=	libgfx.a

do-install:
	@${CP} -R ${WRKSRC}/include/gfx ${PREFIX}/include/
	@${INSTALL_DATA} ${WRKSRC}/src/${PORTNAME}.a ${PREFIX}/lib/

.include <bsd.port.mk>