Initial import of py-gd 0.26.

This is the Python interface to the GD library.

PR: 33088
Submitted by: Hye-Shik Chang <perky@fallin.lv>
This commit is contained in:
Kevin Lo 2001-12-22 13:11:19 +00:00
parent 3a98a72ae6
commit fa59bd18c7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=51981
6 changed files with 54 additions and 0 deletions

View file

@ -240,6 +240,7 @@
SUBDIR += proj
SUBDIR += pstoedit
SUBDIR += pvmpov
SUBDIR += py-gd
SUBDIR += py-gdchart
SUBDIR += py-imaging
SUBDIR += py-imaging-handbook

44
graphics/py-gd/Makefile Normal file
View file

@ -0,0 +1,44 @@
# New ports collection makefile for: py-gd
# Date created: 23 December 2001
# Whom: Hye-Shik Chang <perky@fallin.lv>
#
# $FreeBSD$
PORTNAME= gd
PORTVERSION= 0.26
CATEGORIES= graphics python
MASTER_SITES= http://newcenturycomputers.net/projects/download.cgi/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= gdmodule-${PORTVERSION}
MAINTAINER= perky@fallin.lv
LIB_DEPENDS= gd.2:${PORTSDIR}/graphics/gd \
ttf.4:${PORTSDIR}/print/freetype
USE_PYTHON= yes
EXCMD= /usr/bin/ex
PLIST_SUB= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S,^${LOCALBASE}/,,g} \
EXAMPLE_DIR=${EXAMPLE_DIR:S,^${PREFIX}/,,g}
EXAMPLE_DIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
.if !defined(WITHOUT_X11)
USE_XPM= yes
.endif
post-patch:
${EXCMD} -c 's,^\(gd.*\)$$,\1 -I${PREFIX}/include/gd,g|wq!' ${WRKSRC}/Setup
.if defined(WITHOUT_X11)
${EXCMD} -c 's,-lX11 -lXpm,,g|wq!' ${WRKSRC}/Setup
.endif
pre-build:
cd ${WRKSRC} && ${MAKE} -f Makefile.pre.in boot
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${EXAMPLE_DIR}
${INSTALL_DATA} ${WRKSRC}/gddemo.py ${EXAMPLE_DIR}
.endif
.include <bsd.port.mk>

1
graphics/py-gd/distinfo Normal file
View file

@ -0,0 +1 @@
MD5 (gdmodule-0.26.tar.gz) = fc171fa4cab20a73b8c4d073c2f753f4

View file

@ -0,0 +1 @@
Python interface to the GD library

4
graphics/py-gd/pkg-descr Normal file
View file

@ -0,0 +1,4 @@
GD module is an interface to the GD library written by Thomas Bouttel.
It has been extended in some ways from the original GD library.
WWW: http://newcenturycomputers.net/projects/gdmodule.html

3
graphics/py-gd/pkg-plist Normal file
View file

@ -0,0 +1,3 @@
%%PYTHON_SITELIBDIR%%/gdmodule.so
%%PORTDOCS%%%%EXAMPLE_DIR%%/gddemo.py
%%PORTDOCS%%@dirrm %%EXAMPLE_DIR%%