1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/editors/emacs20-dl/Makefile

59 lines
1.4 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: GNU emacs with dl
# Date created: 10 October 1998
# Whom: shige
#
1999-08-25 05:57:29 +00:00
# $FreeBSD$
#
2000-04-14 00:25:54 +00:00
PORTNAME= emacs-dl
PORTVERSION= 20.6
2000-01-18 12:34:34 +00:00
CATEGORIES= editors ipv6
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= emacs
2000-04-14 00:25:54 +00:00
DISTNAME= emacs-${PORTVERSION}
PATCH_SITES= ftp://ftp.m17n.org/pub/mule/dynamic-loading/ \
http://www.etl.go.jp/~tomo/comp/emacsen/
PATCHFILES= emacs-20.4-dl3.diff.gz
PATCH_DIST_STRIP= -p1
MAINTAINER= shige@FreeBSD.org
2000-01-04 11:32:27 +00:00
RUN_DEPENDS= emacs-${EMACS_VER}:${PORTSDIR}/editors/emacs20
WRKSRC= ${WRKDIR}/emacs-${EMACS_VER}
USE_AUTOCONF= yes
USE_GMAKE= yes
MAKE_ENV= INSTALL_SCRIPT="${INSTALL_SCRIPT}"
EMACS_VER= 20.6
CONFIGURE_TARGET= ${MACHINE_ARCH}--freebsd
.if !defined(WITHOUT_X11)
CONFIGURE_ARGS= --with-x-toolkit --with-pop
USE_XLIB= yes
.else
CONFIGURE_ARGS= --with-x=no --with-pop
.endif
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}
.if defined(WITH_XPG4)
CONFIGURE_ARGS+= --with-xpg4
.endif
pre-build:
@${RM} -rf ${WRKSRC}/info/*
@${LN} -sf DOC ${WRKSRC}/etc/${DOC_FILE}
do-install:
@${INSTALL} -c -s -m 555 -o root -g wheel ${WRKSRC}/src/emacs ${PREFIX}/bin/emacs-dl-${EMACS_VER}
@${INSTALL_DATA} ${WRKSRC}/etc/DOC ${PREFIX}/share/emacs/${EMACS_VER}/etc/${DOC_FILE}
.include <bsd.port.mk>