mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Add back the xglobe port which was unceremoniously removed along with
the qt145 port.
This commit is contained in:
parent
53cd1ee38c
commit
bd1b7ff9be
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=58581
8 changed files with 144 additions and 0 deletions
|
@ -45,6 +45,7 @@
|
||||||
SUBDIR += x3arth
|
SUBDIR += x3arth
|
||||||
SUBDIR += xearth
|
SUBDIR += xearth
|
||||||
SUBDIR += xephem
|
SUBDIR += xephem
|
||||||
|
SUBDIR += xglobe
|
||||||
SUBDIR += xphoon
|
SUBDIR += xphoon
|
||||||
SUBDIR += xplanet
|
SUBDIR += xplanet
|
||||||
SUBDIR += xtide
|
SUBDIR += xtide
|
||||||
|
|
25
astro/xglobe/Makefile
Normal file
25
astro/xglobe/Makefile
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
# New ports collection makefile for: xglobe
|
||||||
|
# Date created: 20 January 1998
|
||||||
|
# Whom: Kris Kennaway <kris@FreeBSD.org>
|
||||||
|
#
|
||||||
|
# $FreeBSD$
|
||||||
|
#
|
||||||
|
|
||||||
|
PORTNAME= xglobe
|
||||||
|
PORTVERSION= 0.5
|
||||||
|
CATEGORIES= astro
|
||||||
|
MASTER_SITES= http://www.uni-karlsruhe.de/~uddn/xglobe/
|
||||||
|
|
||||||
|
MAINTAINER= kris@FreeBSD.org
|
||||||
|
|
||||||
|
USE_QT_VER= 1
|
||||||
|
USE_X_PREFIX= yes
|
||||||
|
USE_GMAKE= yes
|
||||||
|
|
||||||
|
do-install:
|
||||||
|
@${MKDIR} ${PREFIX}/share/xglobe/
|
||||||
|
@${INSTALL_PROGRAM} ${WRKSRC}/xglobe ${PREFIX}/bin/
|
||||||
|
@${INSTALL_DATA} ${WRKSRC}/map.bmp ${PREFIX}/share/xglobe/
|
||||||
|
@${INSTALL_DATA} ${WRKSRC}/xglobe-markers ${PREFIX}/share/xglobe/
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
1
astro/xglobe/distinfo
Normal file
1
astro/xglobe/distinfo
Normal file
|
@ -0,0 +1 @@
|
||||||
|
MD5 (xglobe-0.5.tar.gz) = 87caf7803f1d71a0b024188e3a2c759c
|
60
astro/xglobe/files/patch-aa
Normal file
60
astro/xglobe/files/patch-aa
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
--- Makefile.orig Mon Jul 19 05:56:27 1999
|
||||||
|
+++ Makefile Sun May 5 01:53:17 2002
|
||||||
|
@@ -4,29 +4,30 @@
|
||||||
|
|
||||||
|
####### Installation directory
|
||||||
|
|
||||||
|
-XGLOBE_DIR = /usr/local
|
||||||
|
-XGLOBE_LIB_DIR = $(XGLOBE_DIR)/lib/xglobe
|
||||||
|
+XGLOBE_DIR = $(PREFIX)
|
||||||
|
+XGLOBE_LIB_DIR = $(XGLOBE_DIR)/share/xglobe
|
||||||
|
XGLOBE_BIN_DIR = $(XGLOBE_DIR)/bin
|
||||||
|
|
||||||
|
####### Library directories - you may need to modify these
|
||||||
|
|
||||||
|
-X11_INCLUDE_DIR = /usr/X11R6/include
|
||||||
|
-QT_INCLUDE_DIR = $(QTDIR)/include
|
||||||
|
+X11_INCLUDE_DIR = $(X11BASE)/include
|
||||||
|
+QT_INCLUDE_DIR = $(X11BASE)/include/X11/qt1
|
||||||
|
|
||||||
|
-QT_LIB_DIR = $(QTDIR)/lib
|
||||||
|
-X11_LIB_DIR = /usr/X11R6/lib
|
||||||
|
+QT_LIB_DIR = $(X11BASE)/lib
|
||||||
|
+X11_LIB_DIR = $(X11BASE)/lib
|
||||||
|
|
||||||
|
|
||||||
|
####### Compiler and tools
|
||||||
|
|
||||||
|
-CPP = g++
|
||||||
|
-LINK = g++
|
||||||
|
-MOC = moc
|
||||||
|
+CXX ?= c++
|
||||||
|
+CPP = ${CXX}
|
||||||
|
+LINK = ${CXX}
|
||||||
|
+MOC = moc1
|
||||||
|
INSTALL = install
|
||||||
|
|
||||||
|
####### compile and link options
|
||||||
|
|
||||||
|
-CFLAGS = $(INCLUDE_DIRS) -DXGLOBE_LIB_DIR=\"$(XGLOBE_LIB_DIR)\" $(WITH_QIMGIO) -O2 -Wall
|
||||||
|
+CFLAGS += $(INCLUDE_DIRS) -DXGLOBE_LIB_DIR=\"$(XGLOBE_LIB_DIR)\" $(WITH_QIMGIO)
|
||||||
|
|
||||||
|
LFLAGS =
|
||||||
|
|
||||||
|
@@ -34,13 +35,13 @@
|
||||||
|
|
||||||
|
LIB_DIRS = -L$(QT_LIB_DIR) -L$(X11_LIB_DIR)
|
||||||
|
|
||||||
|
-LIBS = -lX11 -lqt -lm
|
||||||
|
+LIBS = -lX11 -lqt1 -lm
|
||||||
|
# If you want to use the QImageIO lib (to support jpg and png maps) use the
|
||||||
|
# next two lines and comment the one above
|
||||||
|
#WITH_QIMGIO = -DWITH_QIMAGEIO
|
||||||
|
-#LIBS = -lX11 -lqt -lm -lqimgio
|
||||||
|
+#LIBS = -lX11 -lqt1 -lm -lqimgio
|
||||||
|
# If the linker complains about unresolved references try this:
|
||||||
|
-#LIBS = -lX11 -lqt -lm -lqimgio -lpng -lz -ljpeg
|
||||||
|
+#LIBS = -lX11 -lqt1 -lm -lqimgio -lpng -lz -ljpeg
|
||||||
|
|
||||||
|
####### Target
|
||||||
|
|
47
astro/xglobe/files/patch-random
Normal file
47
astro/xglobe/files/patch-random
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
--- earthapp.cpp.orig Sat Feb 24 10:13:10 2001
|
||||||
|
+++ earthapp.cpp Sat Feb 24 10:13:29 2001
|
||||||
|
@@ -937,8 +937,8 @@
|
||||||
|
|
||||||
|
void EarthApplication::randomPosition()
|
||||||
|
{
|
||||||
|
- view_lat = ((rand()%30001)/30000.)*180. - 90.;
|
||||||
|
- view_long = ((rand()%30001)/30000.)*360. - 180.;
|
||||||
|
+ view_lat = ((random()%30001)/30000.)*180. - 90.;
|
||||||
|
+ view_long = ((random()%30001)/30000.)*360. - 180.;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ------------------------------------------------------------------------*/
|
||||||
|
--- renderer.cpp.orig Sat Feb 24 10:12:53 2001
|
||||||
|
+++ renderer.cpp Sat Feb 24 10:13:04 2001
|
||||||
|
@@ -1562,9 +1562,9 @@
|
||||||
|
|
||||||
|
for(int i=0; i<numstars; i++)
|
||||||
|
{
|
||||||
|
- x = rand() % renderedImage->width();
|
||||||
|
- y = rand() % renderedImage->height();
|
||||||
|
- brightness = 150+ (rand() % 106);
|
||||||
|
+ x = random() % renderedImage->width();
|
||||||
|
+ y = random() % renderedImage->height();
|
||||||
|
+ brightness = 150+ (random() % 106);
|
||||||
|
p = (unsigned int *)renderedImage->scanLine(y);
|
||||||
|
p += x;
|
||||||
|
*p = qRgb(brightness, brightness, brightness);
|
||||||
|
--- main.cpp.orig Tue Jul 13 10:32:55 1999
|
||||||
|
+++ main.cpp Sat Feb 24 10:14:56 2001
|
||||||
|
@@ -24,6 +24,7 @@
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
+#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <qstring.h>
|
||||||
|
#include "config.h"
|
||||||
|
@@ -36,6 +37,8 @@
|
||||||
|
int main(int argc, char **argv)
|
||||||
|
{
|
||||||
|
EarthApplication myApp(argc, argv);
|
||||||
|
+
|
||||||
|
+ srandomdev();
|
||||||
|
|
||||||
|
#ifdef WITH_QIMAGEIO
|
||||||
|
qInitImageIO();
|
1
astro/xglobe/pkg-comment
Normal file
1
astro/xglobe/pkg-comment
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Displays a view of the Earth (like xearth) with a rendered photo map
|
5
astro/xglobe/pkg-descr
Normal file
5
astro/xglobe/pkg-descr
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
Displays a rendered view of the earth in your root window, similar to
|
||||||
|
xearth, but instead uses a satellite image map of the earth. You can also
|
||||||
|
substitute surface maps of other planets if you're feeling cosmic.
|
||||||
|
|
||||||
|
WWW: http://www.stud.uni-karlsruhe.de/~uddn/xglobe/
|
4
astro/xglobe/pkg-plist
Normal file
4
astro/xglobe/pkg-plist
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
bin/xglobe
|
||||||
|
share/xglobe/map.bmp
|
||||||
|
share/xglobe/xglobe-markers
|
||||||
|
@dirrm share/xglobe
|
Loading…
Add table
Reference in a new issue