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

Pedro F. Giffuni giffunip at asme.org
Wed May 31 01:00:22 UTC 2006


>Number:         98182
>Category:       ports
>Synopsis:       cad/brlcad is not installing the mged script
>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:   Wed May 31 01:00:20 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Pedro F. Giffuni
>Release:        6.1-Release (amd64)
>Organization:
>Environment:
FreeBSD etoile.cable.net.co 6.1-RELEASE FreeBSD 6.1-RELEASE #1: Fri May 12 00:18:58 COT 2006     root at etoile.cable.net.co:/usr/src/sys/amd64/compile/DIMENSION  amd64
>Description:
The BRLCAD used to have a shell script to help run the graphic environment.Recent revisions of the port have broken the way the script was supposed to be installed. I attempted, once again, to fix this script, but JIC I also removed the pkg-message as it may be confusing.

Right after I left the maintainership of this port two things were fixed:

1) The threading support was fixed on 4.x but the build still breaks on ncurses,
2) Optimizations were fixed on SPARC64.

This patch cleans 1) but I leave 2) for the current maintainer, as it might be a good idea to get rid of the optimizations altogether.
>How-To-Repeat:

>Fix:
diff -u brlcad.orig/Makefile brlcad/Makefile
--- brlcad.orig/Makefile	Tue May 30 17:12:32 2006
+++ brlcad/Makefile	Tue May 30 18:05:15 2006
@@ -157,17 +157,13 @@
 .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)
 CONFIGURE_ARGS+=	--enable-optimized
 .endif
@@ -190,6 +186,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>
Common subdirectories: brlcad.orig/files and brlcad/files
Only in brlcad.orig: pkg-message
diff -u 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

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



More information about the freebsd-ports-bugs mailing list