summaryrefslogtreecommitdiff
path: root/misc/pybliographer
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2003-08-20 09:11:11 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2003-08-20 09:11:11 +0000
commit4c51d1c779fd804a4844c428d7f49fe7acc0665a (patch)
tree12836b8fea10af88cada2e193fe0b5dddbc9617f /misc/pybliographer
parentFix build on python2.3 (diff)
Fix build on python2.3
Notes
Notes: svn path=/head/; revision=87357
Diffstat (limited to 'misc/pybliographer')
-rw-r--r--misc/pybliographer/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/misc/pybliographer/Makefile b/misc/pybliographer/Makefile
index b6701b28c160..0f382cc668eb 100644
--- a/misc/pybliographer/Makefile
+++ b/misc/pybliographer/Makefile
@@ -30,6 +30,8 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
Python="${PYTHON_CMD}"
CONFIGURE_ARGS= --with-recode-prefix="${LOCALBASE}"
+.include <bsd.port.pre.mk>
+
pre-patch:
@${REINPLACE_CMD} 's|-lpthread|${PTHREAD_LIBS}|g ; \
s|glib-config|glib12-config|g ; \
@@ -37,6 +39,9 @@ pre-patch:
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|\$$(datadir)/gnome/|$$(datadir)/|g ; \
s|\$$(datadir)/locale|$$(prefix)/share/locale|g'
+.if ${PYTHON_REL} >= 230
+ @${REINPLACE_CMD} 's|@DEFS@||g' ${WRKSRC}/compiled/Makefile.pre.in
+.endif
post-install:
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
@@ -44,4 +49,4 @@ post-install:
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
${PREFIX}/share/gnome/${PORTNAME}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>