Add giflib port
This commit is contained in:
parent
82a8ac8ee1
commit
fdf30496b2
20
graphics/giflib/Makefile
Normal file
20
graphics/giflib/Makefile
Normal file
@ -0,0 +1,20 @@
|
||||
# OpenBSD makefile for: giflib - Gif library
|
||||
# Version required: 3.0
|
||||
# Date created: 1998-09-08
|
||||
# Whom: Yannick Cote
|
||||
#
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 1998/11/19 00:41:20 yanick Exp $
|
||||
#
|
||||
|
||||
DISTNAME= giflib-3.0
|
||||
CATEGORIES= graphics
|
||||
|
||||
MAINTAINER= yanick@fries.net
|
||||
|
||||
MASTER_SITES= ${MASTER_SITE_SUNSITE}
|
||||
MASTER_SITE_SUBDIR= libs/giflib
|
||||
|
||||
post-install:
|
||||
${LDCONFIG} -m ${PREFIX}/lib
|
||||
|
||||
.include <bsd.port.mk>
|
1
graphics/giflib/files/md5
Normal file
1
graphics/giflib/files/md5
Normal file
@ -0,0 +1 @@
|
||||
MD5 (giflib-3.0.tar.gz) = d8fb92324901ec8ae4d8da223875669b
|
98
graphics/giflib/patches/patch-aa
Normal file
98
graphics/giflib/patches/patch-aa
Normal file
@ -0,0 +1,98 @@
|
||||
--- lib/Makefile.orig Thu Jun 26 14:07:56 1997
|
||||
+++ lib/Makefile Sat Nov 7 17:23:01 1998
|
||||
@@ -11,9 +11,10 @@
|
||||
|
||||
#
|
||||
# Where all the include files are:
|
||||
-INCS = -I.
|
||||
+INCS = -I. -I${X11BASE}/include
|
||||
|
||||
-LIBDIR = /usr/lib
|
||||
+IDIR= ${PREFIX}/include/giflib
|
||||
+LIBDIR = ${PREFIX}/lib
|
||||
|
||||
#
|
||||
# What devices we should be able to grab into gif images. Note that if
|
||||
@@ -31,9 +32,9 @@
|
||||
# the -Wxxx with -Wall. I can not add -Wimplicit as my system uses old cc
|
||||
# h files.
|
||||
#
|
||||
-# CC = gcc
|
||||
+CC = gcc
|
||||
#
|
||||
-# CFLAGS = -O -c -W -Wreturn-type -Wcomment
|
||||
+CFLAGS = -O -c -W -Wreturn-type -Wcomment
|
||||
# CFLAGS = -g -pg -c -W -Wreturn-type -Wcomment
|
||||
#
|
||||
# for sun 4 (gunnars@ifi.uib.no). Tested using gcc 1.39.
|
||||
@@ -60,31 +61,43 @@
|
||||
#
|
||||
# GNU CC over Linux and XFree86
|
||||
#
|
||||
-CC = gcc
|
||||
+#CC = gcc
|
||||
#
|
||||
#CFLAGS = -fno-builtin -O -c -W -Wreturn-type -Wcomment
|
||||
-CFLAGS = -fno-builtin -g -c -W -Wreturn-type -Wcomment
|
||||
+#CFLAGS = -fno-builtin -g -c -W -Wreturn-type -Wcomment
|
||||
|
||||
|
||||
OBJS = dev2gif.o egif_lib.o dgif_lib.o gifalloc.o gif_font.o gif_hash.o \
|
||||
gif_err.o quantize.o qprintf.o getarg.o
|
||||
|
||||
+SOBJS= dev2gif.so egif_lib.so dgif_lib.so gifalloc.so gif_font.so gif_hash.so \
|
||||
+ gif_err.so quantize.so qprintf.so getarg.so
|
||||
+
|
||||
+.SUFFIXES: .o .so
|
||||
+
|
||||
.c.o:
|
||||
- $(CC) $(INCS) $(DEVS) $(CFLAGS) $<
|
||||
+ $(CC) -c $(INCS) $(DEVS) $(CFLAGS) $<
|
||||
+
|
||||
+.c.so:
|
||||
+ $(CC) -c $(INCS) $(DEVS) $(CFLAGS) -fpic -DPIC -o $@ $<
|
||||
|
||||
all: static shared
|
||||
|
||||
static: libgif.a
|
||||
+.if (${MACHINE_ARCH} == "alpha")
|
||||
+shared:
|
||||
+.else
|
||||
shared: $(SHLIB)
|
||||
+.endif
|
||||
|
||||
libgif.a: $(OBJS)
|
||||
rm -f libgif.a
|
||||
ar rcv libgif.a $(OBJS)
|
||||
-ranlib libgif.a
|
||||
|
||||
-$(SHLIB): $(OBJS)
|
||||
+$(SHLIB): $(SOBJS)
|
||||
rm -f libgif.so.$(V)
|
||||
- gcc -shared -o $(SHLIB) $(OBJS)
|
||||
+ ld -Bshareable -o $(SHLIB) $(SOBJS)
|
||||
|
||||
dev2gif.o: gif_lib.h
|
||||
egif_lib.o: gif_lib.h gif_hash.h
|
||||
@@ -98,9 +111,18 @@
|
||||
getarg.o: getarg.h
|
||||
|
||||
install-lib: libgif.a
|
||||
- cp libgif.a libgif.so.$(V) $(LIBDIR)
|
||||
+ ${BSD_INSTALL_DATA} libgif.a $(LIBDIR)
|
||||
+.if (${MACHINE_ARCH} != "alpha")
|
||||
+ ${BSD_INSTALL_DATA} libgif.so.$(V) $(LIBDIR)
|
||||
+.endif
|
||||
+ ${BSD_INSTALL_DATA_DIR} ${IDIR}
|
||||
+ ${BSD_INSTALL_DATA} *.h ${IDIR}
|
||||
+
|
||||
+uninstall-lib:
|
||||
+ ${RM} -f $(LIBDIR)/libgif.a
|
||||
+.if (${MACHINE_ARCH} != "alpha")
|
||||
+ ${RM} -f $(LIBDIR)/$(SHLIB)
|
||||
+.endif
|
||||
|
||||
-uninstall-lib: shared static
|
||||
- rm -f $(LIBDIR)/libgif.a $(LIBDIR)/$(SHLIB)
|
||||
clean:
|
||||
rm -f *.[oa] *~ libgif.so.$(V)
|
48
graphics/giflib/patches/patch-ab
Normal file
48
graphics/giflib/patches/patch-ab
Normal file
@ -0,0 +1,48 @@
|
||||
--- util/Makefile.orig Thu Jun 26 10:22:30 1997
|
||||
+++ util/Makefile Wed Nov 4 18:10:27 1998
|
||||
@@ -6,7 +6,7 @@
|
||||
#
|
||||
# make -f makefile.unx [all] [rle] [iris]
|
||||
#
|
||||
-# To install them in the /usr/bin directory:
|
||||
+# To install them in the ${PREFIX}/bin directory:
|
||||
#
|
||||
# make -f makefile.unx [install-all] [install-rle] [install-iris]
|
||||
#
|
||||
@@ -27,7 +27,7 @@
|
||||
GIF_INC_DEPEND = ../lib/libgif.a ../lib/gif_lib.h ../lib/getarg.h
|
||||
|
||||
# Where to copy executables to:
|
||||
-DEST = /usr/bin
|
||||
+DEST = ${PREFIX}/bin
|
||||
|
||||
# These are the flags for gcc, in BSD4.3 or Sun O.S. 4.0.3
|
||||
#
|
||||
@@ -35,8 +35,8 @@
|
||||
# the -Wxxx with -Wall. I can not add -Wimplicit as my system uses old cc
|
||||
# h files.
|
||||
#
|
||||
-# CC = gcc
|
||||
-# CFLAGS = $(INC) -O -s -W -Wreturn-type -Wcomment
|
||||
+CC = gcc
|
||||
+CFLAGS = $(INC) -O -s -W -Wreturn-type -Wcomment
|
||||
# CFLAGS = $(INC) -g -pg -W -Wreturn-type -Wcomment
|
||||
|
||||
|
||||
@@ -81,12 +81,12 @@
|
||||
|
||||
# Linux using XFree86
|
||||
#
|
||||
-CC = gcc
|
||||
+#CC = gcc
|
||||
#CFLAGS = $(INC) -fno-builtin -O -s -W -Wreturn-type -Wcomment
|
||||
-CFLAGS = $(INC) -fno-builtin -g -W -Wreturn-type -Wcomment
|
||||
+#CFLAGS = $(INC) -fno-builtin -g -W -Wreturn-type -Wcomment
|
||||
XLIBS = -lX11
|
||||
-X_INC_DIR = /usr/X11/include
|
||||
-X_LIB_DIR = /usr/X11/lib
|
||||
+X_INC_DIR = ${X11BASE}/include
|
||||
+X_LIB_DIR = ${X11BASE}/lib
|
||||
|
||||
BINARIES = gif2epsn gif2ps gif2rgb gif2x11 gifasm gifbg \
|
||||
gifclip gifclrmp gifcomb giffix gifflip gifhisto \
|
1
graphics/giflib/pkg/COMMENT
Normal file
1
graphics/giflib/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
Gif Library and utilities.
|
11
graphics/giflib/pkg/DESCR
Normal file
11
graphics/giflib/pkg/DESCR
Normal file
@ -0,0 +1,11 @@
|
||||
This package has been released under an X Consortium-life freeware
|
||||
license. Use and copy as you see fit. If you make useful changes, add
|
||||
new tools, or find and fix bugs, please send your mods to the
|
||||
maintainers for general distribution.
|
||||
The util directory includes programs to clip, rotate, scale, and
|
||||
position GIF images. It includes an X11 viewer, code to dump GIFs to
|
||||
an Epson-compatible printer in graphics mode, and many conversion
|
||||
utilities. These are no replacement for an interactive graphics
|
||||
editor, but they can be very useful for scripted image generation or
|
||||
transformation.
|
||||
|
38
graphics/giflib/pkg/PLIST
Normal file
38
graphics/giflib/pkg/PLIST
Normal file
@ -0,0 +1,38 @@
|
||||
@cwd /usr/local
|
||||
@name giflib-3.0
|
||||
bin/rgb2gif
|
||||
bin/gif2epsn
|
||||
bin/gifcompose
|
||||
bin/gifcolor
|
||||
bin/icon2gif
|
||||
bin/giffiltr
|
||||
bin/gifspnge
|
||||
bin/text2gif
|
||||
bin/raw2gif
|
||||
bin/gifwedge
|
||||
bin/giftext
|
||||
bin/gifrsize
|
||||
bin/gifrotat
|
||||
bin/gifpos
|
||||
bin/gifovly
|
||||
bin/gifinto
|
||||
bin/gifinter
|
||||
bin/gifhisto
|
||||
bin/gifflip
|
||||
bin/giffix
|
||||
bin/gifcomb
|
||||
bin/gifclrmp
|
||||
bin/gifclip
|
||||
bin/gifbg
|
||||
bin/gifasm
|
||||
bin/gif2x11
|
||||
bin/gif2rgb
|
||||
bin/gif2ps
|
||||
bin/gifburst
|
||||
lib/libgif.so.3.0
|
||||
lib/libgif.a
|
||||
include/giflib/gif_lib.h
|
||||
include/giflib/gif_hash.h
|
||||
include/giflib/getarg.h
|
||||
@dirrm include/giflib
|
||||
@exec [ ! -x /sbin/ldconfig ] || /sbin/ldconfig -m /usr/local/lib
|
36
graphics/giflib/pkg/PLIST.alpha
Normal file
36
graphics/giflib/pkg/PLIST.alpha
Normal file
@ -0,0 +1,36 @@
|
||||
@cwd /usr/local
|
||||
@name giflib-3.0
|
||||
bin/rgb2gif
|
||||
bin/gif2epsn
|
||||
bin/gifcompose
|
||||
bin/gifcolor
|
||||
bin/icon2gif
|
||||
bin/giffiltr
|
||||
bin/gifspnge
|
||||
bin/text2gif
|
||||
bin/raw2gif
|
||||
bin/gifwedge
|
||||
bin/giftext
|
||||
bin/gifrsize
|
||||
bin/gifrotat
|
||||
bin/gifpos
|
||||
bin/gifovly
|
||||
bin/gifinto
|
||||
bin/gifinter
|
||||
bin/gifhisto
|
||||
bin/gifflip
|
||||
bin/giffix
|
||||
bin/gifcomb
|
||||
bin/gifclrmp
|
||||
bin/gifclip
|
||||
bin/gifbg
|
||||
bin/gifasm
|
||||
bin/gif2x11
|
||||
bin/gif2rgb
|
||||
bin/gif2ps
|
||||
bin/gifburst
|
||||
lib/libgif.a
|
||||
include/giflib/gif_lib.h
|
||||
include/giflib/gif_hash.h
|
||||
include/giflib/getarg.h
|
||||
@dirrm include/giflib
|
Loading…
Reference in New Issue
Block a user