openbsd-ports/graphics/py-gd/Makefile

49 lines
1.1 KiB
Makefile
Raw Normal View History

2009-03-16 04:56:32 -04:00
# $OpenBSD: Makefile,v 1.9 2009/03/16 08:56:32 espie Exp $
SHARED_ONLY= Yes
COMMENT= Python wrapper for the GD library
2005-10-24 01:05:45 -04:00
DISTNAME= gdmodule-0.56
2009-03-16 04:56:32 -04:00
PKGNAME= py-${DISTNAME:L:S/module//}p2
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
2005-10-24 01:05:45 -04:00
WANTLIB= jpeg png z
MASTER_SITES= http://newcenturycomputers.net/projects/download.cgi/
MODULES= lang/python
MODPY_SETUP= Setup.py
2006-08-03 08:53:18 -04:00
LIB_DEPENDS= gd.>=20::graphics/gd
2004-10-27 08:43:45 -04:00
NO_REGRESS= Yes
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}
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>