freebsd-ports/graphics/amanith/Makefile
Jose Alonso Cardenas Marquez 501ee1a225 - New port: graphics/amanith
Amanith is an OpenSource C++ CrossPlatform framework designed for 2d & 3d
vector graphics.

Open source has made Amanith possible, so we wanna Amanith to be open source
too. This mean that Amanith source code is fully available for everyone.

Same source tree can be compiled without modifications under multiple targets.
Linux, Win32, Mac, FreeBSD, NetBSD, OpenBSD, Solaris, IRIX, AIX are only few
of them.

All the framework is heavily based on a light plug-in system.
This make fast and easy to include or esclude everything you want.

The Amanith philosophy is to support many open standards as possible.
Png, Jpeg, Svg, Xml, OpenGl, Ansi c++, and many others.

WWW:    http://www.amanith.org/

Approved by:	garga (mentor)
2006-09-03 14:32:53 +00:00

73 lines
2.1 KiB
Makefile

# New ports collection makefile for: amanith
# Date created: 2006-09-01
# Whom: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= amanith
PORTVERSION= 0.3
CATEGORIES= graphics
MASTER_SITES= http://www.amanith.org/download/files/ \
http://louhi.kempele.fi/~skyostil/projects/pyamanith/dist/
DISTNAME= ${PORTNAME:S/$/_/}${PORTVERSION:S/.//}
MAINTAINER= acm@FreeBSD.org
COMMENT= C++ CrossPlatform framework designed for 2d & 3d vector graphics
BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
jpeg.9:${PORTSDIR}/graphics/jpeg \
freetype.9:${PORTSDIR}/print/freetype2
USE_GCC= 3.4+
USE_QT_VER= 3
USE_XLIB= yes
USE_GL= yes
USE_GMAKE= yes
USE_DOS2UNIX= yes
USE_LDCONFIG= yes
MAKE_ENV= QTDIR="${LOCALBASE}" \
QMAKESPEC="${QMAKESPEC}" \
AMANITHDIR="${AMANITHDIR}"
QMAKESPEC= ${LOCALBASE}/share/qt/mkspecs/freebsd-g++
QMAKECMD= qmake
AMANITHDIR= ${WRKSRC}
WRKSRC= ${WRKDIR}/${PORTNAME}
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
IGNORE= does not build on FreeBSD 4.x
.endif
post-patch:
@${REINPLACE_CMD} -i "" -e 's|3rdpart||' ${WRKSRC}/amanith.pro
do-configure:
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKECMD} ${WRKSRC}/amanith.pro
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/lib/libamanith.so.1.0.0 ${PREFIX}/lib/libamanith.so.1
${INSTALL_PROGRAM} ${WRKSRC}/plugins/libfontimpexp.so.1.0.0 ${PREFIX}/lib/libfontimpexp.so.1
${INSTALL_PROGRAM} ${WRKSRC}/plugins/libjpegimpexp.so.1.0.0 ${PREFIX}/lib/libjpegimpexp.so.1
${INSTALL_PROGRAM} ${WRKSRC}/plugins/libpngimpexp.so.1.0.0 ${PREFIX}/lib/libpngimpexp.so.1
. for FILE in libamanith libfontimpexp libjpegimpexp libpngimpexp
cd ${PREFIX}/lib && \
${LN} -s ${FILE}.so.1 ${FILE}.so
. endfor
${MKDIR} ${PREFIX}/include/${PORTNAME}
cd ${WRKSRC}/include/${PORTNAME} && \
${FIND} * -type d -exec ${MKDIR} "${PREFIX}/include/${PORTNAME}/{}" \; && \
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${PREFIX}/include/${PORTNAME}/{}" \;
. for DIRE in fonts jpeg png
cd ${WRKSRC}/plugins/${DIRE} && \
${INSTALL_DATA} *.h ${PREFIX}/include/${PORTNAME}
. endfor
.include <bsd.port.post.mk>