From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Sep 10 19:00:39 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0BEEA16A42A for ; Sat, 10 Sep 2005 19:00:39 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 579AB43D53 for ; Sat, 10 Sep 2005 19:00:37 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8AJ0bsU018342 for ; Sat, 10 Sep 2005 19:00:37 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8AJ0b4O018341; Sat, 10 Sep 2005 19:00:37 GMT (envelope-from gnats) Resent-Date: Sat, 10 Sep 2005 19:00:37 GMT Resent-Message-Id: <200509101900.j8AJ0b4O018341@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Igor Pokrovsky Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 828EE16A41F for ; Sat, 10 Sep 2005 19:00:00 +0000 (GMT) (envelope-from igor@doom.homeunix.org) Received: from voodoo.oberon.net (voodoo.oberon.net [212.118.165.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0ACFE43D45 for ; Sat, 10 Sep 2005 19:00:00 +0000 (GMT) (envelope-from igor@doom.homeunix.org) Received: from dialup84111-182.ip.peterstar.net ([84.204.111.182] helo=doom.homeunix.org) by voodoo.oberon.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.52 (FreeBSD)) id 1EEAZn-000EwK-QF for FreeBSD-gnats-submit@freebsd.org; Sat, 10 Sep 2005 20:59:50 +0200 Received: from doom.homeunix.org (localhost [127.0.0.1]) by doom.homeunix.org (8.13.4/8.13.4) with ESMTP id j8AIxm1j094597 for ; Sat, 10 Sep 2005 22:59:48 +0400 (MSD) (envelope-from igor@doom.homeunix.org) Received: (from igor@localhost) by doom.homeunix.org (8.13.4/8.13.3/Submit) id j8AIxmke094596; Sat, 10 Sep 2005 22:59:48 +0400 (MSD) (envelope-from igor) Message-Id: <200509101859.j8AIxmke094596@doom.homeunix.org> Date: Sat, 10 Sep 2005 22:59:48 +0400 (MSD) From: Igor Pokrovsky To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/85955: New port: graphics/moth A simple to use 3D mesh editor X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Igor Pokrovsky List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Sep 2005 19:00:39 -0000 >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 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 |; 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 END-of-moth/Makefile exit --- moth.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted: