aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/agg/Makefile
blob: f5c529d230cf3d9f8fb783c35acd56c5eab85b70 (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
# Ports collection makefile for:    agg
# Date created:         Aug 3, 2004
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   agg
PORTVERSION=    2.5
PORTREVISION=   7
CATEGORIES= graphics
MASTER_SITES=   http://www.antigrain.com/ \
        http://freebsd.unixfreunde.de/sources/

MAINTAINER= ports@FreeBSD.org
COMMENT=    A High Quality Rendering Engine for C++

LICENSE=    GPLv2

BUILD_DEPENDS=  pkg-config>0:${PORTSDIR}/devel/pkg-config
LIB_DEPENDS=    freetype.9:${PORTSDIR}/print/freetype2

USE_XORG=   x11
USE_GNOME=  gnomehack
USE_SDL=    sdl
USE_GMAKE=  yes
USE_AUTOTOOLS=  aclocal autoheader autoconf libtoolize automake
ACLOCAL_ARGS=   -I ${LOCALBASE}/share/aclocal
AUTOMAKE_ARGS=  --foreign --add-missing --ignore-deps
MAKE_ENV=   C="${CC}" AGGCXXFLAGS="${CXXFLAGS}"
USE_LDCONFIG=   yes
MAKE_JOBS_UNSAFE=   yes

CXXFLAGS+=  -I${LOCALBASE}/include -L${LOCALBASE}/lib -I../include -L./

.include <bsd.port.pre.mk>

.if ${ARCH} == "sparc64"
BROKEN=     Does not compile
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|[(]libdir[)]/pkgconfig|(prefix)/libdata/pkgconfig|g' \
    ${WRKSRC}/Makefile.am

.include <bsd.port.post.mk>