Date: Sat, 3 Jun 2006 22:00:40 GMT From: <pfgshield-freebsd@yahoo.com> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/98182 : cad/brlcad is not installing the mged script Message-ID: <200606032200.k53M0e3p068140@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/98182; it has been noted by GNATS. From: <pfgshield-freebsd@yahoo.com> To: Erik Greenwald <erik@smluc.org>, bug-followup@freebsd.org Cc: erikg@ARL.ARMY.MIL Subject: Re: ports/98182 : cad/brlcad is not installing the mged script Date: Sat, 3 Jun 2006 23:50:38 +0200 (CEST) OK.. this new attachment will make optimization an optional knob. Hope it get's fine: diff -ruN brlcad.orig/Makefile brlcad/Makefile --- brlcad.orig/Makefile Tue May 30 17:12:32 2006 +++ brlcad/Makefile Sat Jun 3 16:46:32 2006 @@ -157,32 +157,15 @@ .include <bsd.port.pre.mk> .if ${OSVERSION} < 500000 -LDFLAGS+= ${PTHREAD_LIBS} BROKEN= Does not compile on FreeBSD-${OSREL} -.endif - -.if !(${ARCH} == i386 || ${ARCH} == amd64) +.elif !(${ARCH} == i386 || ${ARCH} == amd64) IGNORE= dumps core on ${ARCH} .endif -.ifndef WITHOUT_OPTIMIZATION -CONFIGURE_ARGS+= --disable-debug -#.if !(${ARCH} == alpha || ${ARCH} == sparc64 || ${ARCH} == amd64) -.if !(${ARCH} == alpha || ${ARCH} == sparc64) +.ifdef WITH_OPTIMIZATION +CFLAGS+= -O3 -ffast-math -funroll-loops CONFIGURE_ARGS+= --enable-optimized .endif -.else -CONFIGURE_ARGS+= --disable-dependency-tracking --disable-libtool-lock -.endif - -.ifndef (WITHOUT_OPTIMIZATION) -pre-everything:: - @${ECHO_MSG} - @${ECHO_MSG} Hit CTRL+C now and build an unoptimized version of brlcad by - @${ECHO_MSG} specifying -DWITHOUT_OPTIMIZATION at the command line! - @${ECHO_MSG} - @sleep 2 -.endif pre-install: ${CP} ${FILESDIR}/mged.sh ${WRKSRC} @@ -190,6 +173,6 @@ ${WRKSRC}/mged.sh post-install: - ${INSTALL_SCRIPT} ${WRKSRC}/mged.sh ${LOCALBASE}/bin/mged.sh - + ${INSTALL_SCRIPT} ${WRKSRC}/mged.sh ${PREFIX}/bin/mged.sh + ${LN} -s $(PREFIX)/bin/mged.sh ${LOCALBASE}/bin/mged .include <bsd.port.post.mk> diff -ruN brlcad.orig/pkg-message brlcad/pkg-message --- brlcad.orig/pkg-message Tue May 30 17:12:32 2006 +++ brlcad/pkg-message Wed Dec 31 19:00:00 1969 @@ -1,6 +0,0 @@ -BRLCAD is now installed in it's own directory. - -Be sure to correctly add the proper location to your PATH and MANPATH variables -as suggested in the mged shell script. - -Don't forget to check the http://brlcad.org site for more information. diff -ruN brlcad.orig/pkg-plist brlcad/pkg-plist --- brlcad.orig/pkg-plist Tue May 30 17:12:32 2006 +++ brlcad/pkg-plist Tue May 30 17:55:43 2006 @@ -1,6 +1,5 @@ @unexec rm -f %%LOCALBASE%%/bin/mged -@unexec rm -f %%LOCALBASE%%/bin/mged.sh -@exec ln -s %D/%F %%LOCALBASE%%/bin/mged +@exec ln -s %%PREFIX%%/bin/mged.sh %%LOCALBASE%%/bin/mged bin/a-d bin/alias-pix bin/all_sf @@ -191,6 +190,7 @@ bin/mk_window bin/mk_winfrm bin/mk_wire +bin/mged.sh bin/molecule bin/morphedit.tcl bin/msrandom Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606032200.k53M0e3p068140>