aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRusmir Dusko <nemysis@FreeBSD.org>2013-10-04 22:34:12 +0000
committerRusmir Dusko <nemysis@FreeBSD.org>2013-10-04 22:34:12 +0000
commit6594dedb7264264275a28ef34dd42f5f4624373f (patch)
tree9950ce191a46635e94c936170e98a97f97b36ff9
parentb7025a61e96350e8bbf1968b963492beb2f6d2b5 (diff)
downloadports-6594dedb7264264275a28ef34dd42f5f4624373f.tar.gz
ports-6594dedb7264264275a28ef34dd42f5f4624373f.zip
Notes
-rw-r--r--graphics/fracplanet/Makefile88
-rw-r--r--graphics/fracplanet/distinfo2
-rw-r--r--graphics/fracplanet/files/patch-fracplanet.pro11
-rw-r--r--graphics/fracplanet/files/patch-triangle_mesh_viewer_display.cpp4
-rw-r--r--graphics/fracplanet/pkg-descr2
-rw-r--r--graphics/fracplanet/pkg-plist8
6 files changed, 80 insertions, 35 deletions
diff --git a/graphics/fracplanet/Makefile b/graphics/fracplanet/Makefile
index aae2fca8a99d..5ea85ec85a3d 100644
--- a/graphics/fracplanet/Makefile
+++ b/graphics/fracplanet/Makefile
@@ -3,46 +3,92 @@
PORTNAME= fracplanet
PORTVERSION= 0.4.0
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= graphics
-MASTER_SITES= SF
+MASTER_SITES= SF \
+ SF/nemysisfreebsdp/:icons
+DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
+ ${PORTNAME}_icons.tar.gz:icons
-MAINTAINER= ports@FreeBSD.org
-COMMENT= An interactive generator of planets and terrain
+MAINTAINER= nemysis@FreeBSD.org
+COMMENT= Interactive tool for creating random fractal planets and terrain
+
+LICENSE= GPLv2
BUILD_DEPENDS= xsltproc:${PORTSDIR}/textproc/libxslt
-LIB_DEPENDS= boost_program_options:${PORTSDIR}/devel/boost-libs
+LIB_DEPENDS= libboost_program_options.so:${PORTSDIR}/devel/boost-libs
WRKSRC= ${WRKDIR}/${PORTNAME}
+USES= gmake
USE_GL= glu
-USE_QT4= corelib gui opengl \
- moc_build qmake_build
+USE_QT4= corelib moc_build qmake_build gui opengl
QT_NONSTANDARD= yes
HAS_CONFIGURE= yes
CONFIGURE_ENV= QTDIR="${QT_PREFIX}"
CONFIGURE_ARGS= -spec ${QMAKESPEC}
-USE_GMAKE= yes
-MAN1= ${PORTNAME}.1
-PORTDOCS= ${PORTNAME}.css ${PORTNAME}.htm
-PLIST_FILES= bin/${PORTNAME}
+PORTDOCS= *
+
+DOCSRCDIR1= ${WRKSRC}
+DOC_FILES1= BUGS NEWS README THANKS TODO ${PORTNAME}.css ${PORTNAME}.htm
+
+INSTALLS_ICONS= yes
+ICON_SIZES= 32x32 48x48 64x64 72x72 96x96
+
+DESKTOP_ENTRIES="Fracplanet" "${COMMENT}" "${PORTNAME}" \
+ "${PORTNAME}" "Graphics;" false
+
+OPTIONS_DEFINE= DOCS
+OPTIONS_GROUP= DOXYGEN
+OPTIONS_GROUP_DOXYGEN= HTML LATEX
+
+OPTIONS_DEFAULT= HTML
+
+HTML_DESC= Install HTML Doxygen files
+LATEX_DESC= Install LaTeX Doxygen files
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MHTML} || ${PORT_OPTIONS:MLATEX}
+BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
+.endif
-NO_STAGE= yes
post-patch:
-.for file in BUILD VERSION configure
- @${REINPLACE_CMD} -e \
- '/^#!/s|/.*bash|/bin/sh|g' ${WRKSRC}/${file}
+.for f in BUILD VERSION configure
+ @${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|g' \
+ ${WRKSRC}/${f}
.endfor
+ @${REINPLACE_CMD} -e 's|-lboost_program_options|-lboost_program_options -lGLU|' \
+ ${WRKSRC}/fracplanet.pro
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/man/man1/${PORTNAME}.1 ${MAN1PREFIX}/man/man1
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
-.for file in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+ ${INSTALL_MAN} ${WRKSRC}/man/man1/fracplanet.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/
+
+.for s in ${ICON_SIZES}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/
+ ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_${s}.png \
+ ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
.endfor
+ ${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
+ ${STAGEDIR}${PREFIX}/share/pixmaps
+
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
+.endif
+
+.if ${PORT_OPTIONS:MHTML} || ${PORT_OPTIONS:MLATEX}
+ @cd ${WRKSRC} && doxygen .
+.endif
+
+.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MHTML}
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR})
+.endif
+
+.if ${PORT_OPTIONS:MDOCS} && ${PORT_OPTIONS:MLATEX}
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} latex ${STAGEDIR}${DOCSDIR})
.endif
.include <bsd.port.mk>
diff --git a/graphics/fracplanet/distinfo b/graphics/fracplanet/distinfo
index eabd0fc216fd..73460d5020ce 100644
--- a/graphics/fracplanet/distinfo
+++ b/graphics/fracplanet/distinfo
@@ -1,2 +1,4 @@
SHA256 (fracplanet-0.4.0.tar.gz) = 38d56aba3c5cf19d4f2c218bece471d3860b161d2210a24ba94550356723482a
SIZE (fracplanet-0.4.0.tar.gz) = 101700
+SHA256 (fracplanet_icons.tar.gz) = 99eeb8ed62d45083138402c41b2af79a4b432bfcb8e63cbe83090bb2d235063b
+SIZE (fracplanet_icons.tar.gz) = 51712
diff --git a/graphics/fracplanet/files/patch-fracplanet.pro b/graphics/fracplanet/files/patch-fracplanet.pro
deleted file mode 100644
index a3a2d6db432d..000000000000
--- a/graphics/fracplanet/files/patch-fracplanet.pro
+++ /dev/null
@@ -1,11 +0,0 @@
---- fracplanet.pro~ 2012-05-19 23:50:08.000000000 -0300
-+++ fracplanet.pro 2012-05-19 23:50:19.000000000 -0300
-@@ -8,7 +8,7 @@
-
- HEADERS += $$system(ls *.h)
- SOURCES += $$system(ls *.cpp)
--LIBS += -lboost_program_options
-+LIBS += -lboost_program_options -lGLU
-
- DEFINES += QT_DLL
-
diff --git a/graphics/fracplanet/files/patch-triangle_mesh_viewer_display.cpp b/graphics/fracplanet/files/patch-triangle_mesh_viewer_display.cpp
index 6a4dd83f31ef..ef25f80a6a96 100644
--- a/graphics/fracplanet/files/patch-triangle_mesh_viewer_display.cpp
+++ b/graphics/fracplanet/files/patch-triangle_mesh_viewer_display.cpp
@@ -1,5 +1,5 @@
---- triangle_mesh_viewer_display.cpp~ 2012-05-19 23:49:24.000000000 -0300
-+++ triangle_mesh_viewer_display.cpp 2012-05-19 23:49:55.000000000 -0300
+--- triangle_mesh_viewer_display.cpp.orig 2009-10-05 00:26:36.000000000 +0200
++++ triangle_mesh_viewer_display.cpp 2013-10-03 00:25:53.000000000 +0200
@@ -24,6 +24,8 @@
#include "matrix33.h"
#include "triangle_mesh_viewer.h"
diff --git a/graphics/fracplanet/pkg-descr b/graphics/fracplanet/pkg-descr
index 743dc71895f6..ce8fde849f20 100644
--- a/graphics/fracplanet/pkg-descr
+++ b/graphics/fracplanet/pkg-descr
@@ -3,4 +3,4 @@ with oceans, mountains, icecaps and rivers. Parameters are specified
interactively and the results displayed using OpenGL. The generated
objects can be dumped in Pov-Ray format.
-WWW: http://www.bottlenose.demon.co.uk/share/fracplanet
+WWW: http://www.bottlenose.demon.co.uk/share/fracplanet/
diff --git a/graphics/fracplanet/pkg-plist b/graphics/fracplanet/pkg-plist
new file mode 100644
index 000000000000..246f8e4a2337
--- /dev/null
+++ b/graphics/fracplanet/pkg-plist
@@ -0,0 +1,8 @@
+bin/fracplanet
+man/man1/fracplanet.1.gz
+share/icons/hicolor/32x32/apps/fracplanet.png
+share/icons/hicolor/48x48/apps/fracplanet.png
+share/icons/hicolor/64x64/apps/fracplanet.png
+share/icons/hicolor/72x72/apps/fracplanet.png
+share/icons/hicolor/96x96/apps/fracplanet.png
+share/pixmaps/fracplanet.png