ports/98182 : cad/brlcad is not installing the mged script

pfgshield-freebsd at yahoo.com pfgshield-freebsd at yahoo.com
Sat Jun 3 22:00:46 UTC 2006


The following reply was made to PR ports/98182; it has been noted by GNATS.

From: <pfgshield-freebsd at yahoo.com>
To: Erik Greenwald <erik at smluc.org>, bug-followup at freebsd.org
Cc: erikg at 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
 - at unexec rm -f %%LOCALBASE%%/bin/mged.sh
 - at exec ln -s %D/%F %%LOCALBASE%%/bin/mged
 + at 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 



More information about the freebsd-ports-bugs mailing list