freebsd-ports/math/guppi/Makefile
Maxim Sobolev c5a9970f43 Manually invoke `${MAKE} patch' for Gnumeric, because puting it into
BUILD_DEPEDS creates short circuit when make clean is invoked either for
Gnumeric port or for Guppi port. Perhaps our bsd.port.mk should be fixed
to avoid such problems.

Submitted by:	John Merryweather Cooper <john_m_cooper@yahoo.com>
2002-03-14 16:40:24 +00:00

47 lines
1.4 KiB
Makefile

# New ports collection makefile for: guppi
# Date created: 22 December 2000
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= guppi
PORTVERSION= 0.40.3
PORTREVISION= 1
CATEGORIES= math gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= stable/sources/Guppi
DISTNAME= Guppi-${PORTVERSION}
MAINTAINER= gnome@FreeBSD.org
LIB_DEPENDS= guile.9:${PORTSDIR}/lang/guile
USE_X_PREFIX= yes
USE_GMAKE= yes
USE_GNOME= yes
USE_PYTHON= yes
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-explicit-python-linking
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include/libglade-1.0" \
LIBS="-L${LOCALBASE}/lib -pthread" \
GNUMERIC_IDLDIR="`cd ${PORTSDIR}/math/gnumeric && ${MAKE} -V WRKSRC`/idl"
CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
PLIST_SUB= VERSION="${PORTVERSION}"
# Can't use BUILD_DEPENDS, because then we have `short circuit' for
# make clean - Gnumeric tries to clean-up Guppi, while Guppi in turn
# tries to clean Gnumeric.
post-extract:
@cd ${PORTSDIR}/math/gnumeric && ${MAKE} patch
pre-patch:
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|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'
.include <bsd.port.mk>