diff options
author | pav <pav@FreeBSD.org> | 2005-09-19 05:19:46 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-09-19 05:19:46 +0800 |
commit | 3f9ac4d76f7c57f1428dc717b33971ff4a6e43a7 (patch) | |
tree | e245bd57419e8737b6f9624cf15631b2bacfd53a /graphics/fracplanet | |
parent | da6f6a1485823513a596fef72a2b5690984265f8 (diff) | |
download | freebsd-ports-gnome-3f9ac4d76f7c57f1428dc717b33971ff4a6e43a7.tar.gz freebsd-ports-gnome-3f9ac4d76f7c57f1428dc717b33971ff4a6e43a7.tar.zst freebsd-ports-gnome-3f9ac4d76f7c57f1428dc717b33971ff4a6e43a7.zip |
Fracplanet is an application to generate random planets and terrain
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.
PR: ports/86275
Submitted by: Igor Pokrovsky <ip@doom.homeunix.org>
Diffstat (limited to 'graphics/fracplanet')
-rw-r--r-- | graphics/fracplanet/Makefile | 54 | ||||
-rw-r--r-- | graphics/fracplanet/distinfo | 2 | ||||
-rw-r--r-- | graphics/fracplanet/files/patch-fracplanet.pro | 32 | ||||
-rw-r--r-- | graphics/fracplanet/pkg-descr | 9 |
4 files changed, 97 insertions, 0 deletions
diff --git a/graphics/fracplanet/Makefile b/graphics/fracplanet/Makefile new file mode 100644 index 000000000000..c374a02bbba8 --- /dev/null +++ b/graphics/fracplanet/Makefile @@ -0,0 +1,54 @@ +# New ports collection makefile for: fracplanet +# Date created: 15 Sep 2005 +# Whom: Igor Pokrovsky <ip@doom.homeunix.org> +# +# $FreeBSD$ +# + +PORTNAME= fracplanet +PORTVERSION= 0.2.0 +CATEGORIES= graphics +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= ip@doom.homeunix.org +COMMENT= An interactive generator of planets and terrain + +BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake + +USE_REINPLACE= yes +USE_GL= yes +USE_QT_VER= 3 +USE_X_PREFIX= yes +MAKE_ENV= QTDIR="${X11BASE}" QMAKESPEC="${QMAKESPEC}" VERSION_NUMBER="${PORTVERSION}" +WRKSRC= ${WRKDIR}/${PORTNAME} + +QMAKE?= ${LOCALBASE}/bin/qmake +QMAKESPEC?= ${LOCALBASE}/share/qt/mkspecs/freebsd-g++ + +PLIST_FILES= bin/${PORTNAME} +PORTDOCS= fracplanet.htm fracplanet.css + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 500000 +BROKEN= "Does not build on FreeBSD 4.x" +.endif + +post-patch: + @${REINPLACE_CMD} -e \ + 's|%%PREFIX%%|${PREFIX}|g; s|%%DOCSDIR%%|${DOCSDIR}|g' \ + ${WRKSRC}/${PORTNAME}.pro + +do-configure: + cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin + +.ifndef (NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} +.endif + +.include <bsd.port.post.mk> diff --git a/graphics/fracplanet/distinfo b/graphics/fracplanet/distinfo new file mode 100644 index 000000000000..34eb67f21c43 --- /dev/null +++ b/graphics/fracplanet/distinfo @@ -0,0 +1,2 @@ +MD5 (fracplanet-0.2.0.tar.gz) = 16c2a59fc1614f1f1c69eff16d10a39e +SIZE (fracplanet-0.2.0.tar.gz) = 68440 diff --git a/graphics/fracplanet/files/patch-fracplanet.pro b/graphics/fracplanet/files/patch-fracplanet.pro new file mode 100644 index 000000000000..4d0350ba7f0b --- /dev/null +++ b/graphics/fracplanet/files/patch-fracplanet.pro @@ -0,0 +1,32 @@ +--- fracplanet.pro.orig ++++ fracplanet.pro +@@ -1,15 +1,15 @@ + TEMPLATE = app + + # append debug or release +-CONFIG+= qt opengl debug # release ++CONFIG+= qt opengl release # debug + + ####################################### + # Installation + + INSTALLS += executable documentation +-executable.path = /usr/local/bin ++executable.path = %%PREFIX%%/bin + executable.files = fracplanet +-documentation.path = /usr/local/share/doc/fracplanet ++documentation.path = %%DOCSDIR%% + documentation.files = fracplanet.htm fracplanet.css + + ################## +@@ -17,8 +17,8 @@ + # Now leaving these ON for general distribution + # -funroll-loops unproven + +-QMAKE_CXXFLAGS_RELEASE -= -O2 +-QMAKE_CXXFLAGS_RELEASE += -O3 -fomit-frame-pointer -ffast-math ++#QMAKE_CXXFLAGS_RELEASE -= -O2 ++#QMAKE_CXXFLAGS_RELEASE += -O3 -fomit-frame-pointer -ffast-math + + ################## + # Architecture specific optimisations diff --git a/graphics/fracplanet/pkg-descr b/graphics/fracplanet/pkg-descr new file mode 100644 index 000000000000..47e60b1719c7 --- /dev/null +++ b/graphics/fracplanet/pkg-descr @@ -0,0 +1,9 @@ +Fracplanet is an application to generate random planets and terrain +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 + +- Igor Pokrovsky +ip@doom.homeunix.org |