1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-31 10:46:16 +00:00
freebsd-ports/x11-wm/sawfish/Makefile
Maxim Sobolev 19a718ac4c Convert all core GNOME1 components and some of the most popular GNOME1
apps to bsd.gnomeng.mk. The goal is to make GNOME1 framework more modular,
which will allow to use GNOME1 apps with GNOME2 desktop as well as considerably
reduce langht of dependency chains for GNOME1 ports (for example after this
commit AbiWord's dependency chain was reduced by 7 ports from 57 to only
50, while Gnumeric's - from 60 to 53 and so on).

The most of the GNOME1 apps are still not converted, so that lot of work is
still ahead.

Please report any unusual problems to gnome@FreeBSD.org.

Discussed with:	marcus
Reviewed by:	marcus
2002-07-11 17:16:10 +00:00

70 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= 1.1
CATEGORIES= x11-wm
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= sawmill
#MASTER_SITES= ${MASTER_SITE_GNOME}
#MASTER_SITE_SUBDIR= stable/sources/sawfish
DIST_SUBDIR= gnome
DISTNAME= ${PORTNAME}-${PORTVERSION}-gtk1
MAINTAINER= gnome@FreeBSD.org
LIB_DEPENDS= rep.12:${PORTSDIR}/lang/librep
BUILD_DEPENDS= ${X11BASE}/libexec/rep/${GNUHOST}/gtk.so:${PORTSDIR}/x11-toolkits/rep-gtk
RUN_DEPENDS= ${X11BASE}/libexec/rep/${GNUHOST}/gtk.so:${PORTSDIR}/x11-toolkits/rep-gtk
GNUHOST= ${ARCH}-pc-freebsd${OSREL:C/\..*//}
PLIST_SUB= GNUHOST=${GNUHOST} VERSION=${PORTVERSION}
USE_X_PREFIX= yes
USE_GMAKE= yes
USE_IMLIB= yes
USE_REINPLACE= yes
USE_GNOMENG= yes
WANT_GNOME= yes
USE_GNOME= gnomehack gnomehier gtk12 imlib esound
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-readline
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LIBS="-L${LOCALBASE}/lib"
CONFIGURE_TARGET= ${ARCH}-pc-freebsd${OSREL:C/\..*//}
.if defined(PACKAGE_BUILDING) || defined(PARALLEL_PACKAGE_BUILD)
.undef WITHOUT_GNOME
.undef WITHOUT_ALL
WITH_GNOME= yes
.endif
.include <bsd.port.pre.mk>
.if ${HAVE_GNOME:Mlibcapplet}!="" && ${HAVE_GNOME:Mgdkpixbuf}!=""
USE_GNOME+= libcapplet gdkpixbuf
PKGNAMESUFFIX= -gnome
CONFIGURE_ARGS+=--enable-capplet
.else
CONFIGURE_ARGS+=--disable-capplet \
--disable-gnome-widgets \
--without-gdk-pixbuf
.endif
post-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
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>