66 lines
2.0 KiB
Makefile
66 lines
2.0 KiB
Makefile
# New ports collection makefile for: sawfish
|
|
# Date created: 13 September 1999
|
|
# Whom: Yukihiro Nakai <nakai@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= sawfish
|
|
PORTVERSION= 0.31.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= x11-wm
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= sawmill
|
|
|
|
MAINTAINER= sobomax@FreeBSD.org
|
|
|
|
LIB_DEPENDS= rep.10:${PORTSDIR}/lang/librep
|
|
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
|
|
|
|
PLIST_SUB= GNUHOST=${ARCH}--freebsd${OSREL} VERSION=${PORTVERSION}
|
|
|
|
USE_X_PREFIX= yes
|
|
USE_GMAKE= yes
|
|
USE_IMLIB= yes
|
|
WANT_GNOME= yes
|
|
USE_AUTOCONF= yes
|
|
CONFIGURE_ARGS= --with-readline \
|
|
--localstatedir=${PREFIX}/share \
|
|
--datadir=${PREFIX}/share
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
|
|
LIBS="-L${LOCALBASE}/lib"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(HAVE_GNOME)
|
|
USE_GNOME= yes
|
|
CONFIGURE_ARGS+=--enable-capplet
|
|
PLIST_SUB+= GNOME:=""
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-capplet \
|
|
--disable-gnome-widgets \
|
|
--without-gdk-pixbuf
|
|
PLIST_SUB+= GNOME:="@comment "
|
|
.endif
|
|
|
|
pre-patch:
|
|
@${PERL} -pi -e 's^-l(pthread|c_r)^-pthread^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 ${PERL} -pi -e \
|
|
's|\$$\(datadir\)/gnome/|\$$\(datadir\)/|g ; \
|
|
s|\$$\(datadir\)/aclocal|\$$\(prefix\)/share/aclocal|g ; \
|
|
s|\$$\(datadir\)/locale|\$$\(prefix\)/share/locale|g'
|
|
@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.post.mk>
|