mirror of
https://git.freebsd.org/ports.git
synced 2025-06-09 23:00:30 -04:00
28 lines
877 B
Text
28 lines
877 B
Text
--- makefile.orig 2002-04-27 22:48:52.000000000 +0400
|
|
+++ makefile 2012-11-21 12:12:08.000000000 +0400
|
|
@@ -17,6 +17,7 @@
|
|
# edited, is compile each source file, and link them together with the math
|
|
# library, and if applicable, the main X library.
|
|
#
|
|
+.PATH: src
|
|
NAME = astrolog
|
|
OBJ = astrolog.o data.o data2.o general.o io.o\
|
|
calc.o matrix.o charts0.o charts1.o charts2.o charts3.o\
|
|
@@ -28,9 +29,15 @@
|
|
# LIBS = -lm -lX11
|
|
# with Debian Linux and X windows worked
|
|
# LIBS = -lm -L/usr/X11R6/lib -lX11
|
|
-LIBS= -lm
|
|
+.if defined(X11)
|
|
+LIBS = -L${LOCALBASE}/lib -lX11 -lm
|
|
+CFLAGS += -Isrc -DX11 -I${LOCALBASE}/include -DDEFAULT_DIR=\"${PREFIX}/lib/astrolog\"
|
|
+.else
|
|
+LIBS = -lm
|
|
+CFLAGS += -Isrc -DDEFAULT_DIR=\"${PREFIX}/lib/astrolog\"
|
|
+.endif
|
|
#
|
|
-CFLAGS = -O -DHPUX_SOURCE
|
|
+#CFLAGS = -O -DHPUX_SOURCE
|
|
#
|
|
# CFLAGS from 5.41 original sources
|
|
# CFLAGS = -g -Aa -DHPUX_SOURCE
|