e08c6f374b
The GD module is an interface to the GD library written by Thomas Boutell.
47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2004/10/27 09:21:46 xsa Exp $
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
COMMENT= "Python wrapper for the GD library"
|
|
|
|
DISTNAME= gdmodule-0.40
|
|
PKGNAME= py-${DISTNAME:L:S/module//}
|
|
CATEGORIES= graphics
|
|
|
|
HOMEPAGE= http://newcenturycomputers.net/projects/gdmodule.html
|
|
|
|
MAINTAINER= Xavier Santolaria <xsa@openbsd.org>
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= http://newcenturycomputers.net/projects/download.cgi/
|
|
|
|
MODULES= lang/python
|
|
|
|
MODPY_SETUP= Setup.py
|
|
|
|
LIB_DEPENDS= gd.18::graphics/gd
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-gd
|
|
DOCSDIR= ${PREFIX}/share/doc/py-gd
|
|
|
|
do-configure:
|
|
@perl -pi -e "s,%%LOCALBASE%%,${LOCALBASE},g;" \
|
|
-e "s,%%LIBPNG%%,${LOCALBASE}/include/libpng,g" \
|
|
${WRKSRC}/${MODPY_SETUP}
|
|
@perl -pi -e "s,%%PYTHON%%,python${MODPY_VERSION},g" \
|
|
${WRKSRC}/_gdmodule.c
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/gddemo.py ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/adventure.ttf ${EXAMPLESDIR}
|
|
${INSTALL_DATA_DIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/gd-ref.html ${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|