mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-15 07:56:36 +00:00
4a9355f439
PR: ports/156425 Reported by: Iwao, Koichiro <meta@club.kyutech.ac.jp>
38 lines
1.0 KiB
Makefile
38 lines
1.0 KiB
Makefile
# New ports collection makefile for: py-libxml2
|
|
# Date created: 30 Jun 2004
|
|
# Whom: Alexander Nedotsukov <bland@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTREVISION= 2
|
|
CATEGORIES= textproc gnome python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
|
COMMENT= Python interface for XML parser library for GNOME
|
|
|
|
MASTERDIR= ${.CURDIR}/../libxml2
|
|
BUILD_WRKSRC= ${WRKSRC}/python
|
|
INSTALL_WRKSRC= ${BUILD_WRKSRC}
|
|
DESCR= ${.CURDIR}/pkg-descr
|
|
PLIST= ${.CURDIR}/pkg-plist
|
|
|
|
USE_GNOME= gnomehack libxml2
|
|
USE_PYTHON= yes
|
|
CPPFLAGS+= `${PYTHON_VERSION}-config --cflags`
|
|
LDFLAGS+= `${PYTHON_VERSION}-config --libs`
|
|
CONFIGURE_ARGS= --with-iconv=${LOCALBASE} \
|
|
--with-html-dir=${PREFIX}/share/doc \
|
|
--with-html-subdir=${PORTNAME} \
|
|
--with-python=${PYTHON_CMD}
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/py-libxml2
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-libxml2
|
|
|
|
post-install:
|
|
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -l ${PYTHON_SITELIBDIR}
|
|
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py -l ${PYTHON_SITELIBDIR}
|
|
|
|
.include "${MASTERDIR}/Makefile"
|