Subject: pkg/28628: editors/pico should be adapted to IRIX
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <georg.schwarz@freenet.de>
List: pkgsrc-bugs
Date: 12/12/2004 11:18:00
>Number: 28628
>Category: pkg
>Synopsis: editors/pico should be adapted to IRIX
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Dec 12 11:18:00 +0000 2004
>Originator: Georg Schwarz
>Release: current pkgsrc
>Organization:
>Environment:
IRIX lorenz 5.3 08031225 IP20 mips
>Description:
editrors/pico should use the OS-specific makefiles (here: for IRIX)
>How-To-Repeat:
>Fix:
The following patch should do the trick:
--- Makefile.orig 2004-12-12 10:59:49.000000000 +0100
+++ Makefile 2004-12-12 11:08:20.000000000 +0100
@@ -26,6 +26,12 @@
LIBS+= -lcurses
.elif ${OPSYS} == "Linux"
BUILDNAME= lnx
+.elif ${OPSYS} == "IRIX"
+.if ${OS_VERSION} >= 6.5
+BUILDNAME= sg6
+.else
+BUILDNAME= sgi
+.endif
.else
BUILDNAME= neb
.endif
Moreover, it requires the following patch to be added in analogy to the existing ones for other supported OSes:
--- makefile.sgi.orig 2004-12-12 10:50:51.000000000 +0100
+++ makefile.sgi 2004-12-12 10:53:28.000000000 +0100
@@ -32,16 +32,12 @@
MAKE= make
OPTIMIZE= # -O
PROFILE= # -pg
-DEBUG= -g -DDEBUG
+DEBUG= # -g -DDEBUG
STDCFLAGS= -Dsgi -DJOB_CONTROL -DMOUSE
CFLAGS= $(OPTIMIZE) $(PROFILE) $(DEBUG) $(EXTRACFLAGS) $(STDCFLAGS)
# switches for library building
-LIBCMD= ar
-LIBARGS= ru
-RANLIB= /bin/true
-
LIBS= $(EXTRALDFLAGS) -ltermcap -lc
OFILES= attach.o basic.o bind.o browse.o buffer.o \
@@ -55,17 +51,17 @@
# dependencies for the Unix versions of pico and libpico.a
#
all: pico pilot
-pico pilot: libpico.a
+pico pilot: libpico.la
pico: main.o
- $(CC) $(CFLAGS) main.o libpico.a $(LIBS) -o pico
+ $(CC) $(CFLAGS) main.o libpico.la $(LIBS) -o pico
pilot: pilot.o
- $(CC) $(CFLAGS) pilot.o libpico.a $(LIBS) -o pilot
+ $(CC) $(CFLAGS) pilot.o libpico.la $(LIBS) -o pilot
-libpico.a: $(OFILES)
- $(LIBCMD) $(LIBARGS) libpico.a $(OFILES)
- $(RANLIB) libpico.a
+libpico.la: $(OFILES)
+ $(CC) -o libpico.la $(OFILES:.o=.lo) -rpath $(PREFIX)/lib \
+ -version-info 4:0
clean:
rm -f *.a *.o *~ pico_os.c os.h pico pilot