aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/sawfish2/Makefile
blob: 9972f3b168972e858be7c0dbe13a2234c26b85c2 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
# New ports collection makefile for:   sawfish
# Date created:        13 September 1999
# Whom:                Yukihiro Nakai <nakai@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   sawfish2
PORTVERSION=    2.0
PORTEPOCH=  1
CATEGORIES= x11-wm
MASTER_SITES=   ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= pre-gnome2/releases/gnome-2.0-desktop-rc2
DISTNAME=   sawfish-${PORTVERSION}
DIST_SUBDIR=    gnome2

MAINTAINER= gnome@FreeBSD.org

LIB_DEPENDS=    rep.12:${PORTSDIR}/lang/librep
BUILD_DEPENDS=  ${X11BASE}/libexec/rep/${GNUHOST}/gui/gtk-2/gtk.so:${PORTSDIR}/x11-toolkits/rep-gtk2
RUN_DEPENDS=    ${X11BASE}/libexec/rep/${GNUHOST}/gui/gtk-2/gtk.so:${PORTSDIR}/x11-toolkits/rep-gtk2

GNUHOST=    ${ARCH}-pc-freebsd${OSREL:C/\..*//}
PLIST_SUB=  GNUHOST=${GNUHOST} VERSION=2.0

USE_BZIP2=  yes
USE_X_PREFIX=   yes
USE_REINPLACE=  yes
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-readline \
        --localstatedir=${PREFIX}/share \
        --datadir=${PREFIX}/share \
        --enable-capplet \
        --disable-themer
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
        LIBS="-L${LOCALBASE}/lib"
CONFIGURE_TARGET=   ${ARCH}-pc-freebsd${OSREL:C/\..*//}

pre-patch:
    @${REINPLACE_CMD} -e 's^-l(pthread|c_r)^${PTHREAD_LIBS}^g ; \
         s|DATADIRNAME=lib|DATADIRNAME=share|g ; \
         s|USE_INCLUDED_LIBINTL=yes|#USE_INCLUDED_LIBINTL=yes|g ; \
         s|[$$][(]top_builddir[)]/intl/libintl.a|-lintl|g' ${WRKSRC}/configure
    @find ${WRKSRC} -name "Makefile.in" | xargs ${REINPLACE_CMD} -e \
        's|[(]datadir[)]/gnome/|(datadir)/|g ; \
         s|[(]datadir[)]/aclocal|(prefix)/share/aclocal|g ; \
         s|[(]datadir[)]/locale|(prefix)/share/locale|g'

post-install:
    install-info --section="X11 window manager" \
    --entry="* sawfish: (sawfish).           sawfish programming manual" \
    ${PREFIX}/info/sawfish.info ${PREFIX}/info/dir

.include <bsd.port.mk>