From 4632289511716e77fdc9aa4bf1ff04c938fefc87 Mon Sep 17 00:00:00 2001 From: don Date: Sat, 7 Feb 1998 06:39:12 +0000 Subject: [PATCH] Don't build shared libs on alpha --- graphics/jpeg/Makefile | 8 +++++++- graphics/jpeg/patches/patch-aa | 37 ++++++++++++++++------------------ 2 files changed, 24 insertions(+), 21 deletions(-) diff --git a/graphics/jpeg/Makefile b/graphics/jpeg/Makefile index 083925fa8ff..edcb50be354 100644 --- a/graphics/jpeg/Makefile +++ b/graphics/jpeg/Makefile @@ -3,7 +3,7 @@ # Date created: December 2, 1997 # Whom: Angelos D. Keromytis # -# $OpenBSD: Makefile,v 1.1.1.1 1997/12/03 02:30:52 angelos Exp $ +# $OpenBSD: Makefile,v 1.2 1998/02/07 06:39:12 don Exp $ # DISTNAME= jpegsrc.v6a @@ -18,6 +18,12 @@ INSTALL_TARGET= install install-lib MAN1= cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 wrjpgcom.1 post-install: +.if (${MACHINE_ARCH} != "alpha") +.if (${MACHINE_ARCH} == "mips") + ${LDCONFIG} -n ${PREFIX}/lib +.else ${LDCONFIG} -m ${PREFIX}/lib +.endif +.endif .include diff --git a/graphics/jpeg/patches/patch-aa b/graphics/jpeg/patches/patch-aa index 734d06528aa..eb2837fb4f1 100644 --- a/graphics/jpeg/patches/patch-aa +++ b/graphics/jpeg/patches/patch-aa @@ -1,25 +1,22 @@ -*** makefile.cfg.orig Tue Jul 25 03:07:32 1995 ---- makefile.cfg Wed Oct 4 05:50:21 1995 +*** makefile.cfg.orig Wed Feb 7 19:09:39 1996 +--- makefile.cfg Fri Feb 6 19:15:52 1998 *************** -*** 115,121 **** +*** 116,122 **** +--- 116,126 ---- TROBJECTS= jpegtran.o rdswitch.o cdjpeg.o -! all: @ANSI2KNR@ libjpeg.a cjpeg djpeg jpegtran rdjpgcom wrjpgcom - - # This rule causes ansi2knr to be invoked. - @ISANSICOM@.c.o: ---- 115,121 ---- - TROBJECTS= jpegtran.o rdswitch.o cdjpeg.o - - -! all: @ANSI2KNR@ libjpeg.a libjpeg.so.7.0 cjpeg djpeg jpegtran rdjpgcom wrjpgcom ++ .if (${MACHINE_ARCH} != "alpha") ++ all: @ANSI2KNR@ libjpeg.a libjpeg.so.7.0 cjpeg djpeg jpegtran rdjpgcom wrjpgcom ++ .else + all: @ANSI2KNR@ libjpeg.a cjpeg djpeg jpegtran rdjpgcom wrjpgcom ++ .endif # This rule causes ansi2knr to be invoked. @ISANSICOM@.c.o: *************** -*** 124,129 **** ---- 124,134 ---- +*** 125,130 **** +--- 129,139 ---- @ISANSICOM@ $(RM) T$*.c $*.o @ISANSICOM@ $(MV) T$*.o $*.o @@ -32,7 +29,7 @@ $(CC) $(CFLAGS) $(ANSI2KNRFLAGS) -o ansi2knr ansi2knr.c *************** -*** 132,145 **** +*** 133,146 **** $(AR) libjpeg.a $(LIBOBJECTS) $(AR2) libjpeg.a @@ -47,7 +44,7 @@ rdjpgcom: rdjpgcom.o $(LN) $(LDFLAGS) -o rdjpgcom rdjpgcom.o $(LDLIBS) ---- 137,153 ---- +--- 142,158 ---- $(AR) libjpeg.a $(LIBOBJECTS) $(AR2) libjpeg.a @@ -66,7 +63,7 @@ rdjpgcom: rdjpgcom.o $(LN) $(LDFLAGS) -o rdjpgcom rdjpgcom.o $(LDLIBS) *************** -*** 164,171 **** +*** 165,172 **** $(INSTALL_DATA) $(srcdir)/rdjpgcom.1 $(mandir)/$(manprefix)rdjpgcom.$(manext) $(INSTALL_DATA) $(srcdir)/wrjpgcom.1 $(mandir)/$(manprefix)wrjpgcom.$(manext) @@ -75,7 +72,7 @@ install-headers: jconfig.h $(INSTALL_DATA) jconfig.h $(includedir)/jconfig.h ---- 172,181 ---- +--- 177,186 ---- $(INSTALL_DATA) $(srcdir)/rdjpgcom.1 $(mandir)/$(manprefix)rdjpgcom.$(manext) $(INSTALL_DATA) $(srcdir)/wrjpgcom.1 $(mandir)/$(manprefix)wrjpgcom.$(manext) @@ -87,8 +84,8 @@ install-headers: jconfig.h $(INSTALL_DATA) jconfig.h $(includedir)/jconfig.h *************** -*** 202,207 **** ---- 212,266 ---- +*** 203,208 **** +--- 217,271 ---- # GNU Make likes to know which target names are not really files to be made: .PHONY: all install install-lib install-headers clean distribute test check