2002-06-12 06:44:49 +00:00
|
|
|
# New ports collection makefile for: gcalctool
|
|
|
|
# Date created: 12 Jun 2002
|
|
|
|
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gcalctool
|
2003-04-04 07:34:35 +00:00
|
|
|
PORTVERSION= 4.2.77
|
2002-06-12 06:44:49 +00:00
|
|
|
CATEGORIES= math gnome
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNOME}
|
2003-04-04 07:34:35 +00:00
|
|
|
MASTER_SITE_SUBDIR= sources/${PORTNAME}/4.2
|
2002-06-12 06:44:49 +00:00
|
|
|
DIST_SUBDIR= gnome2
|
|
|
|
|
2002-10-19 20:07:28 +00:00
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
2003-03-01 15:57:39 +00:00
|
|
|
COMMENT= A GNOME 2 calculator tool based on the old calctool for OpenWindows
|
2002-06-12 06:44:49 +00:00
|
|
|
|
2003-03-01 15:57:39 +00:00
|
|
|
LIB_DEPENDS= gnomeui-2.200:${PORTSDIR}/x11-toolkits/libgnomeui
|
2002-06-12 06:44:49 +00:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_LIBTOOL= yes
|
2002-08-30 02:37:47 +00:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
USE_GNOMENG= yes
|
2003-03-01 15:57:39 +00:00
|
|
|
USE_GNOME= gnomeprefix gnomehack
|
2002-06-12 06:44:49 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib"
|
|
|
|
CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
|
|
|
|
|
2002-08-30 02:37:47 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
|
2002-06-12 06:44:49 +00:00
|
|
|
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
|
2002-08-30 02:37:47 +00:00
|
|
|
@${FIND} ${WRKSRC} -name "*.[ch]" | xargs ${REINPLACE_CMD} -e \
|
2002-06-12 06:44:49 +00:00
|
|
|
's|malloc\.h|stdlib.h|g'
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|