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

PORTNAME=   agg
PORTVERSION=    2.5
PORTREVISION=   6
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++

LIB_DEPENDS=    freetype.9:${PORTSDIR}/print/freetype2

GNU_CONFIGURE=  yes
USE_SDL=    sdl
USE_XORG=   x11
USE_GNOME=  pkgconfig gnomehack
USE_GMAKE=  yes
USE_LDCONFIG=   yes
ACLOCAL_ARGS+=  -I ${LOCALBASE}/share/aclocal
USE_AUTOTOOLS=  autoconf:267:env automake:19:env libtool:22:env
MAKE_ENV=   C="${CC}" AGGCXXFLAGS="${CXXFLAGS}"
CXXFLAGS+=  -I${LOCALBASE}/include -L${LOCALBASE}/lib -I../include -L./

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

pre-configure:
    @cd ${WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ACLOCAL_ARGS="${ACLOCAL_ARGS}" ${SH} autogen.sh

.include <bsd.port.pre.mk>

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

.include <bsd.port.post.mk>