mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-15 07:56:36 +00:00
3e4ed01146
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG - Remove X11BASE support in favor of LOCALBASE or PREFIX - Use USE_LDCONFIG instead of INSTALLS_SHLIB - Remove unneeded USE_GCC 3.4+ Thanks to all Helpers: Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr, ehaupt, nox, itetcu, flz, pav PR: 116263 Tested on: pointyhat Approved by: portmgr (pav)
51 lines
1.4 KiB
Plaintext
51 lines
1.4 KiB
Plaintext
--- Makefile.orig Sat Feb 12 16:42:03 2005
|
|
+++ Makefile Sat Feb 12 16:42:45 2005
|
|
@@ -1,30 +1,30 @@
|
|
# Makefile file for mxp - Mandelbrot Explorer
|
|
|
|
# Compiler - uncomment for gcc
|
|
-# CC = gcc
|
|
+CC = %%CC%%
|
|
|
|
# Since this is a compute intensive program, be sure to use
|
|
# compiler optimization. It makes a big difference.
|
|
# For gcc on linux "-O2 -m486" works well.
|
|
-# OPT = -O2 -m486
|
|
+OPT = %%CFLAGS%%
|
|
|
|
# If X is not installed in the standard places you will need to set the
|
|
# following 2 defines.
|
|
-XLIBS = -L/usr/openwin/lib
|
|
-XINC = -I/usr/openwin/include
|
|
+XLIBS = -L%%LOCALBASE%%/lib
|
|
+XINC = -I%%LOCALBASE%%/include
|
|
|
|
# Specify where your Xpm installation directories are
|
|
# If you have the XPM libraries uncomment and adjust the following lines
|
|
# to use color icons.
|
|
-#XPM_DEF = -DXPM
|
|
-#XPM_INCLUDE = -I/usr/local/include
|
|
-#XPM_LIB = -L$(LIBDIR)/xpm -lXpm
|
|
+XPM_DEF = -DXPM
|
|
+XPM_INCLUDE = #-I/usr/local/include
|
|
+XPM_LIB = -lXpm #-L$(LIBDIR)/xpm
|
|
|
|
# If you are using FVWM 2.0 then the following must be set to 2
|
|
SIZE_INC = 1
|
|
|
|
# Specify install directory
|
|
-BINDIR = /usr/local/bin
|
|
+BINDIR = %%PREFIX%%/bin
|
|
|
|
INCLUDES = $(XPM_INCLUDE) $(XINC) -Ilug
|
|
|
|
@@ -34,7 +34,7 @@
|
|
OBJS = $(M_OBJS) $(L_OBJS)
|
|
|
|
mxp: $(OBJS)
|
|
- $(CC) -o $@ $(OBJS) $(XPM_LIB) -L/X/X11/lib -lm -lXaw -lXt -lXmu -lX11 -lXdmcp -lXext
|
|
+ $(CC) -o $@ $(OBJS) $(XPM_LIB) $(XLIBS) -lm -lXaw -lXt -lXmu -lX11 -lXdmcp -lXext
|
|
|
|
$(OBJS): mxp.h
|
|
|