# New ports collection makefile for:	X-Emacs Packages
# Date created:		24 Apr 1999
# Whom:			Michael Elbel (me@FreeBSD.org)
#
# $FreeBSD: ports/editors/xemacs-packages/Makefile,v 1.23 2001/04/17 20:21:30 knu Exp $
#

PORTNAME=	xemacs-packages
PORTVERSION=	1.8
PORTREVISION=	1
CATEGORIES=	editors elisp
MASTER_SITES=	${MASTER_SITE_XEMACS} \
		${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	packages kiri
DISTFILES=	\
		apel-1.20-pkg.tar.gz \
		auctex-1.24-pkg.tar.gz \
		c-support-1.16-pkg.tar.gz \
		cc-mode-1.23-pkg.tar.gz \
		debug-1.14-pkg.tar.gz \
		dired-1.09-pkg.tar.gz \
		edit-utils-1.55-pkg.tar.gz \
		efs-1.22-pkg.tar.gz \
		fsf-compat-1.08-pkg.tar.gz \
		hm--html-menus-1.16-pkg.tar.gz \
		ispell-1.22-pkg.tar.gz \
		mail-lib-1.35-pkg.tar.gz \
		mailcrypt-2.07-pkg.tar.gz \
		net-utils-1.15-pkg.tar.gz \
		os-utils-1.25-pkg.tar.gz \
		pcl-cvs-1.51-pkg.tar.gz \
		prog-modes-1.32-pkg.tar.gz \
		ps-print-nomule-1.05-pkg.tar.gz \
		psgml-1.22-pkg.tar.gz \
		sgml-1.08-pkg.tar.gz \
		sh-script-1.13-pkg.tar.gz \
		texinfo-1.20-pkg.tar.gz \
		text-modes-1.29-pkg.tar.gz \
		time-1.11-pkg.tar.gz \
		vc-1.26-pkg.tar.gz \
		viper-1.24-pkg.tar.gz \
		w3-1.18-pkg.tar.gz \
		xemacs-base-1.49-pkg.tar.gz \
		xemacs-devel-1.31-pkg.tar.gz
DIST_SUBDIR=	xemacs

MAINTAINER=	kiri@FreeBSD.org

NO_BUILD=	yes
WRKSRC=		${WRKDIR}/xemacs-packages

XEMACSDIR=	${PREFIX}/lib/xemacs

do-extract:
	@${MKDIR} ${WRKSRC}
.for f in ${DISTFILES}
	@${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${DIST_SUBDIR}/${f} \
		${EXTRACT_AFTER_ARGS} -C ${WRKSRC}
.endfor

do-install:
	${MKDIR} ${XEMACSDIR}
	${CP} -Rp ${WRKDIR}/xemacs-packages ${XEMACSDIR}

post-install:
	@${ECHO_MSG} "    This is the basic package for XEmacs(version over 21). You might be enough"
	@${ECHO_MSG} "only with this package for working at XEmacs but if you think it"
	@${ECHO_MSG} "insufficient,you can install other packages provided by XEmacs.org with"
	@${ECHO_MSG} "editors/xemacs-*-packages ports. These ports are prepared for corresponding"
	@${ECHO_MSG} "XEmacs packages except for xemacs-packages, xemacs-mule-basic-packages and"
	@${ECHO_MSG} "xemacs-additional-packages. Where xemacs-additional-packages is a meta ports for"
	@${ECHO_MSG} "packages out of xemacs, xemacs mule-basic and xemacs mule category packages."
	@${ECHO_MSG} "    You can also install with running it as root and using the 'Manage Packages'"
	@${ECHO_MSG} "menu within the 'Options' menu of the menubar. But using this xemacs package"
	@${ECHO_MSG} "managing, you could not control under ports managing ;-)"

.include <bsd.port.mk>
