2012-12-14 15:30:28 +01:00
|
|
|
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mandelbulber
|
|
|
|
DISTVERSION= 1.13-1
|
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= SF/${PORTNAME}
|
|
|
|
DISTNAME= ${PORTNAME}${DISTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
|
|
COMMENT= 3D Mandelbrot fractal renderer
|
|
|
|
|
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2013-09-12 10:41:52 +02:00
|
|
|
USES= gmake pkgconfig
|
2012-12-14 15:30:28 +01:00
|
|
|
USE_GNOME= glib20 gtk20
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/makefiles
|
|
|
|
MAKEFILE= makefile
|
|
|
|
CXXFLAGS+= -DSHARED_DIR=\\\"${DATADIR}\\\"
|
|
|
|
|
|
|
|
PLIST_FILES= bin/${PORTNAME} share/applications/${PORTNAME}.desktop
|
|
|
|
|
|
|
|
PORTDOCS= README NEWS
|
|
|
|
PORTDATA= *
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/share/mandelbulber|${DATADIR}|' \
|
|
|
|
${WRKSRC}/${PORTNAME}.desktop
|
|
|
|
|
|
|
|
do-install:
|
2013-12-16 19:18:07 +01:00
|
|
|
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications/
|
2013-10-19 04:38:15 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
2013-12-16 19:18:07 +01:00
|
|
|
cd ${WRKSRC}/usr/share && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/
|
2013-10-19 04:38:15 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2012-12-14 15:30:28 +01:00
|
|
|
.for f in ${PORTDOCS}
|
2013-10-19 04:38:15 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
|
2012-12-14 15:30:28 +01:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|