pkgsrc/editors/pico/patches/patch-af
tv 97a6176c40 Update to 4.10, part of Pine 4.63. Near zero changes; just one
international charset tweak.

(libpico is ABI compatible with 4.9, so no BUILDLINK_DEPENDS bump required)
2005-08-12 20:21:29 +00:00

41 lines
1.2 KiB
Text

$NetBSD: patch-af,v 1.5 2005/08/12 20:21:30 tv Exp $
--- pico/makefile.osx.orig Fri Sep 20 14:23:15 2002
+++ pico/makefile.osx
@@ -38,11 +38,7 @@ STDCFLAGS= -Dbsd -DJOB_CONTROL
CFLAGS= $(OPTIMIZE) $(PROFILE) $(DEBUG) $(EXTRACFLAGS) $(STDCFLAGS)
# switches for library building
-LIBCMD= ar
-LIBARGS= ru
-RANLIB= ranlib
-
-LIBS= $(EXTRALDFLAGS) -lncurses
+LIBS= $(EXTRALDFLAGS)
OFILES= attach.o basic.o bind.o browse.o buffer.o \
composer.o display.o file.o fileio.o line.o pico_os.o \
@@ -55,17 +51,17 @@ HFILES= headers.h estruct.h edef.h efun
# 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 5:1
clean:
rm -f *.a *.o *~ pico_os.c os.h pico pilot