summaryrefslogtreecommitdiffstats
path: root/science
diff options
context:
space:
mode:
authordwcjr <dwcjr@FreeBSD.org>2002-10-24 13:35:13 +0000
committerdwcjr <dwcjr@FreeBSD.org>2002-10-24 13:35:13 +0000
commitb35511290dae45b4df935def8d6195b76a6783d4 (patch)
treef809e22f3c8d3d0c1078aa558f1f50112d33231a /science
parentae82f06bba30f2ed00041412993e78d1cf99e50a (diff)
downloadFreeBSD-ports-b35511290dae45b4df935def8d6195b76a6783d4.zip
FreeBSD-ports-b35511290dae45b4df935def8d6195b76a6783d4.tar.gz
Update to 0.77.0
PR: 44353 Submitted by: tkato@prontomail.com
Diffstat (limited to 'science')
-rw-r--r--science/gdis/Makefile33
-rw-r--r--science/gdis/distinfo2
-rw-r--r--science/gdis/files/patch-gdis.h11
-rw-r--r--science/gdis/pkg-plist6
4 files changed, 28 insertions, 24 deletions
diff --git a/science/gdis/Makefile b/science/gdis/Makefile
index c43fc31..26ebba2 100644
--- a/science/gdis/Makefile
+++ b/science/gdis/Makefile
@@ -7,32 +7,43 @@
#
PORTNAME= gdis
-PORTVERSION= 0.73.3
+PORTVERSION= 0.77.0
CATEGORIES= science
MASTER_SITES= ftp://ftp.seul.org/pub/gdis/
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
-LIB_DEPENDS= gtkextra:${PORTSDIR}/x11-toolkits/gtkextra \
- gtkgl:${PORTSDIR}/x11-toolkits/gtkglarea
+LIB_DEPENDS= gtkgl.5:${PORTSDIR}/x11-toolkits/gtkglarea
-USE_REINPLACE= yes
+USE_MESA= yes
USE_GNOMENG= yes
USE_GNOME= gtk12
-USE_MESA= yes
-WRKSRC= ${WRKDIR}/${PORTNAME}
+USE_REINPLACE= yes
USE_GMAKE= yes
-ALL_TARGET= # empty
+ALL_TARGET= main
post-patch:
- @${REINPLACE_CMD} -e "s,^CC,#CC,g ; s,^CFLAGS,#CFLAGS,g ; \
- s,gtk-config,${GTK_CONFIG},g" ${WRKSRC}/Makefile
- @${REINPLACE_CMD} -e "s,%%DATADIR%%,${DATADIR},g" ${WRKSRC}/gdis.h
+ @${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-install:
${INSTALL_PROGRAM} ${WRKSRC}/gdis ${PREFIX}/bin
@${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/gdis.lib ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/gdis.elements ${DATADIR}
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for file in CHANGELOG README TODO
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+.endfor
+.endif
.include <bsd.port.mk>
diff --git a/science/gdis/distinfo b/science/gdis/distinfo
index fd2d516..30ddd6c 100644
--- a/science/gdis/distinfo
+++ b/science/gdis/distinfo
@@ -1 +1 @@
-MD5 (gdis-0.73.3.tgz) = 50be37ea193352dc681d594903b2eead
+MD5 (gdis-0.77.0.tgz) = 00659d0712150cb6e3670d4d638ce1ad
diff --git a/science/gdis/files/patch-gdis.h b/science/gdis/files/patch-gdis.h
deleted file mode 100644
index 71f5b30..0000000
--- a/science/gdis/files/patch-gdis.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- gdis.h.orig Tue Mar 5 11:24:15 2002
-+++ gdis.h Tue Mar 5 11:25:22 2002
-@@ -61,7 +61,7 @@
-
- /* location of data file - TODO - IMPROVE ie rc file/scan etc */
- #define RCFILE ".gdisrc"
--#define LIBRARY "gdis.lib"
-+#define LIBRARY "%%DATADIR%%gdis.lib"
- #define LOG_FILE "gdismol.log"
- #define FONT "-misc-fixed-medium-r-*-*-*-120-*-*-*-*-iso8859-1"
-
diff --git a/science/gdis/pkg-plist b/science/gdis/pkg-plist
index 9a6978c..be93c16 100644
--- a/science/gdis/pkg-plist
+++ b/science/gdis/pkg-plist
@@ -1,3 +1,7 @@
bin/gdis
-share/gdis/gdis.lib
+%%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
OpenPOWER on IntegriCloud