openbsd-ports/astro/sattrack/patches/patch-Makefile
2001-04-12 05:53:53 +00:00

103 lines
3.4 KiB
Plaintext

--- ../src/Makefile.orig Mon Jan 13 18:51:01 1997
+++ ../src/Makefile Sat Jan 22 23:37:21 2000
@@ -113,10 +113,10 @@
# Sun-4 (SPARCstation 5 or 10 with Solaris 2.x, using 'gcc' only)
#
-CPU = Sun-4/Solaris
-CC_CMACH = -O3 -DSVR4 -Wall
-CC_LMACH =
-CC = gcc
+#CPU = Sun-4/Solaris
+#CC_CMACH = -O3 -DSVR4 -Wall
+#CC_LMACH =
+#CC = gcc
# Apollo 700 (HP Apollo 9000 Series 700 with HPUX)
#
@@ -228,7 +228,7 @@
#CC_CUSR = -DREVERSEVIDEO -DXWINDOW
#CC_CUSR = -DHOMEDIR -DREVERSEVIDEO -DXWINDOW
-CC_CUSR = -DHOMEDIR -DREVERSEVIDEO -DSUNTRANSITS -DXWINDOW
+CC_CUSR = -DREVERSEVIDEO -DSUNTRANSITS -DXWINDOW
#
#-------------------------------------------------------------------------------
@@ -245,7 +245,8 @@
# but should be accessible by other users as well.
#
-#HOME = /home/manfred
+HOME = ../..
+CC_CUSR += -DSATDIR=\"$(PREFIX)/lib\"
#
#-------------------------------------------------------------------------------
@@ -253,9 +254,13 @@
# SATTRACK SUB-DIRECTORIES
#
-SRC = $(HOME)/SatTrack/src
-OBJ = $(HOME)/SatTrack/obj
-RUN = $(HOME)/SatTrack/run
+SRC = $(HOME)/SatTrack-3.1.6/src
+OBJ = $(HOME)/SatTrack-3.1.6/obj
+RUN = $(HOME)/SatTrack-3.1.6/run
+DATA = $(HOME)/SatTrack-3.1.6/data
+PRED = $(HOME)/SatTrack-3.1.6/pred
+TLE = $(HOME)/SatTrack-3.1.6/tle
+DOC = $(HOME)/SatTrack-3.1.6/doc
INC = $(SRC)/include
@@ -318,13 +323,15 @@
#X11 = /usr/include
#X11 = /usr/local/include
#X11 = /usr/include/X11
-X11 = /usr/openwin/include
+#X11 = /usr/openwin/include
+X11 = $(X11BASE)/include
-LX11 = -lX11 -lXt # X11R5
+#LX11 = -lX11 -lXt # X11R5
#LX11 = -lXt -lX11 -lsocket # SCOV5
#LX11 = -L/usr/openwin/lib -lX11 -lXt
#LX11 = -lX11 -lXt -lICE -lSM # X11R6
+LX11 = -L$(X11BASE)/lib -lX11 -lXt -lICE -lSM
#LX11 = -L/usr/openwin/lib -lX11 -lXt -lICE -lSM
#CC_CXINC =
@@ -355,6 +362,30 @@
cd $(RUN) ; \
/bin/rm -f fixchecksum makeamsat makepassesx maketles maketlex \
satfilter sattrack xdemo
+
+install:
+ -@mkdir -p $(PREFIX)/lib/SatTrack/data
+ cd $(DATA) ; find . -print | cpio -pudm $(PREFIX)/lib/SatTrack/data
+ -@mkdir $(PREFIX)/lib/SatTrack/pred
+ cd $(PRED) ; find . -print | cpio -pudm $(PREFIX)/lib/SatTrack/pred
+ -@mkdir $(PREFIX)/lib/SatTrack/tle
+ cd $(TLE) ; find . -print | cpio -pudm $(PREFIX)/lib/SatTrack/tle
+ -@mkdir -p $(PREFIX)/share/doc/SatTrack
+ cd $(DOC) ; find . -print | cpio -pudm $(PREFIX)/share/doc/SatTrack
+ -@mkdir -p $(PREFIX)/bin
+ install -c -s -m 755 $(RUN)/fixchecksum $(PREFIX)/bin/fixchecksum
+ install -c -m 755 $(RUN)/getsts $(PREFIX)/bin/getsts
+ install -c -m 755 $(RUN)/gettle $(PREFIX)/bin/gettle
+ install -c -s -m 755 $(RUN)/makeamsat $(PREFIX)/bin/makeamsat
+ install -c -s -m 755 $(RUN)/makepassesx $(PREFIX)/bin/makepassesx
+ install -c -s -m 755 $(RUN)/maketles $(PREFIX)/bin/maketles
+ install -c -s -m 755 $(RUN)/maketlex $(PREFIX)/bin/maketlex
+ install -c -m 755 $(RUN)/passes $(PREFIX)/bin/passes
+ install -c -m 755 $(RUN)/passesx $(PREFIX)/bin/passesx
+ install -c -s -m 755 $(RUN)/satfilter $(PREFIX)/bin/satfilter
+ install -c -s -m 755 $(RUN)/sattrack $(PREFIX)/bin/sattrack
+ install -c -m 755 $(RUN)/transits $(PREFIX)/bin/transits
+ install -c -s -m 755 $(RUN)/xdemo $(PREFIX)/bin/xsattrackdemo
#
#-------------------------------------------------------------------------------