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

PORTNAME=   agg
PORTVERSION=    2.3
CATEGORIES= graphics
MASTER_SITES=   http://www.antigrain.com/ \
        ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= vector-agg
DISTNAME=   ${PORTNAME}${PORTVERSION:S/.//g}

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

BROKEN=     Size mismatch

WRKSRC=     ${WRKDIR}/agg23
USE_GMAKE=  yes
MAKE_ENV=   C="${CC}" CXX="${CXX}"

PLIST_FILES=    lib/libagg.a

.include <bsd.port.pre.mk>

post-extract:
    @${CP} -f ${FILESDIR}/Makefile.in.FreeBSD ${WRKSRC}
    @${SED} 's,%%X11BASE%%,${X11BASE},g' < ${FILESDIR}/Makefile.in.FreeBSD > ${WRKSRC}/Makefile.in.FreeBSD

do-build:
    @cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} ${GMAKE} all && ranlib libagg.a

do-install:
    ${INSTALL_DATA} ${WRKSRC}/src/libagg.a ${PREFIX}/lib
    @${MKDIR} ${PREFIX}/include/agg
    ${CP} -R ${WRKSRC}/include/ ${PREFIX}/include/agg
    @${FIND} ${PREFIX}/include/agg ! -type d | \
        ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
    @${FIND} ${PREFIX}/include/agg -type d | ${SORT} -r | \
        ${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
.if !defined(NOPORTDOCS)
    @${MKDIR} ${EXAMPLESDIR}
    ${CP} -R ${WRKSRC}/examples ${EXAMPLESDIR}
    @${FIND} ${EXAMPLESDIR} ! -type d | \
        ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
    @${FIND} ${EXAMPLESDIR} -type d | ${SORT} -r | \
        ${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
.endif

.include <bsd.port.post.mk>