diff options
author | asami <asami@FreeBSD.org> | 1998-09-17 08:51:29 +0800 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1998-09-17 08:51:29 +0800 |
commit | 50bc92a813e075d816fcd02174e2b2d8a72066f3 (patch) | |
tree | 007a5cdb6239ff7ced0cbade3bd19faee7e889af /graphics | |
parent | 74954b137315c2d7c5fdebaa4c96f6f425c3a6cd (diff) | |
download | freebsd-ports-gnome-50bc92a813e075d816fcd02174e2b2d8a72066f3.tar.gz freebsd-ports-gnome-50bc92a813e075d816fcd02174e2b2d8a72066f3.tar.zst freebsd-ports-gnome-50bc92a813e075d816fcd02174e2b2d8a72066f3.zip |
Roll back libpng's shared library version number. Also, build libraries
and links correctly for ELF.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/png/files/patch-aa | 21 | ||||
-rw-r--r-- | graphics/png/pkg-plist | 3 |
2 files changed, 17 insertions, 7 deletions
diff --git a/graphics/png/files/patch-aa b/graphics/png/files/patch-aa index 4930132fe3e6..e4dd738597fb 100644 --- a/graphics/png/files/patch-aa +++ b/graphics/png/files/patch-aa @@ -31,7 +31,7 @@ pngtest: pngtest.o libpng.a $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) ---- 5,47 ---- +--- 5,55 ---- # Where the zlib library and include files are located #ZLIBLIB=/usr/local/lib #ZLIBINC=/usr/local/include @@ -45,11 +45,15 @@ #RANLIB=echo RANLIB=ranlib -+ # Set major and minor numbers that are ELF-compliant. -+ # The minor must _always_ be 0 -+ PNGMAJ = 3 -+ PNGMIN = 0 ++ # read libpng.txt or png.h to see why PNGMAJ is 2. You should not ++ # have to change it. ++ PNGMAJ = 2 ++ .if (${PORTOBJFORMAT} == "elf") ++ PNGVER = $(PNGMAJ) ++ .else ++ PNGMIN = 1 + PNGVER = $(PNGMAJ).$(PNGMIN) ++ .endif + # where make install puts libpng.a and png.h ! prefix=${PREFIX} @@ -70,7 +74,11 @@ $(RANLIB) $@ + libpng.so.${PNGVER}: $(OBJS:S/o$/so/g) ++ .if (${PORTOBJFORMAT} == "elf") ++ ${CC} -shared -Wl,-x -Wl,-assert -Wl,pure-text -Wl,-soname,$@ -o $@ $(OBJS:S/o$/so/g) -lz -lm ++ .else + ${CC} -shared -Wl,-x -Wl,-assert -Wl,pure-text -o $@ $(OBJS:S/o$/so/g) -lz -lm ++ .endif + pngtest: pngtest.o libpng.a $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) @@ -89,12 +97,13 @@ clean: rm -f *.o libpng.a pngtest pngout.png ---- 51,61 ---- +--- 59,70 ---- install: libpng.a -@mkdir $(prefix)/include -@mkdir $(prefix)/lib ! ${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} png.h pngconf.h $(prefix)/include ! ${INSTALL} -c -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} libpng.a libpng.so.${PNGVER} $(prefix)/lib +! ln -sf libpng.so.${PNGVER} $(prefix)/lib/libpng.so ! ranlib $(prefix)/lib/libpng.a ! ${INSTALL} -c -m ${MANMODE} -o ${MANOWN} -g ${MANGRP} libpng.3 libpngpf.3 $(prefix)/man/man3 ! ${INSTALL} -c -m ${MANMODE} -o ${MANOWN} -g ${MANGRP} png.5 $(prefix)/man/man5 diff --git a/graphics/png/pkg-plist b/graphics/png/pkg-plist index e79be6a03e34..cd34e00cdbb7 100644 --- a/graphics/png/pkg-plist +++ b/graphics/png/pkg-plist @@ -2,6 +2,7 @@ include/png.h include/pngconf.h lib/libpng.a @exec ranlib %D/%F -lib/libpng.so.3 +lib/libpng.so.2.1 +lib/libpng.so @exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B @unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R |