openbsd-ports/graphics/tiff/patches/patch-aa
1998-02-13 22:27:45 +00:00

100 lines
1.9 KiB
Plaintext

*** libtiff/Makefile.gcc.orig Thu Sep 29 17:01:24 1994
--- libtiff/Makefile.gcc Fri Feb 13 14:18:48 1998
***************
*** 26,43 ****
#
# This Makefile is for use with gcc (2.2.2 or later)
#
! DESTDIR=.
#
AR= ar
RANLIB= ranlib
NULL=
IPATH= -I.
CONF_LIBRARY=\
${NULL}
! CC= gcc
! COPTS= -ansi -O
! CFLAGS= ${COPTS} ${IPATH} ${CONF_LIBRARY}
#
INCS= tiff.h tiffio.h
SRCS= tif_fax3.c \
--- 26,42 ----
#
# This Makefile is for use with gcc (2.2.2 or later)
#
! DESTDIR=${PREFIX}
#
AR= ar
RANLIB= ranlib
+ INSTALL= install -o bin -g bin
NULL=
IPATH= -I.
CONF_LIBRARY=\
${NULL}
! CFLAGS+= ${COPTS} ${IPATH} ${CONF_LIBRARY}
#
INCS= tiff.h tiffio.h
SRCS= tif_fax3.c \
***************
*** 101,113 ****
tif_write.o \
${NULL}
ALL= libtiff.a
all: ${ALL}
! ${ALL}: ${OBJS}
${AR} rc libtiff.a $?
${RANLIB} libtiff.a
${OBJS}: tiffio.h tiff.h tiffcomp.h tiffiop.h tiffconf.h
tif_fax3.o: tif_fax3.c g3states.h t4.h tif_fax3.h
--- 100,123 ----
tif_write.o \
${NULL}
ALL= libtiff.a
+ .if ${MACHINE_ARCH} != "alpha"
+ ALL+= libtiff.so.3.3
+ .endif
all: ${ALL}
! libtiff.a: ${OBJS}
${AR} rc libtiff.a $?
${RANLIB} libtiff.a
+ .SUFFIXES: .c .o .so
+
+ .c.so:
+ ${CC} -fpic -DPIC ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET}
+
+ libtiff.so.3.3: ${OBJS:S/o$/so/g}
+ ld -Bshareable -o libtiff.so.3.3 ${OBJS:S/o$/so/g}
+
${OBJS}: tiffio.h tiff.h tiffcomp.h tiffiop.h tiffconf.h
tif_fax3.o: tif_fax3.c g3states.h t4.h tif_fax3.h
***************
*** 118,125 ****
install: all installh
-for i in ${ALL}; do \
${INSTALL} -c -m 644 $$i ${DESTDIR}/lib/$$i; \
- ${RANLIB} ${DESTDIR}/lib/$$i; \
done
installh: ${INCS}
-for i in ${INCS}; do \
--- 128,135 ----
install: all installh
-for i in ${ALL}; do \
${INSTALL} -c -m 644 $$i ${DESTDIR}/lib/$$i; \
done
+ ${RANLIB} ${DESTDIR}/lib/libtiff.a
installh: ${INCS}
-for i in ${INCS}; do \