# New ports collection makefile for:	afterstep-1.7.x
# Version required:	1.7.157
# Date created:		1 May 1998
# Whom:			Brett Taylor
#
# $FreeBSD: ports/x11-wm/afterstep-devel/Makefile,v 1.40 1999/11/14 01:16:06 cpiazza Exp $
#

DISTNAME=	AfterStep-1.7.142
PKGNAME=	afterstep-1.7.157
CATEGORIES=     x11-wm afterstep
MASTER_SITES=   ${MASTER_SITE_AFTERSTEP}
MASTER_SITE_SUBDIR=	devel/snapshots

PATCH_SITES=     \
	ftp://ftp.afterstep.org/devel/patches/ \
	ftp://ftp.digex.net/pub/X11/window-managers/afterstep/devel/patches/ \
	ftp://ftp.alpha1.net/pub/mirrors/ftp.afterstep.org/devel/patches/ \
	ftp://ftp.math.uni-bonn.de/pub/mirror/ftp.afterstep.org/pub/devel/patches/ \
	ftp://ftp.dti.ad.jp/pub/X/AfterStep/devel/patches/ \
	ftp://casper.yz.yamagata-u.ac.jp/pub/X11/apps/afterstep/devel/patches/
PATCHFILES=     \
	1.7.142-01-sasha-png_jpg_warnings.patch.gz \
	1.7.142-02-tildouf-wharf_transient_and_Audio_fix.patch.gz \
	1.7.142-03-allanon-icons_and_wharf.patch.gz \
	1.7.142-04-allanon-desk_and_shaped_icons_and_wharf_reswallow.patch.gz \
	1.7.142-05-allanon-desks_and_wharf.patch.gz \
	1.7.142-06-sasha-menus_and_more.patch.gz \
	1.7.142-07-sasha-winfunctions_scroll.patch.gz \
 	1.7.142-08-sasha-functions-gamma-etc.patch.gz \
	1.7.142-09-sasha-borders_myframes_more.patch.gz \
	1.7.142-10-allanon-avoidcover.patch.gz \
	1.7.142-11-sasha-icons_shade_gamma.patch.gz \
	1.7.142-12-allanon-window_position_and_shaping.patch.gz \
	1.7.142-13-sasha-titlebuttons_mapping.patch.gz \
	1.7.142-14-allanon-randomplacement_and_texturedhandle_and_shaped_windows.patch.gz \
	1.7.142-15-allanon-disappearing_windows.patch.gz

PATCH_DIST_STRIP=   -p1

MAINTAINER=	jack@germanium.xtalwind.net

LIB_DEPENDS=	Xpm.4:${PORTSDIR}/graphics/xpm \
		png.3:${PORTSDIR}/graphics/png \
		jpeg.9:${PORTSDIR}/graphics/jpeg

MAN1=	Animate.1x Audio.1x Auto.1x Banner.1x Cascade.1x Clean.1x \
	Form.1x Gnome.1x Ident.1x Pager.1x Save.1x Script.1x Scroll.1x \
	Tile.1x Wharf.1x WinList.1x Zharf.1x afterstep.1x asetroot.1x

DIST_SUBDIR=	afterstep
USE_BZIP2=	yes
USE_X_PREFIX=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-png-includes="${LOCALBASE}/include" \
		--with-png-libs="${LOCALBASE}/lib" \
		--with-jpeg-includes="${LOCALBASE}/include" \
		--with-jpeg-libs="${LOCALBASE}/lib" \
		--with-helpcommand="xterm -e man"

.if defined(USE_I18N)
CONFIGURE_ENV+=		X_EXTRA_LIBS="-lxpg4"
CONFIGURE_ARGS+=	--enable-i18n
.endif

.if defined(DIFFERENT_LOOKNFEELS)
CONFIGURE_ARGS+=    --enable-different-looknfeels
.endif

.if defined(NO_SAVEWINDOWS)
CONFIGURE_ARGS+=    --disable-savewindows
.endif

post-install:
	${INSTALL_DATA} ${FILESDIR}/monitor_bsd.xpm ${PREFIX}/share/afterstep/desktop/icons/common/
.if defined(DIFFERENT_LOOKNFEELS)
	@${ECHO_MSG}
	@${ECHO_MSG} "===>  The WinList module is broken with different-looknfeels.  Don't use it."
	@${ECHO_MSG}
.endif

.include <bsd.port.mk>
