Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Sep 2005 22:59:48 +0400 (MSD)
From:      Igor Pokrovsky <ip@doom.homeunix.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/85955: New port: graphics/moth A simple to use 3D mesh editor
Message-ID:  <200509101859.j8AIxmke094596@doom.homeunix.org>
Resent-Message-ID: <200509101900.j8AJ0b4O018341@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         85955
>Category:       ports
>Synopsis:       New port: graphics/moth A simple to use 3D mesh editor
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 10 19:00:36 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Igor Pokrovsky
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
>Environment:
System: FreeBSD doom.homeunix.org 4.11-STABLE FreeBSD 4.11-STABLE #0: Wed Sep 7 09:26:18 MSD 2005 root@doom.homeunix.org:/usr/obj/usr/src/sys/KERNEL-p3 i386


	
>Description:
Moth is a simple to use triangle mesh editor based on standartized
OpenGL and XML (file format) technologies. It's major field of application
is the creation of 3D models for interactive applications like games,
visualizations, simulations, virtual worlds and similar uses.
Another field of application is 3D sketching.

WWW:	http://moth.titanothere.com/
	
>How-To-Repeat:
	
>Fix:

	

--- moth.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	moth
#	moth/pkg-descr
#	moth/files
#	moth/files/patch-Makefile
#	moth/distinfo
#	moth/Makefile
#
echo c - moth
mkdir -p moth > /dev/null 2>&1
echo x - moth/pkg-descr
sed 's/^X//' >moth/pkg-descr << 'END-of-moth/pkg-descr'
XMoth is a simple to use triangle mesh editor based on standartized
XOpenGL and XML (file format) technologies. It's major field of application
Xis the creation of 3D models for interactive applications like games,
Xvisualizations, simulations, virtual worlds and similar uses.
XAnother field of application is 3D sketching.
X
XWWW:	http://moth.titanothere.com/
X
X- Igor Pokrovsky
Xip@doom.homeunix.org
END-of-moth/pkg-descr
echo c - moth/files
mkdir -p moth/files > /dev/null 2>&1
echo x - moth/files/patch-Makefile
sed 's/^X//' >moth/files/patch-Makefile << 'END-of-moth/files/patch-Makefile'
X--- Makefile.orig
X+++ Makefile
X@@ -15,38 +15,40 @@
X ##################################################
X 
X # Select a compiler  
X-CC=g++
X+#CC=g++
X 
X # Compiler flags - uncomment the line trailer for compiling
X # a debugging version or add your own flags.
X-CFLAGS = -O2 -Wall #-g -D__DEBUG__
X+#CFLAGS = -O2 -Wall #-g -D__DEBUG__
X 
X # if no QTDIR environment variable is set on your system, you should
X # not be able to use Qt. However, go ahead and try your luck or, better,
X # install Qt properly.
X-ifndef QTDIR
X-	QTDIR=/usr/lib/qt3
X-endif
X+#ifndef QTDIR
X+#	QTDIR=/usr/lib/qt3
X+#endif
X 
X # change the install dir as needed.
X INSTALL_DIR = /usr/local
X 
X # This path points to the location of the X libraries
X-XLIBDIR=/usr/X11R6/lib
X+XLIBDIR=$(X11BASE)/lib
X 
X-MOTH_INCLUDES=/usr/local/include
X-MOTH_LIBRARIES=/usr/local/lib
X+GLINCLUDEDIR=$(X11BASE)/include
X 
X-MOC=$(QTDIR)/bin/moc
X+#MOTH_INCLUDES=/usr/local/include
X+#MOTH_LIBRARIES=/usr/local/lib
X+
X+#MOC=$(QTDIR)/bin/moc
X PROGNAME = moth
X 
X SOURCE_DIR=./src
X INCLUDE_DIR=./include
X 
X #uncomment the -I$(MOTH_INCLUDES) part if that directory is not a system include dir.
X-INCLUDES = -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I./include -I$(QTDIR)/include -I$(GLINCLUDEDIR) #-I$(MOTH_INCLUDES)
X+INCLUDES = -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I. -I./include -I$(QTDIR)/include -I$(GLINCLUDEDIR) -I$(MOTH_INCLUDES)
X 
X-LIBRARIES = -L$(XLIBDIR) -L$(MOTH_LIBRARIES) -L$(QTDIR)/lib -lqt-mt -lpthread -lmoth -ltiff -lGL -lGLU -lXmu -lXext -lX11 -lm
X+LIBRARIES = -L$(XLIBDIR) -L${LOCALBASE}/lib -L$(MOTH_LIBRARIES) -L$(QTDIR)/lib -lqt-mt ${PTHREAD_LIBS} -lmoth -ltiff -lGL -lGLU -lXmu -lXext -lX11 -lm
X 
X ##################################################
X #
X@@ -160,7 +162,7 @@
X 
X $(PROGNAME):	$(OBJS)
X 		g++ $(OBJS) $(CFLAGS) -o ./bin/$(PROGNAME) $(LIBRARIES)
X-		strip ./bin/$(PROGNAME)
X+#		strip ./bin/$(PROGNAME)
X 	
X clean:       
X 		rm -f $(OBJS) $(MOFS) bin/$(PROGNAME) bin/$(PROGNAME).mesa core
END-of-moth/files/patch-Makefile
echo x - moth/distinfo
sed 's/^X//' >moth/distinfo << 'END-of-moth/distinfo'
XMD5 (moth_1.0.tar.gz) = f81a1f382bef418936eeb0620b807db9
XSIZE (moth_1.0.tar.gz) = 955784
XMD5 (libmoth_1.0.tar.gz) = a401c4964454cf8f4d1e137e25b8240d
XSIZE (libmoth_1.0.tar.gz) = 180729
END-of-moth/distinfo
echo x - moth/Makefile
sed 's/^X//' >moth/Makefile << 'END-of-moth/Makefile'
X# New ports collection makefile for:	moth
X# Date created:				10 Sep 2005
X# Whom:					Igor Pokrovsky <ip@doom.homeunix.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	moth
XPORTVERSION=	1.0
XCATEGORIES=	graphics
XMASTER_SITES=	http://moth.titanothere.com/moth/
XDISTFILES=	${PORTNAME}_${PORTVERSION}${EXTRACT_SUFX} \
X		lib${PORTNAME}_${PORTVERSION}${EXTRACT_SUFX}
X
XMAINTAINER=	ip@doom.homeunix.org
XCOMMENT=	A simple to use 3D mesh editor
X
XLIB_DEPENDS=	tiff.4:${PORTSDIR}/graphics/tiff
X
XUSE_REINPLACE=	yes
XUSE_GMAKE=	yes
XUSE_QT_VER=	3
XUSE_GL=		yes
XUSE_X_PREFIX=	yes
XMAKE_ARGS=	CC="${CXX}" X11BASE="${X11BASE}" MOC="${MOC}" \
X		CFLAGS="${CXXFLAGS} ${PTHREAD_CFLAGS} ${QTCPPFLAGS}" \
X		QTDIR="${X11BASE}" PTHREAD_LIBS="${PTHREAD_LIBS}" \
X		MOTH_INCLUDES="${WRKSRC_MOTHLIB}/include" \
X		MOTH_LIBRARIES="${WRKSRC_MOTHLIB}/lib"
XALL_TARGET=	clean moth
X
XPLIST_FILES=	bin/${PORTNAME}
XPORTDOCS=	manual.pdf
X
XWRKSRC=		${WRKDIR}/${PORTNAME}_${PORTVERSION}
XWRKSRC_MOTHLIB=	${WRKDIR}/lib${PORTNAME}_${PORTVERSION}
X
Xpost-patch:
X.for i in CC CFLAGS
X	@${REINPLACE_CMD} -E -e "s|^(${i}[[:space:]]*=)|#\1|" \
X		${WRKSRC_MOTHLIB}/Makefile
X.endfor
X
X	@${REINPLACE_CMD} -i '' -e 's|g++|${CXX}|g' ${WRKSRC}/Makefile
X
X	@(${FIND} -X ${WRKSRC_MOTHLIB}/src ${WRKSRC}/src -name '*.cpp' | \
X	  ${XARGS} ${GREP} -lFw -e "`${PRINTF} 'M_PI\nexp\n'`" | \
X	  ${XARGS} -L 1 ${REINPLACE_CMD} -E -e '1s|^|#include <math.h>|; 1G')
X
X# build libmoth first
Xpre-build:
X	@(cd ${WRKSRC_MOTHLIB} && \
X	${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} ${ALL_TARGET})
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${PREFIX}/bin
X.ifndef (NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${DOCSDIR}
X.endif
X
X.include <bsd.port.mk>
END-of-moth/Makefile
exit
--- moth.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509101859.j8AIxmke094596>