mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-14 23:46:10 +00:00
b671ad5dfe
PR: 17547 Submitted by: Edwin Mons <e@ik.nu>
82 lines
1.7 KiB
Plaintext
82 lines
1.7 KiB
Plaintext
--- Makefile Sat Oct 21 17:38:22 1995
|
|
+++ Makefile.new Mon May 29 01:35:31 2000
|
|
@@ -8,7 +8,7 @@
|
|
|
|
# your favorite C-compiler
|
|
#
|
|
-CC=gcc
|
|
+CC?=gcc
|
|
#CC=cc
|
|
|
|
|
|
@@ -22,13 +22,13 @@
|
|
# Touch 'hiscore.c' and 'score_status_mgr.c' when you change
|
|
# these variables!
|
|
#
|
|
-HSFILE=/usr/local/games/lib/xtrojka.scores
|
|
+HSFILE=${PREFIX}/share/xtrojka/xtrojka.scores
|
|
#HSFILE=/tmp/xtrojka.scores
|
|
CFLAGS= -DSCOREFILE='"$(HSFILE)"'
|
|
|
|
# add library search path
|
|
#
|
|
-CFLAGS+=-L/usr/X11/lib
|
|
+CFLAGS+=-L${X11BASE}/lib
|
|
|
|
# on some systems you might add this line, because gcc starts wining
|
|
# about 'sizeof(Display)', since Display might be an empty struct;
|
|
@@ -42,24 +42,28 @@
|
|
|
|
# location of xtrojka game
|
|
#
|
|
-TARGET_DIR=/usr/games
|
|
+TARGET_DIR=${PREFIX}/bin
|
|
|
|
|
|
# location of the manualpage
|
|
#
|
|
-MANDIR=/usr/local/man/man6
|
|
+MANDIR=${PREFIX}/man/man6
|
|
|
|
|
|
# please comment out for the system you use
|
|
#
|
|
# sunos 4.1.3
|
|
-XDIR=/usr/openwin/include
|
|
-LIBS=-lm
|
|
+#XDIR=/usr/openwin/include
|
|
+#LIBS=-lm
|
|
|
|
# solaris
|
|
#XDIR=/usr/openwin/include
|
|
#LIBS=-lnsl
|
|
|
|
+# FreeBSD
|
|
+XDIR=${X11BASE}/include
|
|
+LIBS=-lm
|
|
+
|
|
#
|
|
#
|
|
# main
|
|
@@ -101,11 +105,15 @@
|
|
#
|
|
#
|
|
install:
|
|
- @echo $(HSFILE)|sed -e 's/\//\\\//g'>/tmp/hsn; \
|
|
- sed -e "s/__SCOREDIR__/`cat /tmp/hsn`/g" manpage > xtrojka.6; \
|
|
- cp xtrojka.6 $(MANDIR); chmod go+r xtrojka.6; \
|
|
- cp xtrojka $(TARGET_DIR);chmod go+rx xtrojka; \
|
|
- touch $(HSFILE); chmod go+rwx $(HSFILE);
|
|
+ echo $(HSFILE)|sed -e 's/\//\\\//g'>/tmp/hsn
|
|
+ sed -e "s/__SCOREDIR__/`cat /tmp/hsn`/g" manpage > xtrojka.6
|
|
+ gzip -c xtrojka.6 >$(MANDIR)/xtrojka.6.gz
|
|
+ cp xtrojka $(TARGET_DIR)
|
|
+ chmod 2755 $(TARGET_DIR)/xtrojka
|
|
+ chgrp games $(TARGET_DIR)/xtrojka
|
|
+ touch $(HSFILE)
|
|
+ chmod 664 $(HSFILE)
|
|
+ chgrp games $(HSFILE)
|
|
|
|
clean:
|
|
rm -rf *.o core xtrojka xtrojka.6
|