1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/misc/pybliographer/Makefile
2000-12-07 13:01:34 +00:00

45 lines
1.3 KiB
Makefile

# New ports collection makefile for: pybliographer
# Date created: 7 December 2000
# Whom: Johann Visagie <johann@egenetics.com>
#
# $FreeBSD$
#
PORTNAME= pybliographer
PORTVERSION= 1.0.7
CATEGORIES= misc python gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= stable/sources/pyblio/
MAINTAINER= johann@egenetics.com
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/_gnomemodule.so:${PORTSDIR}/x11-toolkits/py-gnome \
recode:${PORTSDIR}/converters/recode
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_gnomemodule.so:${PORTSDIR}/x11-toolkits/py-gnome \
recode:${PORTSDIR}/converters/recode
USE_GLIB= yes
USE_PYTHON= yes
USE_GNOME= yes
USE_X_PREFIX= yes
USE_LIBTOOL= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
Python="${PYTHON_CMD}"
CONFIGURE_ARGS= --with-recode-prefix="${LOCALBASE}"
pre-patch:
@${PERL} -pi -e 's|-lpthread|-pthread|g ; \
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
post-install:
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
${PREFIX}/share/gnome/${PORTNAME}
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
${PREFIX}/share/gnome/${PORTNAME}
.include <bsd.port.mk>