mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
- remove obsolte ports of gd1 and realatives
This commit is contained in:
parent
32378b5d62
commit
041e15a941
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=108423
@ -1,55 +0,0 @@
|
||||
# New ports collection makefile for: gd1
|
||||
# Date created: 27 Mar 1998
|
||||
# Whom: jeff@cetlink.net
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= gd
|
||||
PORTVERSION= 1.8.4
|
||||
PORTEPOCH= 2
|
||||
CATEGORIES+= graphics
|
||||
MASTER_SITES= http://www.boutell.com/gd/http/ \
|
||||
${MASTER_SITE_RINGSERVER}
|
||||
MASTER_SITE_SUBDIR= graphics/gd
|
||||
|
||||
MAINTAINER?= ports@FreeBSD.org
|
||||
COMMENT?= A graphics library for fast creation of images
|
||||
|
||||
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
||||
png.5:${PORTSDIR}/graphics/png \
|
||||
freetype.9:${PORTSDIR}/print/freetype2
|
||||
.if defined(WITH_XPM)
|
||||
.if defined(WITHOUT_X11)
|
||||
LIB_DEPENDS+= Xpm:${PORTSDIR}/graphics/xpm
|
||||
CPPFLAGS+= -I${X11BASE}/include/X11 -I${X11BASE}/include -DHAVE_LIBXPM
|
||||
LDFLAGS+= -L${X11BASE}/lib -lXpm
|
||||
.else
|
||||
USE_XPM= yes
|
||||
CPPFLAGS+= -I${X11BASE}/include/X11 -I${X11BASE}/include -DHAVE_LIBXPM
|
||||
LDFLAGS+= -L${X11BASE}/lib -lXpm -lX11
|
||||
.endif
|
||||
.endif
|
||||
|
||||
DEPRECATED= ancient, gd2 should be API compatible
|
||||
EXPIRATION_DATE= 2004-05-01
|
||||
|
||||
MAKE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
||||
|
||||
LATEST_LINK?= gd1
|
||||
|
||||
MAKEFILE= ${FILESDIR}/Makefile.lib
|
||||
INSTALLS_SHLIB= yes
|
||||
|
||||
pre-everything::
|
||||
.if !defined(WITH_XPM)
|
||||
@${ECHO_MSG}
|
||||
@${ECHO_MSG} "If you want to compile with Xpm support,"
|
||||
@${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_XPM=yes\""
|
||||
@${ECHO_MSG}
|
||||
.endif
|
||||
|
||||
post-extract:
|
||||
@${CP} ${FILESDIR}/gd_gif_in.c ${WRKSRC}
|
||||
|
||||
.include <bsd.port.mk>
|
@ -1,2 +0,0 @@
|
||||
MD5 (gd-1.8.4.tar.gz) = 2aef76e79f206f9798233f025f5dd28d
|
||||
SIZE (gd-1.8.4.tar.gz) = 257631
|
@ -1,32 +0,0 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PREFIX?= /usr/local
|
||||
SHLIB_VER?= 2
|
||||
|
||||
LIB= gd1
|
||||
LIBDIR= ${PREFIX}/lib
|
||||
SHLIB_MAJOR= ${SHLIB_VER}
|
||||
SHLIB_MINOR= 0
|
||||
NOPROFILE= yes
|
||||
NOOBJ= yes
|
||||
|
||||
INCS= gd.h gd_io.h gdcache.h gdfontg.h gdfontl.h gdfontmb.h \
|
||||
gdfonts.h gdfontt.h
|
||||
INCSDIR= ${PREFIX}/include/gd
|
||||
INCDIR= ${INSCDIR} # for pre-bsd.incs.mk API
|
||||
|
||||
SRCS= gd.c gd_gd.c gd_gd2.c gd_io.c gd_io_dp.c gd_io_file.c gd_ss.c \
|
||||
gd_io_ss.c gd_png.c gd_jpeg.c gdxpm.c gdfontt.c gdfonts.c \
|
||||
gdfontmb.c gdfontl.c gdfontg.c gdtables.c gdft.c gdttf.c \
|
||||
gdcache.c gdkanji.c wbmp.c gd_wbmp.c gdhelpers.c gd_gif_in.c
|
||||
|
||||
CFLAGS+= -I${.CURDIR} -I${LOCALBASE}/include/freetype2/freetype \
|
||||
-I${LOCALBASE}/include/freetype2 -I${LOCALBASE}/include \
|
||||
-DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE -DHAVE_LIBZ \
|
||||
${CPPFLAGS}
|
||||
LDADD= -L${LOCALBASE}/lib -lfreetype -ljpeg -lpng -lz ${LDFLAGS}
|
||||
|
||||
beforeinstall:
|
||||
mkdir -p ${INCSDIR}
|
||||
|
||||
.include <bsd.lib.mk>
|
@ -1,561 +0,0 @@
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include "gd.h"
|
||||
|
||||
/* Used only when debugging GIF compression code */
|
||||
/* #define DEBUGGING_ENVARS */
|
||||
|
||||
#ifdef DEBUGGING_ENVARS
|
||||
|
||||
static int verbose_set = 0;
|
||||
static int verbose;
|
||||
#define VERBOSE (verbose_set?verbose:set_verbose())
|
||||
|
||||
static int set_verbose(void)
|
||||
{
|
||||
verbose = !!getenv("GIF_VERBOSE");
|
||||
verbose_set = 1;
|
||||
return(verbose);
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
#define VERBOSE 0
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#define MAXCOLORMAPSIZE 256
|
||||
|
||||
#define TRUE 1
|
||||
#define FALSE 0
|
||||
|
||||
#define CM_RED 0
|
||||
#define CM_GREEN 1
|
||||
#define CM_BLUE 2
|
||||
|
||||
#define MAX_LWZ_BITS 12
|
||||
|
||||
#define INTERLACE 0x40
|
||||
#define LOCALCOLORMAP 0x80
|
||||
#define BitSet(byte, bit) (((byte) & (bit)) == (bit))
|
||||
|
||||
#define ReadOK(file,buffer,len) (gdGetBuf(buffer, len, file) != 0)
|
||||
|
||||
#define LM_to_uint(a,b) (((b)<<8)|(a))
|
||||
|
||||
/* We may eventually want to use this information, but def it out for now */
|
||||
#if 0
|
||||
static struct {
|
||||
unsigned int Width;
|
||||
unsigned int Height;
|
||||
unsigned char ColorMap[3][MAXCOLORMAPSIZE];
|
||||
unsigned int BitPixel;
|
||||
unsigned int ColorResolution;
|
||||
unsigned int Background;
|
||||
unsigned int AspectRatio;
|
||||
} GifScreen;
|
||||
#endif
|
||||
|
||||
static struct {
|
||||
int transparent;
|
||||
int delayTime;
|
||||
int inputFlag;
|
||||
int disposal;
|
||||
} Gif89 = { -1, -1, -1, 0 };
|
||||
|
||||
static int ReadColorMap (gdIOCtx *fd, int number, unsigned char (*buffer)[256]);
|
||||
static int DoExtension (gdIOCtx *fd, int label, int *Transparent);
|
||||
static int GetDataBlock (gdIOCtx *fd, unsigned char *buf);
|
||||
static int GetCode (gdIOCtx *fd, int code_size, int flag);
|
||||
static int LWZReadByte (gdIOCtx *fd, int flag, int input_code_size);
|
||||
|
||||
static void ReadImage (gdImagePtr im, gdIOCtx *fd, int len, int height, unsigned char (*cmap)[256], int interlace); /*1.4//, int ignore); */
|
||||
|
||||
int ZeroDataBlock;
|
||||
|
||||
gdImagePtr
|
||||
gdImageCreateFromGif(FILE *fdFile)
|
||||
{
|
||||
gdIOCtx *fd = gdNewFileCtx(fdFile);
|
||||
gdImagePtr im = 0;
|
||||
|
||||
im = gdImageCreateFromGifCtx(fd);
|
||||
|
||||
fd->free(fd);
|
||||
|
||||
return im;
|
||||
}
|
||||
|
||||
gdImagePtr
|
||||
gdImageCreateFromGifCtx(gdIOCtxPtr fd)
|
||||
{
|
||||
int imageNumber;
|
||||
int BitPixel;
|
||||
int ColorResolution;
|
||||
int Background;
|
||||
int AspectRatio;
|
||||
int Transparent = (-1);
|
||||
unsigned char buf[16];
|
||||
unsigned char c;
|
||||
unsigned char ColorMap[3][MAXCOLORMAPSIZE];
|
||||
unsigned char localColorMap[3][MAXCOLORMAPSIZE];
|
||||
int imw, imh;
|
||||
int useGlobalColormap;
|
||||
int bitPixel;
|
||||
int i;
|
||||
/*1.4//int imageCount = 0; */
|
||||
char version[4];
|
||||
|
||||
gdImagePtr im = 0;
|
||||
ZeroDataBlock = FALSE;
|
||||
|
||||
/*1.4//imageNumber = 1; */
|
||||
if (! ReadOK(fd,buf,6)) {
|
||||
return 0;
|
||||
}
|
||||
if (strncmp((char *)buf,"GIF",3) != 0) {
|
||||
return 0;
|
||||
}
|
||||
strncpy(version, (char *)buf + 3, 3);
|
||||
version[3] = '\0';
|
||||
|
||||
if ((strcmp(version, "87a") != 0) && (strcmp(version, "89a") != 0)) {
|
||||
return 0;
|
||||
}
|
||||
if (! ReadOK(fd,buf,7)) {
|
||||
return 0;
|
||||
}
|
||||
BitPixel = 2<<(buf[4]&0x07);
|
||||
ColorResolution = (int) (((buf[4]&0x70)>>3)+1);
|
||||
Background = buf[5];
|
||||
AspectRatio = buf[6];
|
||||
|
||||
if (BitSet(buf[4], LOCALCOLORMAP)) { /* Global Colormap */
|
||||
if (ReadColorMap(fd, BitPixel, ColorMap)) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
for (;;) {
|
||||
if (! ReadOK(fd,&c,1)) {
|
||||
return 0;
|
||||
}
|
||||
if (c == ';') { /* GIF terminator */
|
||||
goto terminated;
|
||||
}
|
||||
|
||||
if (c == '!') { /* Extension */
|
||||
if (! ReadOK(fd,&c,1)) {
|
||||
return 0;
|
||||
}
|
||||
DoExtension(fd, c, &Transparent);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (c != ',') { /* Not a valid start character */
|
||||
continue;
|
||||
}
|
||||
|
||||
/*1.4//++imageCount; */
|
||||
|
||||
if (! ReadOK(fd,buf,9)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
useGlobalColormap = ! BitSet(buf[8], LOCALCOLORMAP);
|
||||
|
||||
bitPixel = 1<<((buf[8]&0x07)+1);
|
||||
|
||||
imw = LM_to_uint(buf[4],buf[5]);
|
||||
imh = LM_to_uint(buf[6],buf[7]);
|
||||
if (!(im = gdImageCreate(imw, imh))) {
|
||||
return 0;
|
||||
}
|
||||
im->interlace = BitSet(buf[8], INTERLACE);
|
||||
if (! useGlobalColormap) {
|
||||
if (ReadColorMap(fd, bitPixel, localColorMap)) {
|
||||
return 0;
|
||||
}
|
||||
ReadImage(im, fd, imw, imh, localColorMap,
|
||||
BitSet(buf[8], INTERLACE));
|
||||
/*1.4//imageCount != imageNumber); */
|
||||
} else {
|
||||
ReadImage(im, fd, imw, imh,
|
||||
ColorMap,
|
||||
BitSet(buf[8], INTERLACE));
|
||||
/*1.4//imageCount != imageNumber); */
|
||||
}
|
||||
if (Transparent != (-1)) {
|
||||
gdImageColorTransparent(im, Transparent);
|
||||
}
|
||||
goto terminated;
|
||||
}
|
||||
|
||||
terminated:
|
||||
/* Terminator before any image was declared! */
|
||||
if (!im) {
|
||||
return 0;
|
||||
}
|
||||
/* Check for open colors at the end, so
|
||||
we can reduce colorsTotal and ultimately
|
||||
BitsPerPixel */
|
||||
for (i=((im->colorsTotal-1)); (i>=0); i--) {
|
||||
if (im->open[i]) {
|
||||
im->colorsTotal--;
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return im;
|
||||
}
|
||||
|
||||
static int
|
||||
ReadColorMap(gdIOCtx *fd, int number, unsigned char (*buffer)[256])
|
||||
{
|
||||
int i;
|
||||
unsigned char rgb[3];
|
||||
|
||||
|
||||
for (i = 0; i < number; ++i) {
|
||||
if (! ReadOK(fd, rgb, sizeof(rgb))) {
|
||||
return TRUE;
|
||||
}
|
||||
buffer[CM_RED][i] = rgb[0] ;
|
||||
buffer[CM_GREEN][i] = rgb[1] ;
|
||||
buffer[CM_BLUE][i] = rgb[2] ;
|
||||
}
|
||||
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static int
|
||||
DoExtension(gdIOCtx *fd, int label, int *Transparent)
|
||||
{
|
||||
static unsigned char buf[256];
|
||||
|
||||
switch (label) {
|
||||
case 0xf9: /* Graphic Control Extension */
|
||||
(void) GetDataBlock(fd, (unsigned char*) buf);
|
||||
Gif89.disposal = (buf[0] >> 2) & 0x7;
|
||||
Gif89.inputFlag = (buf[0] >> 1) & 0x1;
|
||||
Gif89.delayTime = LM_to_uint(buf[1],buf[2]);
|
||||
if ((buf[0] & 0x1) != 0)
|
||||
*Transparent = buf[3];
|
||||
|
||||
while (GetDataBlock(fd, (unsigned char*) buf) != 0)
|
||||
;
|
||||
return FALSE;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
while (GetDataBlock(fd, (unsigned char*) buf) != 0)
|
||||
;
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static int
|
||||
GetDataBlock_(gdIOCtx *fd, unsigned char *buf)
|
||||
{
|
||||
unsigned char count;
|
||||
|
||||
if (! ReadOK(fd,&count,1)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
ZeroDataBlock = count == 0;
|
||||
|
||||
if ((count != 0) && (! ReadOK(fd, buf, count))) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
static int
|
||||
GetDataBlock(gdIOCtx *fd, unsigned char *buf)
|
||||
{
|
||||
int rv;
|
||||
int i;
|
||||
|
||||
rv = GetDataBlock_(fd,buf);
|
||||
if (VERBOSE)
|
||||
{ printf("[GetDataBlock returning %d",rv);
|
||||
if (rv > 0)
|
||||
{ printf(":");
|
||||
for (i=0;i<rv;i++) printf(" %02x",buf[i]);
|
||||
}
|
||||
printf("]\n");
|
||||
}
|
||||
return(rv);
|
||||
}
|
||||
|
||||
static int
|
||||
GetCode_(gdIOCtx *fd, int code_size, int flag)
|
||||
{
|
||||
static unsigned char buf[280];
|
||||
static int curbit, lastbit, done, last_byte;
|
||||
int i, j, ret;
|
||||
unsigned char count;
|
||||
|
||||
if (flag) {
|
||||
curbit = 0;
|
||||
lastbit = 0;
|
||||
done = FALSE;
|
||||
return 0;
|
||||
}
|
||||
|
||||
if ( (curbit+code_size) >= lastbit) {
|
||||
if (done) {
|
||||
if (curbit >= lastbit) {
|
||||
/* Oh well */
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
buf[0] = buf[last_byte-2];
|
||||
buf[1] = buf[last_byte-1];
|
||||
|
||||
if ((count = GetDataBlock(fd, &buf[2])) == 0)
|
||||
done = TRUE;
|
||||
|
||||
last_byte = 2 + count;
|
||||
curbit = (curbit - lastbit) + 16;
|
||||
lastbit = (2+count)*8 ;
|
||||
}
|
||||
|
||||
ret = 0;
|
||||
for (i = curbit, j = 0; j < code_size; ++i, ++j)
|
||||
ret |= ((buf[ i / 8 ] & (1 << (i % 8))) != 0) << j;
|
||||
|
||||
curbit += code_size;
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int
|
||||
GetCode(gdIOCtx *fd, int code_size, int flag)
|
||||
{
|
||||
int rv;
|
||||
|
||||
rv = GetCode_(fd,code_size,flag);
|
||||
if (VERBOSE) printf("[GetCode(,%d,%d) returning %d]\n",code_size,flag,rv);
|
||||
return(rv);
|
||||
}
|
||||
|
||||
#define STACK_SIZE ((1<<(MAX_LWZ_BITS))*2)
|
||||
static int
|
||||
LWZReadByte_(gdIOCtx *fd, int flag, int input_code_size)
|
||||
{
|
||||
static int fresh = FALSE;
|
||||
int code, incode;
|
||||
static int code_size, set_code_size;
|
||||
static int max_code, max_code_size;
|
||||
static int firstcode, oldcode;
|
||||
static int clear_code, end_code;
|
||||
static int table[2][(1<< MAX_LWZ_BITS)];
|
||||
static int stack[STACK_SIZE], *sp;
|
||||
register int i;
|
||||
|
||||
if (flag) {
|
||||
set_code_size = input_code_size;
|
||||
code_size = set_code_size+1;
|
||||
clear_code = 1 << set_code_size ;
|
||||
end_code = clear_code + 1;
|
||||
max_code_size = 2*clear_code;
|
||||
max_code = clear_code+2;
|
||||
|
||||
GetCode(fd, 0, TRUE);
|
||||
|
||||
fresh = TRUE;
|
||||
|
||||
for (i = 0; i < clear_code; ++i) {
|
||||
table[0][i] = 0;
|
||||
table[1][i] = i;
|
||||
}
|
||||
for (; i < (1<<MAX_LWZ_BITS); ++i)
|
||||
table[0][i] = table[1][0] = 0;
|
||||
|
||||
sp = stack;
|
||||
|
||||
return 0;
|
||||
} else if (fresh) {
|
||||
fresh = FALSE;
|
||||
do {
|
||||
firstcode = oldcode =
|
||||
GetCode(fd, code_size, FALSE);
|
||||
} while (firstcode == clear_code);
|
||||
return firstcode;
|
||||
}
|
||||
|
||||
if (sp > stack)
|
||||
return *--sp;
|
||||
|
||||
while ((code = GetCode(fd, code_size, FALSE)) >= 0) {
|
||||
if (code == clear_code) {
|
||||
for (i = 0; i < clear_code; ++i) {
|
||||
table[0][i] = 0;
|
||||
table[1][i] = i;
|
||||
}
|
||||
for (; i < (1<<MAX_LWZ_BITS); ++i)
|
||||
table[0][i] = table[1][i] = 0;
|
||||
code_size = set_code_size+1;
|
||||
max_code_size = 2*clear_code;
|
||||
max_code = clear_code+2;
|
||||
sp = stack;
|
||||
firstcode = oldcode =
|
||||
GetCode(fd, code_size, FALSE);
|
||||
return firstcode;
|
||||
} else if (code == end_code) {
|
||||
int count;
|
||||
unsigned char buf[260];
|
||||
|
||||
if (ZeroDataBlock)
|
||||
return -2;
|
||||
|
||||
while ((count = GetDataBlock(fd, buf)) > 0)
|
||||
;
|
||||
|
||||
if (count != 0)
|
||||
return -2;
|
||||
}
|
||||
|
||||
incode = code;
|
||||
|
||||
if (sp == (stack + STACK_SIZE)) {
|
||||
/* Bad compressed data stream */
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (code >= max_code) {
|
||||
*sp++ = firstcode;
|
||||
code = oldcode;
|
||||
}
|
||||
|
||||
while (code >= clear_code) {
|
||||
if (sp == (stack + STACK_SIZE)) {
|
||||
/* Bad compressed data stream */
|
||||
return -1;
|
||||
}
|
||||
*sp++ = table[1][code];
|
||||
if (code == table[0][code]) {
|
||||
/* Oh well */
|
||||
}
|
||||
code = table[0][code];
|
||||
}
|
||||
|
||||
*sp++ = firstcode = table[1][code];
|
||||
|
||||
if ((code = max_code) <(1<<MAX_LWZ_BITS)) {
|
||||
table[0][code] = oldcode;
|
||||
table[1][code] = firstcode;
|
||||
++max_code;
|
||||
if ((max_code >= max_code_size) &&
|
||||
(max_code_size < (1<<MAX_LWZ_BITS))) {
|
||||
max_code_size *= 2;
|
||||
++code_size;
|
||||
}
|
||||
}
|
||||
|
||||
oldcode = incode;
|
||||
|
||||
if (sp > stack)
|
||||
return *--sp;
|
||||
}
|
||||
return code;
|
||||
}
|
||||
|
||||
static int
|
||||
LWZReadByte(gdIOCtx *fd, int flag, int input_code_size)
|
||||
{
|
||||
int rv;
|
||||
|
||||
rv = LWZReadByte_(fd,flag,input_code_size);
|
||||
if (VERBOSE) printf("[LWZReadByte(,%d,%d) returning %d]\n",flag,input_code_size,rv);
|
||||
return(rv);
|
||||
}
|
||||
|
||||
static void
|
||||
ReadImage(gdImagePtr im, gdIOCtx *fd, int len, int height, unsigned char (*cmap)[256], int interlace) /*1.4//, int ignore) */
|
||||
{
|
||||
unsigned char c;
|
||||
int v;
|
||||
int xpos = 0, ypos = 0, pass = 0;
|
||||
int i;
|
||||
/* Stash the color map into the image */
|
||||
for (i=0; (i<gdMaxColors); i++) {
|
||||
im->red[i] = cmap[CM_RED][i];
|
||||
im->green[i] = cmap[CM_GREEN][i];
|
||||
im->blue[i] = cmap[CM_BLUE][i];
|
||||
im->open[i] = 1;
|
||||
}
|
||||
/* Many (perhaps most) of these colors will remain marked open. */
|
||||
im->colorsTotal = gdMaxColors;
|
||||
/*
|
||||
** Initialize the Compression routines
|
||||
*/
|
||||
if (! ReadOK(fd,&c,1)) {
|
||||
return;
|
||||
}
|
||||
if (LWZReadByte(fd, TRUE, c) < 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
** If this is an "uninteresting picture" ignore it.
|
||||
** REMOVED For 1.4
|
||||
*/
|
||||
/*if (ignore) { */
|
||||
/* while (LWZReadByte(fd, FALSE, c) >= 0) */
|
||||
/* ; */
|
||||
/* return; */
|
||||
/*} */
|
||||
|
||||
while ((v = LWZReadByte(fd,FALSE,c)) >= 0 ) {
|
||||
/* This how we recognize which colors are actually used. */
|
||||
if (im->open[v]) {
|
||||
im->open[v] = 0;
|
||||
}
|
||||
gdImageSetPixel(im, xpos, ypos, v);
|
||||
++xpos;
|
||||
if (xpos == len) {
|
||||
xpos = 0;
|
||||
if (interlace) {
|
||||
switch (pass) {
|
||||
case 0:
|
||||
case 1:
|
||||
ypos += 8; break;
|
||||
case 2:
|
||||
ypos += 4; break;
|
||||
case 3:
|
||||
ypos += 2; break;
|
||||
}
|
||||
|
||||
if (ypos >= height) {
|
||||
++pass;
|
||||
switch (pass) {
|
||||
case 1:
|
||||
ypos = 4; break;
|
||||
case 2:
|
||||
ypos = 2; break;
|
||||
case 3:
|
||||
ypos = 1; break;
|
||||
default:
|
||||
goto fini;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
++ypos;
|
||||
}
|
||||
}
|
||||
if (ypos >= height)
|
||||
break;
|
||||
}
|
||||
|
||||
fini:
|
||||
if (LWZReadByte(fd,FALSE,c)>=0) {
|
||||
/* Ignore extra */
|
||||
}
|
||||
}
|
||||
|
@ -1,10 +0,0 @@
|
||||
--- gdcache.h.orig Wed Feb 7 04:44:02 2001
|
||||
+++ gdcache.h Fri Jul 4 21:58:32 2003
|
||||
@@ -40,7 +40,6 @@
|
||||
/* header */
|
||||
/*********************************************************/
|
||||
|
||||
-#include <malloc.h>
|
||||
#ifndef NULL
|
||||
#define NULL (void *)0
|
||||
#endif
|
@ -1,12 +0,0 @@
|
||||
--- gdft.c.orig Sun Mar 21 18:25:37 2004
|
||||
+++ gdft.c Sun Mar 21 18:26:17 2004
|
||||
@@ -33,7 +33,8 @@
|
||||
#else
|
||||
|
||||
#include "gdcache.h"
|
||||
-#include "freetype/freetype.h"
|
||||
+#include "ft2build.h"
|
||||
+#include FT_FREETYPE_H
|
||||
#include "freetype/ftglyph.h"
|
||||
|
||||
/* number of fonts cached before least recently used is replaced */
|
@ -1,87 +0,0 @@
|
||||
--- gdkanji.c.orig Fri Feb 2 05:23:56 2001
|
||||
+++ gdkanji.c Wed Feb 7 20:59:08 2001
|
||||
@@ -103,14 +103,18 @@
|
||||
unsigned char *str;
|
||||
#endif
|
||||
{
|
||||
- static int whatcode;
|
||||
+ static int whatcode = ASCII;
|
||||
+ int oldcode = ASCII;
|
||||
int c, i;
|
||||
char *lang = NULL;
|
||||
|
||||
c = '\1';
|
||||
i = 0;
|
||||
|
||||
- if (whatcode == 0) whatcode = ASCII;
|
||||
+ if (whatcode != EUCORSJIS && whatcode != ASCII) {
|
||||
+ oldcode = whatcode;
|
||||
+ whatcode = ASCII;
|
||||
+ }
|
||||
|
||||
while ((whatcode == EUCORSJIS || whatcode == ASCII) && c != '\0') {
|
||||
if ((c = str[i++]) != '\0') {
|
||||
@@ -167,7 +171,7 @@
|
||||
if ((c >= 64 && c <= 126) || (c >= 128 && c <= 160))
|
||||
whatcode = SJIS;
|
||||
else
|
||||
- if (c >= 253 && c >= 254) whatcode = EUC;
|
||||
+ if (c >= 253 && c <= 254) whatcode = EUC;
|
||||
else
|
||||
if (c >= 161 && c <= 252) whatcode = EUCORSJIS;
|
||||
}
|
||||
@@ -184,6 +188,8 @@
|
||||
debug("Kanji code detected at %d byte.", i);
|
||||
#endif
|
||||
|
||||
+ if (whatcode == EUCORSJIS && oldcode != ASCII) whatcode = oldcode;
|
||||
+
|
||||
if (whatcode == EUCORSJIS) {
|
||||
if (getenv ("LC_ALL")) lang = getenv ("LC_ALL");
|
||||
else
|
||||
@@ -310,7 +316,7 @@
|
||||
error("invalid code specification: \"%s\" or \"%s\"",
|
||||
EUCSTR, code);
|
||||
#endif
|
||||
- strcpy(to, from);
|
||||
+ ustrcpy(to, from);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -328,7 +334,7 @@
|
||||
else
|
||||
#endif
|
||||
error("something happen");
|
||||
- strcpy(to, from);
|
||||
+ ustrcpy(to, from);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -526,11 +532,10 @@
|
||||
|
||||
t = (unsigned char *)gdMalloc(BUFSIZ);
|
||||
any2eucjp(t, s, BUFSIZ);
|
||||
- i = strlen(t);
|
||||
+ i = strlen((const char *)t);
|
||||
gdFree(t);
|
||||
return i;
|
||||
}
|
||||
-#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
int main()
|
||||
@@ -543,7 +548,7 @@
|
||||
while ( (c = fgetc(stdin)) != '\n' && i < BUFSIZ ) input[i++] = c;
|
||||
input[i] = '\0';
|
||||
|
||||
- printf("input : %d bytes\n", strlen(input));
|
||||
+ printf("input : %d bytes\n", strlen((const char *)input));
|
||||
printf("output: %d bytes\n", strwidth(input));
|
||||
|
||||
output = (unsigned char *)gdMalloc(BUFSIZ);
|
||||
@@ -555,4 +560,5 @@
|
||||
|
||||
return 0;
|
||||
}
|
||||
+#endif
|
||||
#endif
|
@ -1,17 +0,0 @@
|
||||
--- gdttf.c.orig Fri Feb 2 05:23:56 2001
|
||||
+++ gdttf.c Wed Feb 7 20:57:34 2001
|
||||
@@ -221,11 +221,10 @@
|
||||
byte = *((unsigned char *) str);
|
||||
#ifdef JISX0208
|
||||
if (0xA1 <= byte && byte <= 0xFE) {
|
||||
- int jiscode, ku, ten;
|
||||
+ int ku, ten;
|
||||
|
||||
- jiscode = 0x100 * (byte & 0x7F) + (str[1] & 0x7F);
|
||||
- ku = (jiscode >> 8) - 0x20;
|
||||
- ten = (jiscode % 256) - 0x20;
|
||||
+ ku = (byte & 0x7F) - 0x20;
|
||||
+ ten = (str[1] & 0x7F) - 0x20;
|
||||
if ( (ku < 1 || ku > 92) || (ten < 1 || ten > 94) ) {
|
||||
*chPtr = (Tcl_UniChar) byte;
|
||||
return 1;
|
@ -1,11 +0,0 @@
|
||||
This patch together with the old implementation (from gd-1.5) of
|
||||
gd_gif_in.c restore GD's ability to read GIF images. The writing of such
|
||||
images is troubled because of Unisys' zeal in patent enforcement.
|
||||
|
||||
--- gd.h Tue Feb 6 14:44:01 2001
|
||||
+++ gd.h Fri Jul 27 16:10:38 2001
|
||||
@@ -95,2 +95,4 @@
|
||||
gdImagePtr gdImageCreate(int sx, int sy);
|
||||
+gdImagePtr gdImageCreateFromGif(FILE *fd);
|
||||
+gdImagePtr gdImageCreateFromGifCtx(gdIOCtxPtr in);
|
||||
gdImagePtr gdImageCreateFromPng(FILE *fd);
|
@ -1,23 +0,0 @@
|
||||
DESCRIPTION
|
||||
|
||||
gd is a graphics library. It allows your code to quickly draw images
|
||||
complete with lines, arcs, text, multiple colors, cut and paste from
|
||||
other images, and flood fills, and write out the result as a .PNG file.
|
||||
This is particularly useful in World Wide Web applications, where .PNG
|
||||
is the format used for inline images.
|
||||
|
||||
gd is not a paint program. If you are looking for a paint program, you
|
||||
are looking in the wrong place. If you are not a programmer, you are
|
||||
looking in the wrong place.
|
||||
|
||||
gd does not provide for every possible desirable graphics operation.
|
||||
It is not necessary or desirable for gd to become a kitchen-sink
|
||||
graphics package, but version 1.7.3 incorporates most of the commonly
|
||||
requested features for an 8-bit 2D package. Support for truecolor
|
||||
images, JPEG and truecolor PNG is planned for version 2.0.
|
||||
|
||||
AUTHOR
|
||||
gd was written by Thomas Boutell and is currently distributed by
|
||||
boutell.com, Inc.
|
||||
|
||||
WWW: http://www.boutell.com/gd/
|
@ -1,12 +0,0 @@
|
||||
include/gd/gd.h
|
||||
include/gd/gd_io.h
|
||||
include/gd/gdcache.h
|
||||
include/gd/gdfontg.h
|
||||
include/gd/gdfontl.h
|
||||
include/gd/gdfontmb.h
|
||||
include/gd/gdfonts.h
|
||||
include/gd/gdfontt.h
|
||||
lib/libgd1.a
|
||||
lib/libgd1.so
|
||||
lib/libgd1.so.2
|
||||
@dirrm include/gd
|
@ -1,36 +0,0 @@
|
||||
# New ports collection makefile for: p5-GD1
|
||||
# Date created: June 26th 1997
|
||||
# Whom: James FitzGibbon <jfitz@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= GD
|
||||
PORTVERSION= 1.41
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= graphics perl5
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
||||
MASTER_SITE_SUBDIR= GD
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= A perl5 interface to Gd Graphics Library
|
||||
|
||||
LIB_DEPENDS= gd1.2:${PORTSDIR}/graphics/gd1
|
||||
|
||||
DEPRECATED= ancient, gd2 should be API compatible
|
||||
EXPIRATION_DATE= 2004-05-01
|
||||
|
||||
PERL_CONFIGURE= yes
|
||||
USE_REINPLACE= yes
|
||||
LATEST_LINK= p5-GD1
|
||||
|
||||
MAN3= GD.3
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} \
|
||||
-e 's,@@LOCALBASE@@,${LOCALBASE},g' \
|
||||
-e 's,@@X11BASE@@,${X11BASE},g' \
|
||||
${WRKSRC}/Makefile.PL
|
||||
|
||||
.include <bsd.port.mk>
|
@ -1,2 +0,0 @@
|
||||
MD5 (GD-1.41.tar.gz) = 9f11b3f6bb73f04d2bc3f02df0662bdd
|
||||
SIZE (GD-1.41.tar.gz) = 366673
|
@ -1,49 +0,0 @@
|
||||
--- Makefile.PL.orig Wed Jun 19 14:02:59 2002
|
||||
+++ Makefile.PL Sat Jun 22 21:25:18 2002
|
||||
@@ -3,40 +3,17 @@
|
||||
warn "NOTICE: This module requires libgd 1.8.4 or higher (shared library version 4.X).\n";
|
||||
|
||||
# =====> PATHS: CHECK AND ADJUST <=====
|
||||
-my @INC = qw(-I/usr/local/include -I/usr/local/include/gd);
|
||||
-my @LIBPATH = qw(-L/usr/lib/X11 -L/usr/X11R6/lib -L/usr/X11/lib -L/usr/local/lib );
|
||||
-my @LIBS = qw(-lgd -lpng -lz);
|
||||
-
|
||||
-# FEATURE FLAGS
|
||||
-warn "\nPlease choose the features that match how libgd was built:\n";
|
||||
-
|
||||
-my $JPEG = lc prompt('Build JPEG support?','y') eq 'y';
|
||||
-my $TTF = lc prompt('Build FreeType support?','y') eq 'y';
|
||||
-my $XPM = $^O !~ /^freebsd|MSWin32$/ && lc prompt('Build XPM support?','y') eq 'y';
|
||||
-my $GIF = lc prompt('Build GIF support (for patched versions of gd)?','n') eq 'y';
|
||||
+my @INC = qw(-I@@LOCALBASE@@/include/gd -I@@LOCALBASE@@/include/freetype -I@@LOCALBASE@@/include -I@@X11BASE@@/include/X11 -I@@X11BASE@@/include);
|
||||
+my @LIBPATH = qw(-L@@LOCALBASE@@/lib -L@@X11BASE@@/lib);
|
||||
+my @LIBS = qw(-lfreetype -ljpeg -lgd1 -lpng -lz);
|
||||
|
||||
my $FCGI = 0; # set to 1 to build compatability with fastCGI
|
||||
|
||||
-warn "\nIf you experience compile problems, please check the \@INC, \@LIBPATH and \@LIBS\n",
|
||||
- "arrays defined in Makefile.PL and manually adjust, if necessary.\n\n";
|
||||
-
|
||||
-#### no user-serviceable parts below #####
|
||||
-
|
||||
-push @LIBS,'-lfreetype' if $TTF;
|
||||
-push @LIBS,'-ljpeg' if $JPEG;
|
||||
-push @LIBS, '-lm' unless $^O eq 'MSWin32';
|
||||
-
|
||||
-# FreeBSD 3.3 with libgd built from ports croaks if -lXpm is specified
|
||||
-if ($^O ne 'freebsd' && $^O ne 'MSWin32') {
|
||||
- push @LIBS,'-lX11','-lXpm' if $XPM;
|
||||
-}
|
||||
+push @LIBS,'-lX11','-lXpm' unless $^O eq 'MSWin32';
|
||||
|
||||
my $CAPI = defined $ExtUtils::MakeMaker::CAPI_support ? 'TRUE' : 'FALSE';
|
||||
-my $DEFINES = '';
|
||||
-$DEFINES .= ' -DHAVE_JPEG' if $JPEG;
|
||||
-$DEFINES .= ' -DHAVE_TTF' if $TTF;
|
||||
-$DEFINES .= ' -DHAVE_XPM' if $XPM;
|
||||
-$DEFINES .= ' -DHAVE_GIF' if $GIF;
|
||||
+my $DEFINES = '-DHAVE_JPEG -DHAVE_TTF';
|
||||
+$DEFINES .= ' -DHAVE_XPM' unless $^O eq 'MSWin32';
|
||||
$DEFINES .= ' -DFCGI' if $FCGI;
|
||||
|
||||
WriteMakefile(
|
@ -1,4 +0,0 @@
|
||||
GD.pm is a port of Thomas Boutell's gd graphics library
|
||||
(see below). GD allows you to create color drawings using
|
||||
a large number of graphics primitives, and emit the
|
||||
drawings as GIF files.
|
@ -1,8 +0,0 @@
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/GD.pm
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/patch_gd.pl
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/qd.pl
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/GD/.packlist
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/GD/GD.bs
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/GD/GD.so
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/GD/autosplit.ix
|
||||
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/GD
|
@ -1,21 +0,0 @@
|
||||
# New ports collection makefile for: gd1
|
||||
# Date created: 19 Aug 1998
|
||||
# Whom: ichiro@ichiro.org
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
CATEGORIES= japanese
|
||||
|
||||
MAINTAINER= ichiro@ichiro.org
|
||||
COMMENT= A graphics library for fast image creation with Japanese support
|
||||
|
||||
MASTERDIR= ${.CURDIR}/../../graphics/gd1
|
||||
|
||||
DEPRECATED= ancient, gd2 should be API compatible
|
||||
EXPIRATION_DATE= 2004-05-01
|
||||
|
||||
LATEST_LINK= ja-gd1
|
||||
CPPFLAGS+= -DJISX0208
|
||||
|
||||
.include "${MASTERDIR}/Makefile"
|
@ -1,34 +0,0 @@
|
||||
# New ports collection makefile for: gd
|
||||
# Date created: 17 Aug 1998
|
||||
# Whom: gsm@infosite.ru
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= gd
|
||||
PORTVERSION= 1.8.3
|
||||
CATEGORIES= russian graphics
|
||||
MASTER_SITES= http://www.boutell.com/gd/http/ \
|
||||
ftp://ftp.boutell.com/pub/boutell/gd/
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Graphics library for fast PNG creation (uses fonts in KOI8-R encoding)
|
||||
|
||||
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
|
||||
jpeg.9:${PORTSDIR}/graphics/jpeg
|
||||
|
||||
DEPRECATED= ancient, gd2 should be API compatible
|
||||
EXPIRATION_DATE= 2004-05-01
|
||||
|
||||
USE_REINPLACE= yes
|
||||
INSTALLS_SHLIB= yes
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|g' \
|
||||
${WRKSRC}/gdcache.h \
|
||||
${WRKSRC}/gd.c
|
||||
|
||||
pre-install:
|
||||
${MKDIR} ${PREFIX}/include/gd
|
||||
|
||||
.include <bsd.port.mk>
|
@ -1,2 +0,0 @@
|
||||
MD5 (gd-1.8.3.tar.gz) = ad0e7dd1dda2812dbaeaa9706c4be536
|
||||
SIZE (gd-1.8.3.tar.gz) = 274318
|
@ -1,146 +0,0 @@
|
||||
--- Makefile.orig Thu May 18 13:39:18 2000
|
||||
+++ Makefile Sun May 21 00:55:38 2000
|
||||
@@ -5,3 +5,3 @@
|
||||
#compiler; get gcc if you are still using it).
|
||||
-COMPILER=gcc
|
||||
+COMPILER=${CC}
|
||||
|
||||
@@ -9,3 +9,3 @@
|
||||
#for your system.
|
||||
-AR=ar
|
||||
+#AR=ar
|
||||
|
||||
@@ -13,6 +13,10 @@
|
||||
#header files, uncomment this (default).
|
||||
-CFLAGS=-O
|
||||
+#CFLAGS=-O
|
||||
#If you do have FreeType, libjpeg and/or Xpm fully installed, uncomment a
|
||||
#variation of this and comment out the line above. See also LIBS below.
|
||||
-#CFLAGS=-O -DHAVE_XPM -DHAVE_JPEG -DHAVE_LIBTTF
|
||||
+.if defined(WITH_X11)
|
||||
+CFLAGS+=-DHAVE_XPM -DHAVE_JPEG -DHAVE_LIBTTF
|
||||
+.else
|
||||
+CFLAGS+=-DHAVE_JPEG
|
||||
+.endif
|
||||
|
||||
@@ -25,3 +29,3 @@
|
||||
|
||||
-LIBS=-lm -lgd -lpng -lz
|
||||
+LIBS=-lm -lgd -lpng -lz -ljpeg
|
||||
|
||||
@@ -35,3 +39,5 @@
|
||||
|
||||
-#LIBS=-lm -lgd -lpng -lz -ljpeg -lttf -lXpm -lX11
|
||||
+.if defined(WITH_X11)
|
||||
+LIBS+= -lttf -lXpm -lX11
|
||||
+.endif
|
||||
|
||||
@@ -42,3 +48,6 @@
|
||||
|
||||
-INCLUDEDIRS=-I. -I/usr/local/include -I/usr/include/X11 -I/usr/X11R6/include/X11
|
||||
+INCLUDEDIRS=-I. -I${LOCALBASE}/include
|
||||
+.if defined(WITH_X11)
|
||||
+INCLUDEDIRS+=-I{LOCALBASE}/include/freetype -I${X11BASE}/include/X11 -I${X11BASE}/include
|
||||
+.endif
|
||||
|
||||
@@ -50,12 +59,15 @@
|
||||
#on your system can't cause conflicts while building a new one.
|
||||
-LIBDIRS=-L. -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib
|
||||
+LIBDIRS=-L. -L$(LOCALBASE)/lib
|
||||
+.if defined(WITH_X11)
|
||||
+LIBDIRS+=-L$(X11BASE)/lib
|
||||
+.endif
|
||||
|
||||
#Location where libgd.a should be installed by "make install".
|
||||
-INSTALL_LIB=/usr/local/lib
|
||||
+INSTALL_LIB=$(PREFIX)/lib
|
||||
|
||||
#Location where .h files should be installed by "make install".
|
||||
-INSTALL_INCLUDE=/usr/local/include
|
||||
+INSTALL_INCLUDE=$(PREFIX)/include/gd
|
||||
|
||||
#Location where useful non-test programs should be installed by "make install".
|
||||
-INSTALL_BIN=/usr/local/bin
|
||||
+INSTALL_BIN=$(PREFIX)/bin
|
||||
|
||||
@@ -67,6 +79,6 @@
|
||||
|
||||
-VERSION=1.8.1
|
||||
+VERSION=1.8.2
|
||||
|
||||
-CC=$(COMPILER) $(INCLUDEDIRS)
|
||||
-LINK=$(CC) $(LIBDIRS) $(LIBS)
|
||||
+CC+= $(INCLUDEDIRS)
|
||||
+#LINK=$(CC) $(LIBDIRS) $(LIBS)
|
||||
|
||||
@@ -77,22 +89,29 @@
|
||||
|
||||
-all: libgd.a $(PROGRAMS)
|
||||
+.SUFFIXES: .c .so .o
|
||||
+
|
||||
+.c.so:
|
||||
+ ${CC} -fpic -DPIC ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET}
|
||||
+
|
||||
+all: libgd.a libgd.so.0 $(PROGRAMS)
|
||||
|
||||
install: libgd.a $(BIN_PROGRAMS)
|
||||
- sh ./install-item 644 libgd.a $(INSTALL_LIB)/libgd.a
|
||||
- sh ./install-item 755 pngtogd $(INSTALL_BIN)/pngtogd
|
||||
- sh ./install-item 755 pngtogd2 $(INSTALL_BIN)/pngtogd2
|
||||
- sh ./install-item 755 gdtopng $(INSTALL_BIN)/gdtopng
|
||||
- sh ./install-item 755 gd2topng $(INSTALL_BIN)/gd2topng
|
||||
- sh ./install-item 755 gd2copypal $(INSTALL_BIN)/gd2copypal
|
||||
- sh ./install-item 755 gdparttopng $(INSTALL_BIN)/gdparttopng
|
||||
- sh ./install-item 755 webpng $(INSTALL_BIN)/webpng
|
||||
- sh ./install-item 755 bdftogd $(INSTALL_BIN)/bdftogd
|
||||
- sh ./install-item 644 gd.h $(INSTALL_INCLUDE)/gd.h
|
||||
- sh ./install-item 644 gdcache.h $(INSTALL_INCLUDE)/gdcache.h
|
||||
- sh ./install-item 644 gd_io.h $(INSTALL_INCLUDE)/gd_io.h
|
||||
- sh ./install-item 644 gdfontg.h $(INSTALL_INCLUDE)/gdfontg.h
|
||||
- sh ./install-item 644 gdfontl.h $(INSTALL_INCLUDE)/gdfontl.h
|
||||
- sh ./install-item 644 gdfontmb.h $(INSTALL_INCLUDE)/gdfontmb.h
|
||||
- sh ./install-item 644 gdfonts.h $(INSTALL_INCLUDE)/gdfonts.h
|
||||
- sh ./install-item 644 gdfontt.h $(INSTALL_INCLUDE)/gdfontt.h
|
||||
+ $(INSTALL) -c -m 644 libgd.a $(INSTALL_LIB)/libgd.a
|
||||
+ $(INSTALL) -c -m 755 pngtogd $(INSTALL_BIN)/pngtogd
|
||||
+ $(INSTALL) -c -m 755 libgd.so.0 $(INSTALL_LIB)/libgd.so.0
|
||||
+ ln -sf libgd.so.0 $(INSTALL_LIB)/libgd.so
|
||||
+ $(INSTALL) -c -m 755 pngtogd2 $(INSTALL_BIN)/pngtogd2
|
||||
+ $(INSTALL) -c -m 755 gdtopng $(INSTALL_BIN)/gdtopng
|
||||
+ $(INSTALL) -c -m 755 gd2topng $(INSTALL_BIN)/gd2topng
|
||||
+ $(INSTALL) -c -m 755 gd2copypal $(INSTALL_BIN)/gd2copypal
|
||||
+ $(INSTALL) -c -m 755 gdparttopng $(INSTALL_BIN)/gdparttopng
|
||||
+ $(INSTALL) -c -m 755 webpng $(INSTALL_BIN)/webpng
|
||||
+ $(INSTALL) -c -m 755 bdftogd $(INSTALL_BIN)/bdftogd
|
||||
+ $(INSTALL) -c -m 644 gd.h $(INSTALL_INCLUDE)/gd.h
|
||||
+ $(INSTALL) -c -m 644 gdcache.h $(INSTALL_INCLUDE)/gdcache.h
|
||||
+ $(INSTALL) -c -m 644 gd_io.h $(INSTALL_INCLUDE)/gd_io.h
|
||||
+ $(INSTALL) -c -m 644 gdfontg.h $(INSTALL_INCLUDE)/gdfontg.h
|
||||
+ $(INSTALL) -c -m 644 gdfontl.h $(INSTALL_INCLUDE)/gdfontl.h
|
||||
+ $(INSTALL) -c -m 644 gdfontmb.h $(INSTALL_INCLUDE)/gdfontmb.h
|
||||
+ $(INSTALL) -c -m 644 gdfonts.h $(INSTALL_INCLUDE)/gdfonts.h
|
||||
+ $(INSTALL) -c -m 644 gdfontt.h $(INSTALL_INCLUDE)/gdfontt.h
|
||||
|
||||
@@ -131,12 +150,15 @@
|
||||
|
||||
-libgd.a: gd.o gd_gd.o gd_gd2.o gd_io.o gd_io_dp.o gd_io_file.o gd_ss.o \
|
||||
+OBJS= gd.o gd_gd.o gd_gd2.o gd_io.o gd_io_dp.o gd_io_file.o gd_ss.o \
|
||||
gd_io_ss.o gd_png.o gd_jpeg.o gdxpm.o gdfontt.o gdfonts.o gdfontmb.o gdfontl.o \
|
||||
- gdfontg.o gdtables.o gdttf.o gdcache.o gdkanji.o wbmp.o gd_wbmp.o \
|
||||
- gd.h gdfontt.h gdfonts.h gdfontmb.h gdfontl.h gdfontg.h
|
||||
+ gdfontg.o gdtables.o gdttf.o gdcache.o gdkanji.o wbmp.o gd_wbmp.o
|
||||
+INCS= gd.h gdfontt.h gdfonts.h gdfontmb.h gdfontl.h gdfontg.h
|
||||
+
|
||||
+libgd.a: $(INCS) $(OBJS)
|
||||
rm -f libgd.a
|
||||
- $(AR) rc libgd.a gd.o gd_gd.o gd_gd2.o gd_io.o gd_io_dp.o \
|
||||
- gd_io_file.o gd_ss.o gd_io_ss.o gd_png.o gd_jpeg.o gdxpm.o \
|
||||
- gdfontt.o gdfonts.o gdfontmb.o gdfontl.o gdfontg.o \
|
||||
- gdtables.o gdttf.o gdcache.o gdkanji.o wbmp.o gd_wbmp.o
|
||||
+ $(AR) rc libgd.a $(OBJS)
|
||||
-ranlib libgd.a
|
||||
+
|
||||
+libgd.so.0: $(INCS) $(OBJS:S/o$/so/g)
|
||||
+ $(CC) -shared -Wl,-x -Wl,-assert -Wl,pure-text -Wl,-soname,$@ -o $@ $(OBJS:S/o$/so/g) $(LIBDIRS) $(LIBS)
|
||||
+ ln -sf libgd.so.0 libgd.so
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,24 +0,0 @@
|
||||
from the man page:
|
||||
|
||||
gd is a graphics library. It allows your code to quickly draw images
|
||||
complete with lines, arcs, text, multiple colors, cut and paste from
|
||||
other images, and flood fills, and write out the result as a .PNG file.
|
||||
This is particularly useful in World Wide Web applications, where .PNG
|
||||
is the format used for inline images.
|
||||
|
||||
gd is not a paint program. [...]
|
||||
|
||||
gd does not provide for every possible desirable graphics operation. It
|
||||
is not necessary or desirable for gd to become a kitchen-sink graphics
|
||||
package, but version 1.3 incorporates most of the commonly requested
|
||||
features for an 8-bit 2D package. Support for scalable fonts, and
|
||||
truecolor images, JPEG and PNG is planned for version 2.0.
|
||||
[...]
|
||||
gd was written by Thomas Boutell and is currently distributed by
|
||||
boutell.com, Inc.
|
||||
|
||||
WWW: http://www.boutell.com/gd/
|
||||
|
||||
This port draws text using fonts in Russian KOI8-R encoding.
|
||||
--
|
||||
Sergey Groznyh <gsm@infosite.ru>
|
@ -1,20 +0,0 @@
|
||||
bin/bdftogd
|
||||
bin/pngtogd
|
||||
bin/pngtogd2
|
||||
bin/gdtopng
|
||||
bin/gd2topng
|
||||
bin/gd2copypal
|
||||
bin/gdparttopng
|
||||
bin/webpng
|
||||
include/gd/gd.h
|
||||
include/gd/gd_io.h
|
||||
include/gd/gdcache.h
|
||||
include/gd/gdfontg.h
|
||||
include/gd/gdfontl.h
|
||||
include/gd/gdfontmb.h
|
||||
include/gd/gdfonts.h
|
||||
include/gd/gdfontt.h
|
||||
lib/libgd.a
|
||||
lib/libgd.so
|
||||
lib/libgd.so.0
|
||||
@dirrm include/gd
|
Loading…
Reference in New Issue
Block a user