2005-09-23 15:41:43 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.22 2005/09/23 19:41:45 pvalchev Exp $
|
2004-01-29 12:13:37 -05:00
|
|
|
|
|
|
|
NOT_FOR_ARCHS= ${NO_SHARED_ARCHS}
|
2001-05-05 19:20:18 -04:00
|
|
|
|
2004-07-26 17:04:24 -04:00
|
|
|
COMMENT= "Python module for writing basic XML applications"
|
2001-05-05 19:20:18 -04:00
|
|
|
|
2002-05-27 01:25:03 -04:00
|
|
|
VERSION= 0.7.1
|
2001-10-29 13:47:39 -05:00
|
|
|
DISTNAME= PyXML-${VERSION}
|
|
|
|
PKGNAME= py-xml-${VERSION}
|
|
|
|
CATEGORIES= textproc devel
|
2001-05-05 19:20:18 -04:00
|
|
|
|
2002-05-14 08:07:09 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pyxml/}
|
2001-05-05 19:20:18 -04:00
|
|
|
|
2001-10-29 13:47:39 -05:00
|
|
|
HOMEPAGE= http://pyxml.sourceforge.net/
|
2001-05-05 19:20:18 -04:00
|
|
|
|
2003-11-15 10:12:53 -05:00
|
|
|
# BSD, badly worded
|
2001-05-05 19:20:18 -04:00
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
|
2004-08-03 17:31:06 -04:00
|
|
|
MODULES= lang/python
|
2003-07-31 15:11:59 -04:00
|
|
|
|
|
|
|
MODPY_DISTUTILS_BUILDARGS= --with-libexpat=${LOCALBASE}
|
|
|
|
|
2003-03-30 01:54:51 -05:00
|
|
|
# pyexpat - use our own pyexpat.so
|
|
|
|
# otherwise use the python-expat version
|
|
|
|
|
|
|
|
FLAVORS=pyexpat
|
|
|
|
FLAVOR?=
|
|
|
|
|
2001-12-02 08:54:56 -05:00
|
|
|
LIB_DEPENDS= expat.2::textproc/expat
|
2001-08-08 06:02:50 -04:00
|
|
|
|
2003-03-30 01:54:51 -05:00
|
|
|
.if !${FLAVOR:L:Mpyexpat}
|
2004-08-08 05:29:01 -04:00
|
|
|
BUILD_DEPENDS= ${MODPY_EXPAT_DEPENDS}
|
2003-03-30 01:54:51 -05:00
|
|
|
.endif
|
|
|
|
|
2001-11-05 12:04:11 -05:00
|
|
|
NO_REGRESS= Yes
|
2001-05-05 19:20:18 -04:00
|
|
|
|
2001-10-29 13:47:39 -05:00
|
|
|
DOC_DIR= ${PREFIX}/share/doc/PyXML/
|
|
|
|
SRC_DOCDIR= ${WRKSRC}/doc
|
|
|
|
DOCEXT= *.txt *.tex
|
2001-05-05 19:20:18 -04:00
|
|
|
|
2003-07-31 15:11:59 -04:00
|
|
|
post-install:
|
2001-08-08 06:02:50 -04:00
|
|
|
${INSTALL_DATA_DIR} ${DOC_DIR}
|
2001-10-29 13:47:39 -05:00
|
|
|
${INSTALL_DATA_DIR} ${DOC_DIR}/4DOM
|
|
|
|
${INSTALL_DATA_DIR} ${DOC_DIR}/xmlproc
|
|
|
|
${INSTALL_DATA} ${SRC_DOCDIR}/4DOM/* ${DOC_DIR}/4DOM/
|
|
|
|
${INSTALL_DATA} ${SRC_DOCDIR}/xmlproc/* ${DOC_DIR}/xmlproc/
|
|
|
|
@cd ${SRC_DOCDIR}/ && ${INSTALL_DATA} ${DOCEXT} ${DOC_DIR}
|
2001-05-05 19:20:18 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|