1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/misc/pybliographer/Makefile
Joe Marcus Clarke 9e5632dd66 Apply a big libtool patch to allow porters to use the libtool installed by
the libtoolX ports instead of the one included with each port.  Ports that
set USE_LIBTOOL_VER=X will now use the ports version of libtool instead of
the included version.  To restore previous behavior, use the new macro,
USE_INC_LIBTOOL_VER.  Both macros accept the same argument: a libtool version.

For example, to use the ports version of libtool-1.5, add the following to
your Makefile:

USE_LIBTOOL_VER=        15

To use the included version of libtool with extra hacks provided by
libtool-1.5, add the following to your Makefile:

USE_INC_LIBTOOL_VER=    15

With this change, ports that had to add additional libtool hacks to prevent
.la files from being installed or to fix certain threading issues can now
delete those hacks (after appropriate testing, of course).

PR:		63944
Based on work by:eik and marcus
Approved by:	ade (autotools maintainer)
Tested by:	kris on pointyhat
Bound to be hidden problems:	You bet
2004-07-09 17:43:11 +00:00

53 lines
1.6 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.11
PORTREVISION= 2
CATEGORIES= misc python gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/pybliographer/1.0
MAINTAINER= ports@FreeBSD.org
COMMENT= GUI and command-line tools for editing and searching bibliographic databases
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-1.2/_gnomemodule.so:${PORTSDIR}/x11-toolkits/py-gnome \
recode:${PORTSDIR}/converters/recode
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-1.2/_gnomemodule.so:${PORTSDIR}/x11-toolkits/py-gnome \
recode:${PORTSDIR}/converters/recode
USE_GNOME= glib12 gnomehack gnomeprefix
USE_PYTHON= yes
USE_X_PREFIX= yes
USE_INC_LIBTOOL_VER=13
USE_REINPLACE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
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 ; \
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
@${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 \
${PREFIX}/share/gnome/${PORTNAME}
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
${PREFIX}/share/gnome/${PORTNAME}
.include <bsd.port.post.mk>