Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jun 2001 14:30:19 -0700 (PDT)
From:      Hye-Shik Chang <perky@python.or.kr>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/28242: New port: graphics/py-gdchart
Message-ID:  <200106172130.f5HLUJw76758@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         28242
>Category:       ports
>Synopsis:       New port: graphics/py-gdchart
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 17 14:40:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Hye-Shik Chang
>Release:        FreeBSD 4.3
>Organization:
Yonsei University
>Environment:
FreeBSD akaraka.yonsei.ac.kr 4.3-STABLE FreeBSD 4.3-STABLE #0: Sat May 12 18:17:07 KST 2001     root@free.yonsei.ac.kr:/usr/src/sys/compile/RYOKO  i386
>Description:
this is python interface to gdchart
(it was committed to graphics/gdchart yesterday)

but, py-gdchart uses gdchart-alpha version
(upper than gdchart port's version)
therefore, this port builds with its own gdchart. :)
(it includes gd also, but I patched to use localbase's)

py-gdchart# make install 
py-gdchart# cd /usr/local/share/examples/py-gdchart
py-gdchart# python test.py

then, you can see cute gdchart examples :)

>How-To-Repeat:

>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	py-gdchart
#	py-gdchart/Makefile
#	py-gdchart/distinfo
#	py-gdchart/pkg-comment
#	py-gdchart/pkg-descr
#	py-gdchart/pkg-plist
#	py-gdchart/files
#	py-gdchart/files/patch-Makefile
#	py-gdchart/files/patch-gdchart::makefile
#
echo c - py-gdchart
mkdir -p py-gdchart > /dev/null 2>&1
echo x - py-gdchart/Makefile
sed 's/^X//' >py-gdchart/Makefile << 'END-of-py-gdchart/Makefile'
X# New ports collection makefile for:	py-gdchart
X# Date created:		18 June 2001
X# Whom:			Hye-Shik Chang <perky@python.or.kr>
X#
X# $FreeBSD$
X
XPORTNAME=	gdchart
XPORTVERSION=	0.6
XCATEGORIES=	graphics python
XMASTER_SITES=	http://athani.pair.com/msteed/software/gdchart/
XDISTNAME=	${PORTNAME}-${PKGNAMEPREFIX}${PORTVERSION}
XPKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
X
XMAINTAINER=	perky@python.or.kr
X
XLIB_DEPENDS=	gd.2:${PORTSDIR}/graphics/gd \
X		png.4:${PORTSDIR}/graphics/png \
X		jpeg.9:${PORTSDIR}/graphics/jpeg
X
XUSE_PYTHON=	yes
XUSE_GMAKE=	yes
XMAKE_ENV=	GD_INCLUDE=${LOCALBASE}/include/gd \
X		GD_LIBRARY=${LOCALBASE}/lib \
X		PYTHON_INCLUDE=${PYTHON_INCLUDEDIR}
XPLIST_SUB=	PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g} \
X		EXAMPLE_DIR=${EXAMPLE_DIR:S/^${LOCALBASE}\///g}
XMODULE_FILES=	chart.py gdchart.so
XEXAMPLE_FILES=	test.html test.py CHANGES
XEXAMPLE_DIR=	${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
X
Xdo-install:
X.for file in ${MODULE_FILES}
X	${INSTALL_DATA} ${WRKSRC}/${file} ${PYTHON_SITELIBDIR}
X.endfor
X.if !defined(NO_PORTDOCS)
X	${MKDIR} ${EXAMPLE_DIR}
X.for file in ${EXAMPLE_FILES}
X	${INSTALL_DATA} ${WRKSRC}/${file} ${EXAMPLE_DIR}
X.endfor
X.endif
X
X.include <bsd.port.mk>
END-of-py-gdchart/Makefile
echo x - py-gdchart/distinfo
sed 's/^X//' >py-gdchart/distinfo << 'END-of-py-gdchart/distinfo'
XMD5 (gdchart-py-0.6.tar.gz) = 210e5da85a280e2aeecff97ff4fe639b
END-of-py-gdchart/distinfo
echo x - py-gdchart/pkg-comment
sed 's/^X//' >py-gdchart/pkg-comment << 'END-of-py-gdchart/pkg-comment'
XPython interface to GDChart
END-of-py-gdchart/pkg-comment
echo x - py-gdchart/pkg-descr
sed 's/^X//' >py-gdchart/pkg-descr << 'END-of-py-gdchart/pkg-descr'
XThis is a simple python interface to gdchart which is
Xexcellent for creating charts and graphs in PNG, JPEG,
Xand GIF format.
X
XWWW: http://athani.pair.com/msteed/software/gdchart/
END-of-py-gdchart/pkg-descr
echo x - py-gdchart/pkg-plist
sed 's/^X//' >py-gdchart/pkg-plist << 'END-of-py-gdchart/pkg-plist'
X%%PYTHON_SITELIBDIR%%/chart.py
X%%PYTHON_SITELIBDIR%%/gdchart.so
X%%PORTDOCS%%%%EXAMPLE_DIR%%/test.html
X%%PORTDOCS%%%%EXAMPLE_DIR%%/test.py
X%%PORTDOCS%%%%EXAMPLE_DIR%%/CHANGES
X@dirrm %%EXAMPLE_DIR%%
END-of-py-gdchart/pkg-plist
echo c - py-gdchart/files
mkdir -p py-gdchart/files > /dev/null 2>&1
echo x - py-gdchart/files/patch-Makefile
sed 's/^X//' >py-gdchart/files/patch-Makefile << 'END-of-py-gdchart/files/patch-Makefile'
X--- Makefile.orig	Sat Mar 17 04:08:18 2001
X+++ Makefile	Mon Jun 18 05:23:37 2001
X@@ -12,10 +12,10 @@
X # SO          Extension for shared libs.
X 
X HAVE_JPEG = 1
X-PY_INCLUDE = -I/usr/local/include/python2.0
X-LIB_DIRS = -L/usr/local/lib -L/usr/lib
X-GCC = gcc
X-CFLAGS = -Wall -fpic -O2
X+PY_INCLUDE = -I${PYTHON_INCLUDE}
X+LIB_DIRS = -L${LOCALBASE}/lib -L/usr/lib
X+GCC = ${CC}
X+CFLAGS ?= -Wall -fpic -O2
X 
X # Linux
X LD = $(GCC) -shared
X@@ -31,9 +31,6 @@
X 
X # Shouldn't need to touch anything below this point.
X 
X-GD = gd-1.8.4
X-LIBGD = $(GD)/libgd.a
X-
X GDCHART = gdchart0.10.1dev
X LIBGDCHART = $(GDCHART)/libgdchart.a
X 
X@@ -43,8 +40,8 @@
X     LIBJPEG = -ljpeg
X endif
X 
X-CFLAGS += -I$(GDCHART) $(PY_INCLUDE) $(DEFS)
X-LDFLAGS = -L$(GDCHART) -L$(GD) $(LIB_DIRS)
X+CFLAGS += -I$(GDCHART) -I$(GD_INCLUDE) $(PY_INCLUDE) $(DEFS)
X+LDFLAGS = -L$(GDCHART) $(LIB_DIRS)
X LDLIBS = -lgdchart -lgd -lpng -lz $(LIBJPEG)
X 
X TARGET = gdchart$(SO)
X@@ -53,19 +50,16 @@
X 
X all: $(TARGET)
X 
X-$(TARGET): $(LIBGD) $(LIBGDCHART) $(PY_OBJ)
X+$(TARGET): $(LIBGDCHART) $(PY_OBJ)
X 	$(LD) $(PY_OBJ) $(LDFLAGS) $(LDLIBS) -o $@
X 
X $(PY_OBJ): $(PY_SRC)
X 	$(GCC) -c $(CFLAGS) $<
X 
X-$(LIBGD):
X-	make -C $(GD) libgd.a HAVE_JPEG=$(HAVE_JPEG)
X-
X $(LIBGDCHART):
X-	make -C $(GDCHART) libgdchart.a HAVE_JPEG=$(HAVE_JPEG)
X+	${MAKE} -C $(GDCHART) libgdchart.a HAVE_JPEG=$(HAVE_JPEG) \
X+		GD_INCL=${GD_INCLUDE} GD_LIB=${GD_LIBRARY}
X 
X clean:
X-	-make -C $(GD) clean
X-	-make -C $(GDCHART) clean
X+	-${MAKE} -C $(GDCHART) clean
X 	-rm -f $(TARGET) $(PY_OBJ)
END-of-py-gdchart/files/patch-Makefile
echo x - py-gdchart/files/patch-gdchart::makefile
sed 's/^X//' >py-gdchart/files/patch-gdchart::makefile << 'END-of-py-gdchart/files/patch-gdchart::makefile'
X--- gdchart0.10.1dev/makefile.old	Mon Jun 18 05:16:15 2001
X+++ gdchart0.10.1dev/makefile	Mon Jun 18 05:15:28 2001
X@@ -2,8 +2,8 @@
X GDC_LIB  = .
X 
X # GDChart requires the gd library - www.boutell.com/gd/
X-GD_INCL  = ../gd-1.8.4
X-GD_LIB   = ../gd-1.8.4
X+GD_INCL  = ${GD_INCL}
X+GD_LIB   = ${GD_LIB}
X 
X # libgd requires libpng
X PNG_INCL = ../libpng-1.0.9
END-of-py-gdchart/files/patch-gdchart::makefile
exit



>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106172130.f5HLUJw76758>