pkgsrc/games/xzip/patches/patch-aa

50 lines
1.4 KiB
Text
Raw Normal View History

2010-02-14 23:21:42 +01:00
$NetBSD: patch-aa,v 1.3 2010/02/14 22:21:42 joerg Exp $
--- Makefile.orig Sun Jul 12 00:27:32 1998
+++ Makefile Tue Aug 11 00:14:31 1998
@@ -57,15 +57,15 @@
#SYSTEMFLAGS = -DBIG_END_MODE
# definitions for some arbitrary little-endian system
-#SYSTEMFLAGS = -DLITTLE_END_MODE
+SYSTEMFLAGS = -DAUTO_END_MODE
# --------------------
# definitions for where the X lib and include directories are.
# The following are defaults that might work.
-XINCLUDE = /usr/include/X11
-XLIB = /usr/lib/X11
+XINCLUDE = $(X11BASE)/include
+XLIB = $(X11BASE)/lib
# If your compiler can't find these things, try commenting out the
# above, and uncommenting various versions below. Also look around
@@ -90,12 +90,12 @@
# --------------------
# definition for where to install xzip executable and man page
-DESTDIR = /usr/local
2010-02-14 23:21:42 +01:00
+#DESTDIR = $(PREFIX)
# --------------------
CFLAGS = -O $(SYSTEMFLAGS) -I$(XINCLUDE)
-LDFLAGS =
+LDFLAGS = -Wl,-R$(X11BASE)/lib
LIBS = -L$(XLIB) -lX11 $(SYSTEMLIBS)
# definitions for the default fonts. Users can override these with X resources.
@@ -152,8 +152,8 @@
$(CC) $(CFLAGS) $(FONTDEFAULTLIST) -c xinit.c
install: $(PROGRAM)
- install -s $(PROGRAM) $(DESTDIR)/bin
- install $(PROGRAM).1 $(DESTDIR)/man/man1
2010-02-14 23:21:42 +01:00
+ ${BSD_INSTALL_PROGRAM} $(PROGRAM) $(DESTDIR)${PREFIX}/bin
+ ${BSD_INSTALL_MAN} $(PROGRAM).1 $(DESTDIR)${PREFIX}/${PKGMANDIR}/man6/$(PROGRAM).6
clean :
-rm -f *~ *.o $(PROGRAM) test