50 lines
1.4 KiB
Makefile
50 lines
1.4 KiB
Makefile
# Ports collection makefile for: agg
|
|
# Date created: Aug 3, 2004
|
|
# Whom: ijliao
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= agg
|
|
PORTVERSION= 2.3
|
|
PORTREVISION= 1
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= http://www.antigrain.com/ \
|
|
${MASTER_SITE_SOURCEFORGE} \
|
|
${MASTER_SITE_LOCAL:S/%SUBDIR%/novel/}
|
|
MASTER_SITE_SUBDIR= vector-agg
|
|
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//g}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= A High Quality Rendering Engine for C++
|
|
|
|
BUILD_WRKSRC= ${WRKDIR}/agg23/src
|
|
USE_GMAKE= yes
|
|
MAKE_ENV= C="${CC}" CXX="${CXX}" AGGCXXFLAGS="${CXXFLAGS}"
|
|
CXXFLAGS+= -I${X11BASE}/include -L${X11BASE}/lib -I../include -L./
|
|
|
|
PLIST_FILES= lib/libagg.a
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-extract:
|
|
@${CP} -f ${FILESDIR}/Makefile.in.FreeBSD ${WRKSRC}
|
|
|
|
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>
|