2011-09-16 06:02:36 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.15 2011/09/16 10:02:37 espie Exp $
|
2004-10-27 05:21:46 -04:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
2007-09-15 16:09:40 -04:00
|
|
|
COMMENT= Python wrapper for the GD library
|
2004-10-27 05:21:46 -04:00
|
|
|
|
2005-10-24 01:05:45 -04:00
|
|
|
DISTNAME= gdmodule-0.56
|
2010-08-30 17:24:15 -04:00
|
|
|
PKGNAME= py-${DISTNAME:L:S/module//}
|
2011-09-16 06:02:36 -04:00
|
|
|
REVISION= 5
|
2004-10-27 05:21:46 -04:00
|
|
|
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
|
|
|
|
2010-11-22 05:16:08 -05:00
|
|
|
WANTLIB= jpeg png z gd>=20
|
2004-10-27 05:21:46 -04:00
|
|
|
|
|
|
|
MASTER_SITES= http://newcenturycomputers.net/projects/download.cgi/
|
|
|
|
|
|
|
|
MODULES= lang/python
|
|
|
|
|
|
|
|
MODPY_SETUP= Setup.py
|
|
|
|
|
2010-11-17 03:05:12 -05:00
|
|
|
LIB_DEPENDS= graphics/gd
|
2004-10-27 05:21:46 -04:00
|
|
|
|
2004-10-27 08:43:45 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2004-10-27 05:21:46 -04:00
|
|
|
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>
|