blob: 5d841c6e80b0b57c7f880ea404b2b9e7a7877cf0 (
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
56
57
58
59
|
# New ports collection makefile for: sawfish
# Date created: 13 September 1999
# Whom: Yukihiro Nakai <nakai@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= sawfish
PORTVERSION= 0.31.1
CATEGORIES= x11-wm
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= sawmill
MAINTAINER= sobomax@FreeBSD.org
LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12 \
Imlib.5:${PORTSDIR}/graphics/imlib \
rep.10:${PORTSDIR}/lang/librep
.if !defined(WITHOUT_GNOME)
LIB_DEPENDS+= capplet.4:${PORTSDIR}/sysutils/gnomecontrolcenter
.endif
BUILD_DEPENDS= ${X11BASE}/libexec/rep/${ARCH}--freebsd${OSREL}/gtk.so:${PORTSDIR}/x11-toolkits/rep-gtk
RUN_DEPENDS= ${X11BASE}/libexec/rep/${ARCH}--freebsd${OSREL}/gtk.so:${PORTSDIR}/x11-toolkits/rep-gtk
GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
GLIB_CONFIG?= ${LOCALBASE}/bin/glib12-config
PLIST_SUB= GNUHOST=${ARCH}--freebsd${OSREL} VERSION=${PORTVERSION}
USE_X_PREFIX= yes
USE_GMAKE= yes
USE_AUTOCONF= yes
CONFIGURE_ARGS= --localstatedir=${PREFIX}/share \
--datadir=${PREFIX}/share --with-readline
.if !defined(WITHOUT_GNOME)
CONFIGURE_ARGS+= --enable-capplet
PLIST_SUB+= GNOME:=""
.else
CONFIGURE_ARGS+= --disable-capplet \
--disable-gnome-widgets \
--without-gdk-pixbuf
PLIST_SUB+= GNOME:="@comment "
.endif
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
GTK_CONFIG="${GTK_CONFIG}" \
GLIB_CONFIG="${GLIB_CONFIG}" \
LIBS="-L${LOCALBASE}/lib -lxpg4"
pre-patch:
find ${WRKSRC} \( -name "*.jl" -or -name "*.jl.in" \) | \
xargs ${GREP} -l "../locale" | \
xargs ${PERL} -pi -e "s|\.\./locale|../../../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>
|