Subject: pkg/17534: Package print/bg5ps Makefile error
To: None <>
From: Ruibiao Qiu <>
List: netbsd-bugs
Date: 07/09/2002 11:28:52
	Note: There was a bad value `not-critical' for the field `>Severity:'.
	It was set to the default value of `serious'.

>Number:         17534
>Category:       pkg
>Synopsis:       package print/bg5ps build problem
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 09 09:19:00 PDT 2002
>Release:        all
	Washington University in St. Louis
System: NetBSD 1.5.2 NetBSD 1.5.2 (GENERIC) #3: Sat Aug 18 23:37:05 CEST 2001 i386

	The Makefile entry of ttf2psm has the $(LIBS) before $(OBJS), which fails
    to build.  
	Just try building print/bg5ps
    Moving $(LIBS) after $(OBJS) in the ttf2psm entry of Makefile resolves it.
    Need to modify patches/patch-aa, as attached below:

$NetBSD: patch-aa,v 1.1 2002/06/15 08:22:17 shell Exp $

--- Makefile.orig	Tue Feb 15 04:41:27 2000
+++ Makefile
@@ -17,15 +17,16 @@
 OBJS = ttf2psm.o b5tou8.o b5_in.o gb_in.o gbtou8.o
-CC = gcc
+#CC = gcc
 INSTALL = install
-LIBS = -lttf -lm
+LIBS = -lttf -lm -lintl
+INCLUDEDIR = -L/usr/lib -L${LOCALBASE}/lib
-prefix = /usr
-BINDIR = $(prefix)/bin
-ETCDIR = /etc/chinese/
+#prefix = /usr
 all: ttf2psm
@@ -33,13 +34,13 @@
 	$(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 $(BINDIR)/bg5ps
 	$(INSTALL) -m755 ttf2psm $(BINDIR)