Date: Mon, 17 Dec 2018 02:58:23 +0000 (UTC) From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r487648 - in head/science: . drawxtl drawxtl/files Message-ID: <201812170258.wBH2wNGE010239@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: yuri Date: Mon Dec 17 02:58:23 2018 New Revision: 487648 URL: https://svnweb.freebsd.org/changeset/ports/487648 Log: New port: science/drawxtl: Crystal structure visualization tool Added: head/science/drawxtl/ head/science/drawxtl/Makefile (contents, props changed) head/science/drawxtl/distinfo (contents, props changed) head/science/drawxtl/files/ head/science/drawxtl/files/patch-Makefile (contents, props changed) head/science/drawxtl/pkg-descr (contents, props changed) Modified: head/science/Makefile Modified: head/science/Makefile ============================================================================== --- head/science/Makefile Mon Dec 17 02:45:39 2018 (r487647) +++ head/science/Makefile Mon Dec 17 02:58:23 2018 (r487648) @@ -65,6 +65,7 @@ SUBDIR += dkh SUBDIR += dlib-cpp SUBDIR += dlpoly-classic + SUBDIR += drawxtl SUBDIR += eccodes SUBDIR += elk SUBDIR += epte Added: head/science/drawxtl/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/drawxtl/Makefile Mon Dec 17 02:58:23 2018 (r487648) @@ -0,0 +1,42 @@ +# $FreeBSD$ + +PORTNAME= DRAWxtl +DISTVERSION= 5.5 +CATEGORIES= science +MASTER_SITES= https://www.lwfinger.com/drawxtl/ +DISTNAME= ${PORTNAME}${DISTVERSION:S/.//} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Crystal structure visualization tool + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS= libfltk.so:x11-toolkits/fltk + +USES= desktop-file-utils gl gmake localbase +USE_GL= gl glu +USE_XORG= xinerama xft xext x11 xpm + +BINARY_ALIAS= gcc=${CC} g++=${CXX} + +WRKSRC= ${WRKDIR}/${PORTNAME}/source/${DISTNAME} + +PLIST_FILES= bin/${PORTNAME} share/pixmaps/${PORTNAME}.xpm + +DESKTOP_ENTRIES="${PORTNAME}" \ + "${COMMENT}" \ + "${PREFIX}/share/pixmaps/${PORTNAME}.xpm" \ + "${PORTNAME}" \ + "Chemistry;Physics;Science;Education;Viewer;" \ + "" +POST_PLIST= complete-desktop-entries + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/../../exe/${DISTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.xpm ${STAGEDIR}${PREFIX}/share/pixmaps + +complete-desktop-entries: + @${ECHO} "MimeType=chemical/x-cif;chemical/x-shelx;" >> ${STAGEDIR}${DESKTOPDIR}/${PORTNAME}.desktop + +.include <bsd.port.mk> Added: head/science/drawxtl/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/drawxtl/distinfo Mon Dec 17 02:58:23 2018 (r487648) @@ -0,0 +1,3 @@ +TIMESTAMP = 1545010903 +SHA256 (DRAWxtl55.tar.gz) = e33bddb99f349d02f2c889ab04116285daf2ee026c2a33e8129866ffc6eb5da4 +SIZE (DRAWxtl55.tar.gz) = 4014223 Added: head/science/drawxtl/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/drawxtl/files/patch-Makefile Mon Dec 17 02:58:23 2018 (r487648) @@ -0,0 +1,34 @@ +--- Makefile.orig 2011-03-08 18:55:26 UTC ++++ Makefile +@@ -38,7 +38,7 @@ ifeq ($(OS),Linux) + + BUILD_CPU=$(shell uname -m) + ifneq (,$(findstring 64,$(BUILD_CPU))) +- libdir = /usr/lib64/ ++ libdir = ${prefix}/lib/ + endif + + # compiler name: +@@ -52,11 +52,11 @@ ifeq ($(OS),Linux) + CXXFLAGS = $(OPTIM) -I/usr/X11R6/include $(GLUT) + + # libraries to link with: +- GLDLIBS = -L/usr/X11R6/lib -lGLU -lGL -lXinerama -lXft -lpthread -lm -lXext -lX11 -lXpm \ ++ GLDLIBS = -L$(prefix)/lib -lGLU -lGL -lXinerama -lXft -lpthread -lm -lXext -lX11 -lXpm \ + -lfltk \ + # -lglut # only needed with old versions of fltk before 1.1.8 + # -lXi -lgdkglext-x11-1.0a # Fedora Core 2 needs these libraries +- LINKFLTKGL = $(libdir)libfltk.a $(libdir)libfltk_gl.a ++ LINKFLTKGL = $(libdir)libfltk.so $(libdir)libfltk_gl.so + + # The extension to use for executables... + EXEEXT = +@@ -216,7 +216,7 @@ clean: + .deps: $(CPPFILES) + echo "Building dependencies..." + echo >.deps +- for i in $(CPPFILES); do gcc -MM $(PREINC) $$i >>.deps; done ++ for i in $(CPPFILES); do gcc $(CFLAGS) -MM $(PREINC) $$i >>.deps; done + + -include .deps + Added: head/science/drawxtl/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/drawxtl/pkg-descr Mon Dec 17 02:58:23 2018 (r487648) @@ -0,0 +1,10 @@ +DRAWxtl is a program to display crystal structures on ordinary computer hardware +and operating systems. Four forms of graphics are produced: +(1) an openGL window for immediate viewing, +(2) the Persistence of Vision Ray Tracer (POV-RAY) scene language for + publication-quality drawings, (3) the Virtual Reality Modeling Language + (VRML) for dissemination across the Internet, and +(4) a Postscript rendering of the OpenGL window for those that want high-quality + output but do not have POV-RAY installed. + +WWW: http://www.lwfinger.net/drawxtl/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812170258.wBH2wNGE010239>