Date: Mon, 5 Jan 2004 23:45:45 +0900 From: KATO Tsuguru <tkato@prontomail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/60937: Update port: science/gdis to 0.81 Message-ID: <20040105234545.3156401f.tkato@prontomail.com> Resent-Message-ID: <200401051450.i05EoJbj089383@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 60937 >Category: ports >Synopsis: Update port: science/gdis to 0.81 >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: Mon Jan 05 06:50:19 PST 2004 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: FreeBSD 4.9-RELEASE-p1 i386 >Organization: >Environment: >Description: - Update to version 0.81 New file: files/patch-main.c >How-To-Repeat: >Fix: diff -urN /usr/ports/science/gdis/Makefile science/gdis/Makefile --- /usr/ports/science/gdis/Makefile Mon Jul 21 14:55:15 2003 +++ science/gdis/Makefile Wed Dec 31 02:18:38 2003 @@ -7,33 +7,38 @@ # PORTNAME= gdis -PORTVERSION= 0.77.4 +PORTVERSION= 0.81 CATEGORIES= science -MASTER_SITES= ftp://ftp.seul.org/pub/gdis/ +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} EXTRACT_SUFX= .tgz MAINTAINER= ports@FreeBSD.org COMMENT= Display and manipulation of isolated molecules and periodic systems -LIB_DEPENDS= gtkgl.5:${PORTSDIR}/x11-toolkits/gtkglarea +LIB_DEPENDS= gtkglext-x11-1.0.2:${PORTSDIR}/x11-toolkits/gtkglext -USE_MESA= yes -USE_GNOME= gtk12 +USE_GL= yes +USE_GNOME= gtk20 USE_REINPLACE= yes -USE_GMAKE= yes -ALL_TARGET= main + +CFLAGS+= -DINSTALL=\"\\\"${DATADIR}\\\"\" post-patch: - @${REINPLACE_CMD} -e 's|^CC|#CC|g ; \ - s|^CFLAGS|#CFLAGS|g ; \ - s|/usr/local/bin|${DATADIR}|g ; \ - s|gtk-config|${GTK_CONFIG}|g ; \ - s|-I/usr/local/include||g ; \ - s|-lgtkgl|-lgtkgl ${PTHREAD_LIBS:S/"//g}|g ; \ - s|-DGTK_GL|-DGTK_GL ${PTHREAD_CFLAGS}|g' ${WRKSRC}/Makefile @${FIND} ${WRKSRC} -name "*.c" | ${XARGS} ${REINPLACE_CMD} -e \ 's|<sys/dir.h>|<dirent.h>|g ; \ s|struct direct|struct dirent|g' + +do-configure: + @${SED} 's|SRC.*=|SRCS=|g' < ${WRKSRC}/makefile.src > ${WRKSRC}/Makefile + @${ECHO_CMD} 'PROG=gdis' >> ${WRKSRC}/Makefile + @${ECHO_CMD} 'CFLAGS+=`pkg-config --cflags gtk+-2.0 gthread-2.0 gtkglext-1.0`' >> ${WRKSRC}/Makefile + @${ECHO_CMD} 'LDADD=`pkg-config --libs gtk+-2.0 gthread-2.0 gtkglext-1.0`' >> ${WRKSRC}/Makefile + @${ECHO_CMD} 'PREFIX?=/usr/local' >> ${WRKSRC}/Makefile + @${ECHO_CMD} 'DESTDIR=$${PREFIX}' >> ${WRKSRC}/Makefile + @${ECHO_CMD} 'BINDIR=/bin' >> ${WRKSRC}/Makefile + @${ECHO_CMD} 'NOMAN=true' >> ${WRKSRC}/Makefile + @${ECHO_CMD} '.include <bsd.prog.mk>' >> ${WRKSRC}/Makefile do-install: ${INSTALL_PROGRAM} ${WRKSRC}/gdis ${PREFIX}/bin diff -urN /usr/ports/science/gdis/distinfo science/gdis/distinfo --- /usr/ports/science/gdis/distinfo Mon Jul 21 14:55:15 2003 +++ science/gdis/distinfo Wed Dec 31 00:25:26 2003 @@ -1 +1 @@ -MD5 (gdis-0.77.4.tgz) = 3aa4538feaa236876a01a64507b485e4 +MD5 (gdis-0.81.tgz) = 454c0609f2505d334f94f2db4484d769 diff -urN /usr/ports/science/gdis/files/patch-main.c science/gdis/files/patch-main.c --- /usr/ports/science/gdis/files/patch-main.c Thu Jan 1 09:00:00 1970 +++ science/gdis/files/patch-main.c Wed Dec 31 02:12:04 2003 @@ -0,0 +1,15 @@ +--- main.c.orig Tue Nov 4 15:08:29 2003 ++++ main.c Wed Dec 31 02:11:54 2003 +@@ -433,6 +433,12 @@ + } + } + ++#ifdef INSTALL ++strcpy(sysenv.elem_file, INSTALL); ++strcat(sysenv.elem_file, DIR_SEP); ++strcat(sysenv.elem_file, ELEM_FILE); ++#endif ++ + /* defaults */ + sysenv.povray_exe = g_strdup("povray"); + sysenv.convert_exe = g_strdup("convert"); diff -urN /usr/ports/science/gdis/pkg-descr science/gdis/pkg-descr --- /usr/ports/science/gdis/pkg-descr Tue Mar 5 12:36:20 2002 +++ science/gdis/pkg-descr Wed Dec 31 00:22:31 2003 @@ -9,4 +9,4 @@ highlighting, etc.) - Animation of BIOSYM files -WWW: http://gdis.seul.org/ +WWW: http://gdis.sourceforge.net/ diff -urN /usr/ports/science/gdis/pkg-plist science/gdis/pkg-plist --- /usr/ports/science/gdis/pkg-plist Fri Oct 25 02:15:28 2002 +++ science/gdis/pkg-plist Wed Dec 31 01:53:30 2003 @@ -1,7 +1,7 @@ bin/gdis -%%PORTDOCS%%share/doc/gdis/CHANGELOG -%%PORTDOCS%%share/doc/gdis/README -%%PORTDOCS%%share/doc/gdis/TODO -share/gdis/gdis.elements -@dirrm share/gdis -%%PORTDOCS%%@dirrm share/doc/gdis +%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/TODO +%%DATADIR%%/gdis.elements +@dirrm %%DATADIR%% +%%PORTDOCS%%@dirrm %%DOCSDIR%% >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040105234545.3156401f.tkato>