summaryrefslogtreecommitdiffstats
path: root/graphics/urt/files
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1998-10-05 03:06:04 +0000
committersteve <steve@FreeBSD.org>1998-10-05 03:06:04 +0000
commit8b50ac6087d17925203f324fb7a72be884528484 (patch)
treecb34c07003d3b151289060af332d6a37b7580930 /graphics/urt/files
parent8602429e298573a31545b6c8bec41dc8c9a4f9b3 (diff)
downloadFreeBSD-ports-8b50ac6087d17925203f324fb7a72be884528484.zip
FreeBSD-ports-8b50ac6087d17925203f324fb7a72be884528484.tar.gz
Convert to ELF.
Diffstat (limited to 'graphics/urt/files')
-rw-r--r--graphics/urt/files/patch-aa2
-rw-r--r--graphics/urt/files/patch-ab91
-rw-r--r--graphics/urt/files/patch-ad101
3 files changed, 102 insertions, 92 deletions
diff --git a/graphics/urt/files/patch-aa b/graphics/urt/files/patch-aa
index f7014db..49bae83 100644
--- a/graphics/urt/files/patch-aa
+++ b/graphics/urt/files/patch-aa
@@ -153,7 +153,7 @@
-LIBTIFF = $(TIFFDIR)/libtiff.a
+##defpath TIFFDIR
+INCTIFF = -I${PREFIX}/include/tiff34
-+LIBTIFF = -L${PREFIX}/lib -ltiff34
++LIBTIFF = -L${PREFIX}/lib -ltiff34 -ljpeg
#endif
#ifdef X10
diff --git a/graphics/urt/files/patch-ab b/graphics/urt/files/patch-ab
index bdb7827..bb0a51a 100644
--- a/graphics/urt/files/patch-ab
+++ b/graphics/urt/files/patch-ab
@@ -37,97 +37,6 @@ diff -ur ../urt-3.1b-orig/lib/buildmap.c ./lib/buildmap.c
#include "rle.h"
#include <math.h>
-diff -ur ../urt-3.1b-orig/lib/makefile.src ./lib/makefile.src
---- ../urt-3.1b-orig/lib/makefile.src Wed Mar 4 16:32:53 1992
-+++ ./lib/makefile.src Sat Sep 16 10:44:35 1995
-@@ -26,7 +26,10 @@
- vaxshort.o \
- $(OPT_OBJS)
-
--LIBNAME = librle.a
-+SOOBJS = $(OBJS:.o=.so)
-+
-+LIBANAME = librle.a
-+LIBSONAME = librle.so.1.0
-
- # Just rebuild the object files.
- objs: $(OBJS)
-@@ -37,23 +40,13 @@
- # Do nothing if $(DEST) is empty (or not defined)
- install: buildlib
- @sh -c "if test '$(DEST)x' != x ; then \
-- echo cp $(LIBNAME) $(DEST)/$(LIBNAME) ; \
-- cp $(LIBNAME) $(DEST)/$(LIBNAME) ; \
-+ echo cp $(LIBANAME) $(DEST)/$(LIBANAME) ; \
-+ cp $(LIBANAME) $(DEST)/$(LIBANAME) ; \
-+ echo cp $(LIBSONAME) $(DEST)/$(LIBSONAME) ; \
-+ cp $(LIBSONAME) $(DEST)/$(LIBSONAME) ; \
- if test x$(RANLIB) != x ; then \
-- echo ranlib $(DEST)/$(LIBNAME) ; \
-- ranlib $(DEST)/$(LIBNAME) ; \
-- else \
-- true ; \
-- fi ; \
-- if test -d $(DEST)/debug ; then \
-- echo cp $(LIBNAME) $(DEST)/debug/$(LIBNAME) ; \
-- if test x$(RANLIB) != x ; then \
-- cp $(LIBNAME) $(DEST)/debug/$(LIBNAME) ; \
-- echo ranlib $(DEST)/debug/$(LIBNAME) ; \
-- else \
-- true ; \
-- fi ; \
-- ranlib $(DEST)/debug/$(LIBNAME) ; \
-+ echo ranlib $(DEST)/$(LIBANAME) ; \
-+ ranlib $(DEST)/$(LIBANAME) ; \
- else \
- true ; \
- fi ; \
-@@ -63,14 +56,24 @@
- touch install
-
- # Rebuild the library from all the .o files.
--buildlib: $(OBJS)
-- -rm -f $(LIBNAME)
-- ar rc $(LIBNAME)
-- ar q $(LIBNAME) $(OBJS)
-+buildlib: $(LIBANAME) $(LIBSONAME)
-+
-+$(LIBANAME): $(OBJS)
-+ -rm -f $@
-+ ar rc $@ $?
- #ifndef NO_RANLIB
-- ranlib $(LIBNAME)
-+ ranlib $@
- #endif
-- touch buildlib
-+
-+.SUFFIXES: .so .o
-+
-+.c.so:
-+ $(CC) -fPIC -DPIC $(CFLAGS) -c $*.c -o $*.so
-+ $(LD) -X -r $*.so
-+
-+$(LIBSONAME): $(SOOBJS)
-+ -rm -f $@
-+ ld -Bshareable -o $@ $>
-
- # Clean up installed stuff and binaries
- pristine: clean
-@@ -86,9 +89,12 @@
- # Get rid of everything which must be recompiled on a different computer.
- clean:
- -rm -f *.o
-+ -rm -f *.so
- -@if test x$(DEST) != x ; then \
-- echo rm -f $(LIBNAME) ; \
-- rm -f $(LIBNAME) ; \
-+ echo rm -f $(LIBANAME) ; \
-+ rm -f $(LIBANAME) ; \
-+ echo rm -f $(LIBSONAME) ; \
-+ rm -f $(LIBSONAME) ; \
- else \
- true ; \
- fi
diff -ur ../urt-3.1b-orig/makefile.src ./makefile.src
--- ../urt-3.1b-orig/makefile.src Fri Jun 7 11:58:13 1991
+++ ./makefile.src Fri Sep 15 22:09:01 1995
diff --git a/graphics/urt/files/patch-ad b/graphics/urt/files/patch-ad
new file mode 100644
index 0000000..4ca49d6
--- /dev/null
+++ b/graphics/urt/files/patch-ad
@@ -0,0 +1,101 @@
+--- lib/makefile.src.orig Wed Mar 4 13:32:53 1992
++++ lib/makefile.src Sat Oct 3 23:57:51 1998
+@@ -26,7 +26,14 @@
+ vaxshort.o \
+ $(OPT_OBJS)
+
+-LIBNAME = librle.a
++SOOBJS = $(OBJS:.o=.so)
++
++LIBANAME = librle.a
++.if $(PORTOBJFORMAT) == "elf"
++LIBSONAME = librle.so.1
++.else
++LIBSONAME = librle.so.1.0
++.endif
+
+ # Just rebuild the object files.
+ objs: $(OBJS)
+@@ -37,23 +44,14 @@
+ # Do nothing if $(DEST) is empty (or not defined)
+ install: buildlib
+ @sh -c "if test '$(DEST)x' != x ; then \
+- echo cp $(LIBNAME) $(DEST)/$(LIBNAME) ; \
+- cp $(LIBNAME) $(DEST)/$(LIBNAME) ; \
++ echo cp $(LIBANAME) $(DEST)/$(LIBANAME) ; \
++ cp $(LIBANAME) $(DEST)/$(LIBANAME) ; \
++ echo cp $(LIBSONAME) $(DEST)/$(LIBSONAME) ; \
++ cp $(LIBSONAME) $(DEST)/$(LIBSONAME) ; \
++ ln -sf $(LIBSONAME) $(DEST)/librle.so ; \
+ if test x$(RANLIB) != x ; then \
+- echo ranlib $(DEST)/$(LIBNAME) ; \
+- ranlib $(DEST)/$(LIBNAME) ; \
+- else \
+- true ; \
+- fi ; \
+- if test -d $(DEST)/debug ; then \
+- echo cp $(LIBNAME) $(DEST)/debug/$(LIBNAME) ; \
+- if test x$(RANLIB) != x ; then \
+- cp $(LIBNAME) $(DEST)/debug/$(LIBNAME) ; \
+- echo ranlib $(DEST)/debug/$(LIBNAME) ; \
+- else \
+- true ; \
+- fi ; \
+- ranlib $(DEST)/debug/$(LIBNAME) ; \
++ echo ranlib $(DEST)/$(LIBANAME) ; \
++ ranlib $(DEST)/$(LIBANAME) ; \
+ else \
+ true ; \
+ fi ; \
+@@ -63,14 +61,30 @@
+ touch install
+
+ # Rebuild the library from all the .o files.
+-buildlib: $(OBJS)
+- -rm -f $(LIBNAME)
+- ar rc $(LIBNAME)
+- ar q $(LIBNAME) $(OBJS)
++buildlib: $(LIBANAME) $(LIBSONAME)
++
++$(LIBANAME): $(OBJS)
++ -rm -f $@
++ ar rc $@ $?
+ #ifndef NO_RANLIB
+- ranlib $(LIBNAME)
++ ranlib $@
+ #endif
+- touch buildlib
++
++.SUFFIXES: .so .o
++
++.c.so:
++ $(CC) -fPIC -DPIC $(CFLAGS) -c $*.c -o $*.so
++ $(LD) -X -r $*.so
++
++.if $(PORTOBJFORMAT) == "elf"
++$(LIBSONAME): $(SOOBJS)
++ -rm -f $@
++ ld -shared -soname $@ -o $@ $>
++.else
++$(LIBSONAME): $(SOOBJS)
++ -rm -f $@
++ ld -Bshareable -o $@ $>
++.endif
+
+ # Clean up installed stuff and binaries
+ pristine: clean
+@@ -86,9 +100,12 @@
+ # Get rid of everything which must be recompiled on a different computer.
+ clean:
+ -rm -f *.o
++ -rm -f *.so
+ -@if test x$(DEST) != x ; then \
+- echo rm -f $(LIBNAME) ; \
+- rm -f $(LIBNAME) ; \
++ echo rm -f $(LIBANAME) ; \
++ rm -f $(LIBANAME) ; \
++ echo rm -f $(LIBSONAME) ; \
++ rm -f $(LIBSONAME) ; \
+ else \
+ true ; \
+ fi
OpenPOWER on IntegriCloud