freebsd-ports/print/asprint/files/patch-aa
Martin Wilke 3e4ed01146 - Remove unneeded dependency from gtk12/gtk20 [1]
- 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)
2008-04-19 17:56:05 +00:00

30 lines
595 B
Text

--- makefile.orig Fri Mar 14 19:34:48 1997
+++ makefile Wed Jun 21 02:59:31 2000
@@ -1,18 +1,17 @@
.KEEP_STATE:
-CFLAGS = -O2
-CC = gcc
-XLIB = -L/usr/X11/lib -lXaw3d -lXmu -lXt
-
+CFLAGS ?= -O2
+CC ?= gcc
+XLIB = -L$(LOCALBASE)/lib -lXaw -lXmu -lXt
+XLIB+= -Wl,-rpath,$(LOCALBASE)/lib
OBJS = asprint.o
-INCS =
-
-default : asprint ./makefile
-clean:
- rm -f $(OBJS) *~ asprint core
+INCS = -I$(LOCALBASE)/include
asprint: $(OBJS)
$(CC) -o asprint $(CFLAGS) $(OBJS) $(XLIB)
+clean:
+ rm -f $(OBJS) *~ asprint core
+
.c.o:
- $(CC) $(CFLAGS) -c $<
+ $(CC) $(CFLAGS) -c $(INCS) $<