50 lines
1.2 KiB
Text
50 lines
1.2 KiB
Text
$NetBSD: patch-aa,v 1.4 2011/07/03 20:44:45 jym Exp $
|
|
|
|
--- Makefile.orig 2000-02-14 20:41:27.000000000 +0000
|
|
+++ Makefile
|
|
@@ -17,15 +17,16 @@
|
|
|
|
OBJS = ttf2psm.o b5tou8.o b5_in.o gb_in.o gbtou8.o
|
|
|
|
-CC = gcc
|
|
+#CC = gcc
|
|
INSTALL = install
|
|
-CFLAGS =
|
|
-LIBS = -lttf -lm
|
|
-INCLUDEDIR =
|
|
-
|
|
-prefix = /usr
|
|
-BINDIR = $(prefix)/bin
|
|
-ETCDIR = /etc/chinese/
|
|
+#CFLAGS =
|
|
+LDFLAGS = -Wl,-R${LOCALBASE}/lib
|
|
+LIBS = -lttf -lm -lintl
|
|
+INCLUDEDIR = -L/usr/lib -L${LOCALBASE}/lib
|
|
+
|
|
+#prefix = /usr
|
|
+BINDIR = ${PREFIX}/bin
|
|
+ETCDIR = ${PKG_SYSCONFDIR}
|
|
|
|
all: ttf2psm
|
|
|
|
@@ -33,14 +34,14 @@ all: ttf2psm
|
|
$(CC) -c $(CFLAGS) $(INCLUDEDIR) $< -o $@
|
|
|
|
ttf2psm: $(OBJS)
|
|
- $(CC) $(CFLAGS) $(INCLUDEDIR) $(LIBS) -o ttf2psm $(OBJS)
|
|
+ $(CC) $(CFLAGS) $(LDFLAGS) $(INCLUDEDIR) -o ttf2psm $(OBJS) $(LIBS)
|
|
|
|
install: all bg5ps bg5ps.conf
|
|
- mkdir -p $(ETCDIR)
|
|
- mkdir -p $(BINDIR)
|
|
- $(INSTALL) -m644 bg5ps.conf $(ETCDIR)/bg5ps.conf
|
|
- $(INSTALL) -m755 bg5ps $(BINDIR)
|
|
- $(INSTALL) -m755 ttf2psm $(BINDIR)
|
|
+ mkdir -p ${DESTDIR}$(ETCDIR)
|
|
+ mkdir -p ${DESTDIR}$(BINDIR)
|
|
+ $(INSTALL) -m644 bg5ps.conf ${DESTDIR}$(ETCDIR)/bg5ps.conf
|
|
+ $(INSTALL) -m755 bg5ps ${DESTDIR}$(BINDIR)/bg5ps
|
|
+ $(INSTALL) -m755 ttf2psm ${DESTDIR}$(BINDIR)
|
|
|
|
clean:
|
|
rm -rf *.o core ttf2psm *~
|