diff options
author | David W. Chapman Jr. <dwcjr@FreeBSD.org> | 2002-10-24 13:35:13 +0000 |
---|---|---|
committer | David W. Chapman Jr. <dwcjr@FreeBSD.org> | 2002-10-24 13:35:13 +0000 |
commit | 709587a8c2b3a7d19c7ff1ebd7bc4b438857b50e (patch) | |
tree | 8bdec214bc338ad9fcf0872e54017db729f2d08d /science | |
parent | 5a60b4bc025fdffa59081e5c02da544d05c229f3 (diff) | |
download | ports-709587a8c2b3a7d19c7ff1ebd7bc4b438857b50e.tar.gz ports-709587a8c2b3a7d19c7ff1ebd7bc4b438857b50e.zip |
Notes
Diffstat (limited to 'science')
-rw-r--r-- | science/gdis/Makefile | 33 | ||||
-rw-r--r-- | science/gdis/distinfo | 2 | ||||
-rw-r--r-- | science/gdis/files/patch-gdis.h | 11 | ||||
-rw-r--r-- | science/gdis/pkg-plist | 6 |
4 files changed, 28 insertions, 24 deletions
diff --git a/science/gdis/Makefile b/science/gdis/Makefile index c43fc3122e6f..26ebba26926c 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 fd2d516c537c..30ddd6cdfc9b 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 71f5b308eeec..000000000000 --- 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 9a6978cf8d8c..be93c16676ea 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 |