Date: Fri, 17 Jan 2003 17:09:38 -0600 (CST) From: Glenn Johnson <gjohnson@srrc.ars.usda.gov> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/47177: Have biology/molden build and install the opengl binary Message-ID: <200301172309.h0HN9cWV024580@node1.cluster.srrc.usda.gov>
next in thread | raw e-mail | index | archive | help
>Number: 47177 >Category: ports >Synopsis: Have biology/molden build and install the opengl binary >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jan 17 15:10:07 PST 2003 >Closed-Date: >Last-Modified: >Originator: Glenn Johnson >Release: FreeBSD 4.7-STABLE i386 >Organization: >Environment: System: FreeBSD node1.cluster.srrc.usda.gov 4.7-STABLE FreeBSD 4.7-STABLE #13: Thu Jan 9 13:11:27 CST 2003 root@node1.cluster.srrc.usda.gov:/usr/obj/usr/src/sys/CLUSTER-FW i386 >Description: The molden program has an optional OpenGL molecular viewer. The attached patch will have the port build and install the opengl viewer, moldenogl, as well as the main molden binary. >How-To-Repeat: <code/input/activities to reproduce the problem (multiple lines)> >Fix: --- molden.update begins here --- diff -ruN molden.orig/Makefile molden/Makefile --- molden.orig/Makefile Fri Jan 17 15:49:55 2003 +++ molden/Makefile Fri Jan 17 16:11:01 2003 @@ -7,6 +7,7 @@ PORTNAME= molden PORTVERSION= 3.8 +PORTREVISION= 1 CATEGORIES= biology MASTER_SITES= ftp://ftp.cmbi.kun.nl/pub/molgraph/molden/ DISTNAME= ${PORTNAME}${PORTVERSION} @@ -39,7 +40,7 @@ (cd ${WRKSRC} && ${MAKE}) do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/molden ${PREFIX}/bin/ + ${INSTALL_SCRIPT} ${WRKSRC}/molden ${WRKSRC}/moldenogl ${PREFIX}/bin .if !defined(NOPORTDOCS) ${MKDIR} ${PREFIX}/share/doc/molden ${MKDIR} ${PREFIX}/share/molden/test diff -ruN molden.orig/files/patch-aa molden/files/patch-aa --- molden.orig/files/patch-aa Fri Jan 17 15:49:55 2003 +++ molden/files/patch-aa Fri Jan 17 16:07:19 2003 @@ -1,71 +1,60 @@ -*** makefile.orig Mon Jan 24 23:28:24 2000 ---- makefile Wed Jun 7 04:25:36 2000 -*************** -*** 12,19 **** - # - # Disregard compiler warnings on rdmolf.f - # -! CC = cc -! LIBS = -lX11 -lm - - # Ultrix, Dec Alpha, Linux ( and best start for Unix other than below ) - # ---- 12,37 ---- - # - # Disregard compiler warnings on rdmolf.f - # -! #CC = cc -! #LIBS = -lX11 -lm -! -! ### -! # FreeBSD -! #CC = gcc -! CFLAGS += -c -DDOBACK -DHASTIMER -I/usr/X11R6/include -! #FC = f77 -! .if ${MACHINE_ARCH} == i386 -! FFLAGS += -malign-double -! CFLAGS += -malign-double -! .endif -! .if ${OSVERSION} < 400005 -! FFLAGS += -Nn802 -Nx400 -! .else -! FFLAGS += -Wno-globals -fno-globals -! .endif -! LIBS = -L/usr/X11R6/lib -lX11 -lm -! LDR = f77 -! ### - - # Ultrix, Dec Alpha, Linux ( and best start for Unix other than below ) - # -*************** -*** 49,57 **** - - - # Silicon Graphics -! CFLAGS = -c -DDOBACK -DHASTIMER -DCOLOR_OFFSET=0.0 -! FFLAGS = -! LDR = f77 - - # AIX - # ---- 67,75 ---- - - - # Silicon Graphics -! #CFLAGS = -c -DDOBACK -DHASTIMER -DCOLOR_OFFSET=0.0 -! #FFLAGS = -! #LDR = f77 - - # AIX - # -*************** -*** 138,143 **** ---- 156,163 ---- - # on linux with older Mesa installations try: - #LIBSG = -L/usr/X11R6/lib -lglut -lMesaGLU -lMesaGL -lXmu -lXi -lX11 -lm - # -+ -+ all: molden - - molden: $(OBJS) $(SOBJ) mpdum.o xwin.o - $(LDR) -o molden $(OBJS) $(SOBJ) mpdum.o xwin.o $(LIBS) + +$FreeBSD$ + +--- makefile.orig Tue Nov 5 04:43:01 2002 ++++ makefile Fri Jan 17 16:04:35 2003 +@@ -12,13 +12,31 @@ + # + # Disregard compiler warnings on rdmolf.f + # +-CC = cc +-LIBS = -lX11 -lm ++#CC = cc ++#LIBS = -lX11 -lm ++ ++### ++# FreeBSD ++#CC = gcc ++CFLAGS += -c -DDOBACK -DHASTIMER -I/usr/X11R6/include ++#FC = f77 ++.if ${MACHINE_ARCH} == i386 ++FFLAGS += -malign-double ++CFLAGS += -malign-double ++.endif ++.if ${OSVERSION} < 400005 ++FFLAGS += -Nn802 -Nx400 ++.else ++FFLAGS += -Wno-globals -fno-globals ++.endif ++LIBS = -L/usr/X11R6/lib -lX11 -lm ++LDR = f77 ++### + + # Silicon Graphics +-CFLAGS = -c -DDOBACK -DHASTIMER -DCOLOR_OFFSET=0.0 +-FFLAGS = +-LDR = f77 ++#CFLAGS = -c -DDOBACK -DHASTIMER -DCOLOR_OFFSET=0.0 ++#FFLAGS = ++#LDR = f77 + + # Ultrix, Dec Alpha, Linux ( and best start for Unix other than below ) + # +@@ -160,7 +178,7 @@ + # For The OpenGL Graphics library molden helper 'moldenogl' + # (make moldenogl) + # +-LIBSG = -lglut -lGLU -lGL -lXmu -lX11 -lm ++LIBSG = -L${X11BASE}/lib -lglut -lGLU -lGL -lXmu -lX11 -lm + # + # on linux : + # +@@ -170,6 +188,8 @@ + # + #LIBSG = -L/usr/X11R6/lib -lglut -lMesaGLU -lMesaGL -lXmu -lXi -lX11 -lm + # ++ ++all: molden moldenogl + + molden: $(OBJS) $(SOBJ) mpdum.o xwin.o + $(LDR) -o molden $(OBJS) $(SOBJ) mpdum.o xwin.o $(LIBS) diff -ruN molden.orig/pkg-plist molden/pkg-plist --- molden.orig/pkg-plist Fri Jan 17 15:49:55 2003 +++ molden/pkg-plist Fri Jan 17 16:08:35 2003 @@ -1,4 +1,5 @@ bin/molden +bin/moldenogl %%PORTDOCS%%share/doc/molden/figures.ps.Z %%PORTDOCS%%share/doc/molden/manual.ps.Z %%PORTDOCS%%share/doc/molden/manual.txt.Z --- molden.update ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301172309.h0HN9cWV024580>