aboutsummaryrefslogtreecommitdiffstats
path: root/net/spat/Makefile
blob: ff3fcc233c4b4e6f9de5eb7ee209f761ac9ebae4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# New ports collection makefile for:    spat
# Date created:             31 October 2000
# Whom:                 Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   spat
PORTVERSION=    1.0
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"

pre-patch:
    @${PERL} -pi -e 's|-lpthread|-pthread|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'

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>