2000-10-31 12:41:17 +00:00
|
|
|
# New ports collection makefile for: spat
|
|
|
|
# Date created: 31 October 2000
|
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= spat
|
2001-02-05 15:50:41 +00:00
|
|
|
PORTVERSION= 1.0
|
2000-10-31 12:41:17 +00:00
|
|
|
CATEGORIES= net gnome
|
|
|
|
MASTER_SITES= http://spat.codehost.com/
|
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.1$/-1/}.src
|
|
|
|
|
|
|
|
MAINTAINER= sobomax@FreeBSD.org
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.1$//}
|
|
|
|
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_GNOME= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LIBS="-lcompat -L${LOCALBASE}/lib"
|
2001-01-04 20:57:31 +00:00
|
|
|
|
2000-10-31 12:41:17 +00:00
|
|
|
pre-patch:
|
2001-03-29 16:35:19 +00:00
|
|
|
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
|
2000-10-31 12:41:17 +00:00
|
|
|
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'
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${MKDIR} ${PREFIX}/share/gnome/apps/Applications \
|
|
|
|
${PREFIX}/etc/CORBA/servers
|
|
|
|
.for file in spat.desktop spatd.desktop
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/gnome/apps/Applications
|
|
|
|
.endfor
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/spatd.gnorba ${PREFIX}/etc/CORBA/servers
|
|
|
|
${LN} -sf ${PREFIX}/share/gnome/pixmaps/spat/spat.png \
|
|
|
|
${PREFIX}/share/gnome/pixmaps/spat.png
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|