diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2002-07-20 12:04:12 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2002-07-20 12:04:12 +0000 |
commit | 7e7225f4ba8f3147b1266dfb6257c9cd9a17d530 (patch) | |
tree | 89ee3a5b3d335e95654a8e81b8a973e4c9f2df4a /misc/pybliographer | |
parent | Use USE_LIBTOOL. (diff) |
Use USE_REINPLACE and REINPLACE_CMD rather than implicitly depend on Perl.
Also replace glib-config in configure with glib12-config so the port can
actually build. Note that it's still kinda broken as it requires recode
3.5 exactly and we have 3.6 in our tree, but at least now it'll work if
you have recode 3.5 installed.
Notes
Notes:
svn path=/head/; revision=63270
Diffstat (limited to 'misc/pybliographer')
-rw-r--r-- | misc/pybliographer/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/misc/pybliographer/Makefile b/misc/pybliographer/Makefile index a3f85641d6a5..73699e0952aa 100644 --- a/misc/pybliographer/Makefile +++ b/misc/pybliographer/Makefile @@ -7,6 +7,7 @@ PORTNAME= pybliographer PORTVERSION= 1.0.8 +PORTREVISION= 1 CATEGORIES= misc python gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= stable/sources/pyblio @@ -24,15 +25,17 @@ USE_PYTHON= yes USE_GNOME= yes USE_X_PREFIX= yes USE_LIBTOOL= yes +USE_REINPLACE= 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_LIBS}|g ; \ + @${REINPLACE_CMD} 's|-lpthread|${PTHREAD_LIBS}|g ; \ + s|glib-config|glib12-config|g ; \ s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure - @find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \ + @find ${WRKSRC} -name "Makefile.in" | xargs ${REINPLACE_CMD} \ 's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \ s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g' |