1998-12-13 09:27:06 -05:00
|
|
|
# New ports collection makefile for: GNU emacs with dl
|
|
|
|
# Date created: 10 October 1998
|
|
|
|
# Whom: shige
|
|
|
|
#
|
1999-08-25 01:57:29 -04:00
|
|
|
# $FreeBSD$
|
1998-12-13 09:27:06 -05:00
|
|
|
#
|
|
|
|
|
2000-04-13 20:25:54 -04:00
|
|
|
PORTNAME= emacs-dl
|
2000-07-05 10:33:21 -04:00
|
|
|
PORTVERSION= 20.7
|
2000-01-18 07:34:34 -05:00
|
|
|
CATEGORIES= editors ipv6
|
1998-12-13 09:27:06 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
1999-01-27 02:41:29 -05:00
|
|
|
MASTER_SITE_SUBDIR= emacs
|
2000-04-13 20:25:54 -04:00
|
|
|
DISTNAME= emacs-${PORTVERSION}
|
1998-12-13 09:27:06 -05:00
|
|
|
|
2000-02-25 11:23:37 -05:00
|
|
|
PATCH_SITES= ftp://ftp.m17n.org/pub/mule/dynamic-loading/ \
|
|
|
|
http://www.etl.go.jp/~tomo/comp/emacsen/
|
1999-10-26 09:20:32 -04:00
|
|
|
PATCHFILES= emacs-20.4-dl3.diff.gz
|
2001-01-16 12:33:20 -05:00
|
|
|
PATCH_DIST_STRIP= -p1
|
1998-12-13 09:27:06 -05:00
|
|
|
|
1999-08-31 02:53:31 -04:00
|
|
|
MAINTAINER= shige@FreeBSD.org
|
1998-12-13 09:27:06 -05:00
|
|
|
|
2000-01-04 06:32:27 -05:00
|
|
|
RUN_DEPENDS= emacs-${EMACS_VER}:${PORTSDIR}/editors/emacs20
|
1998-12-13 09:27:06 -05:00
|
|
|
|
2000-03-10 15:16:34 -05:00
|
|
|
WRKSRC= ${WRKDIR}/emacs-${EMACS_VER}
|
|
|
|
|
1999-03-01 04:17:43 -05:00
|
|
|
USE_AUTOCONF= yes
|
1998-12-13 09:27:06 -05:00
|
|
|
USE_GMAKE= yes
|
|
|
|
MAKE_ENV= INSTALL_SCRIPT="${INSTALL_SCRIPT}"
|
2000-07-05 10:33:21 -04:00
|
|
|
EMACS_VER= 20.7
|
1999-03-08 02:28:36 -05:00
|
|
|
CONFIGURE_TARGET= ${MACHINE_ARCH}--freebsd
|
2000-04-16 20:18:05 -04:00
|
|
|
.if !defined(WITHOUT_X11)
|
2001-01-16 12:33:20 -05:00
|
|
|
CONFIGURE_ARGS= --with-x-toolkit --with-pop
|
|
|
|
USE_XLIB= yes
|
1999-08-09 07:12:30 -04:00
|
|
|
.else
|
2001-01-16 12:33:20 -05:00
|
|
|
CONFIGURE_ARGS= --with-x=no --with-pop
|
1999-08-09 07:12:30 -04:00
|
|
|
.endif
|
|
|
|
|
1999-10-26 09:20:32 -04:00
|
|
|
DOC_FILE= DOC-DL-${EMACS_VER}.1
|
|
|
|
|
|
|
|
PLIST_SUB= EMACS_VER=${EMACS_VER} EMACS_ARCH=${CONFIGURE_TARGET} \
|
|
|
|
DOC_FILE=${DOC_FILE}
|
|
|
|
|
|
|
|
SCRIPTS_ENV= SED=${SED} MV=${MV} \
|
|
|
|
DOC_FILE=${DOC_FILE}
|
1998-12-13 09:27:06 -05:00
|
|
|
|
2000-04-16 20:18:05 -04:00
|
|
|
.if defined(WITH_XPG4)
|
2000-07-05 10:33:21 -04:00
|
|
|
.if ${OSVERSION} >= 220000 && ${OSVERSION} < 400020
|
1998-12-13 09:27:06 -05:00
|
|
|
CONFIGURE_ARGS+= --with-xpg4
|
|
|
|
.endif
|
2000-07-05 10:33:21 -04:00
|
|
|
.if ${OSVERSION} >= 500000 && ${OSVERSION} < 500005
|
|
|
|
CONFIGURE_ARGS+= --with-xpg4
|
|
|
|
.endif
|
|
|
|
.endif
|
1998-12-13 09:27:06 -05:00
|
|
|
|
|
|
|
pre-build:
|
|
|
|
@${RM} -rf ${WRKSRC}/info/*
|
1999-10-26 09:20:32 -04:00
|
|
|
@${LN} -sf DOC ${WRKSRC}/etc/${DOC_FILE}
|
1998-12-13 09:27:06 -05:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${INSTALL} -c -s -m 555 -o root -g wheel ${WRKSRC}/src/emacs ${PREFIX}/bin/emacs-dl-${EMACS_VER}
|
1999-10-26 09:20:32 -04:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/etc/DOC ${PREFIX}/share/emacs/${EMACS_VER}/etc/${DOC_FILE}
|
1998-12-13 09:27:06 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|