2001-05-09 18:18:26 +02:00
|
|
|
# New ports collection makefile for: GNU emacs with dynamic loading function
|
1998-12-13 15:27:06 +01:00
|
|
|
# Date created: 10 October 1998
|
|
|
|
# Whom: shige
|
|
|
|
#
|
1999-08-25 07:57:29 +02:00
|
|
|
# $FreeBSD$
|
1998-12-13 15:27:06 +01:00
|
|
|
#
|
|
|
|
|
2000-04-14 02:25:54 +02:00
|
|
|
PORTNAME= emacs-dl
|
2001-05-09 18:18:26 +02:00
|
|
|
PORTVERSION= ${EMACS_VER}
|
2004-02-04 06:21:48 +01:00
|
|
|
PORTREVISION= 2
|
2000-01-18 13:34:34 +01:00
|
|
|
CATEGORIES= editors ipv6
|
2005-11-24 02:58:20 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU} http://home.catv.ne.jp/pp/ginoue/software/emacs-xim/:xim
|
1999-01-27 08:41:29 +01:00
|
|
|
MASTER_SITE_SUBDIR= emacs
|
2001-05-09 18:18:26 +02:00
|
|
|
DISTNAME= emacs-${EMACS_VER}
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
2005-11-24 02:58:20 +01:00
|
|
|
${XIM_PATCH}${EXTRACT_SUFX}:xim
|
1998-12-13 15:27:06 +01:00
|
|
|
|
2001-12-07 13:58:20 +01:00
|
|
|
PATCH_SITES= ftp://ftp.m17n.org/pub/mule/dynamic-loading/ \
|
|
|
|
${MASTER_SITE_LOCAL}
|
2005-10-10 01:45:25 +02:00
|
|
|
PATCH_SITE_SUBDIR= shige/emacs
|
2001-12-07 13:58:20 +01:00
|
|
|
PATCHFILES= emacs-20.4-dl3.diff.gz emacs-20.7-linespace-patch.gz
|
2001-01-16 18:33:20 +01:00
|
|
|
PATCH_DIST_STRIP= -p1
|
1998-12-13 15:27:06 +01:00
|
|
|
|
2004-12-23 10:32:50 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= GNU editing macros with dynamic loading module function (binary only)
|
1998-12-13 15:27:06 +01:00
|
|
|
|
2000-01-04 12:32:27 +01:00
|
|
|
RUN_DEPENDS= emacs-${EMACS_VER}:${PORTSDIR}/editors/emacs20
|
1998-12-13 15:27:06 +01:00
|
|
|
|
2000-03-10 21:16:34 +01:00
|
|
|
WRKSRC= ${WRKDIR}/emacs-${EMACS_VER}
|
|
|
|
|
2005-11-15 07:52:12 +01:00
|
|
|
USE_AUTOTOOLS= autoconf:213
|
1998-12-13 15:27:06 +01:00
|
|
|
USE_GMAKE= yes
|
|
|
|
MAKE_ENV= INSTALL_SCRIPT="${INSTALL_SCRIPT}"
|
2000-07-05 16:33:21 +02:00
|
|
|
EMACS_VER= 20.7
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET= ${MACHINE_ARCH}--freebsd
|
2000-04-17 02:18:05 +02:00
|
|
|
.if !defined(WITHOUT_X11)
|
2001-01-16 18:33:20 +01:00
|
|
|
CONFIGURE_ARGS= --with-x-toolkit --with-pop
|
|
|
|
USE_XLIB= yes
|
1999-08-09 13:12:30 +02:00
|
|
|
.else
|
2001-01-16 18:33:20 +01:00
|
|
|
CONFIGURE_ARGS= --with-x=no --with-pop
|
1999-08-09 13:12:30 +02:00
|
|
|
.endif
|
2001-12-07 13:58:20 +01:00
|
|
|
CONFIGURE_ARGS+= --with-line-space
|
1999-08-09 13:12:30 +02:00
|
|
|
|
2001-05-09 18:18:26 +02:00
|
|
|
# for XIM extension
|
|
|
|
XIM_PATCH= emacs20-xim-20000713
|
2001-04-20 22:26:53 +02:00
|
|
|
.if defined(WITHOUT_XIM) && (${WITHOUT_XIM} == "yes")
|
|
|
|
MAKE_FLAGS= MYCPPFLAG="-DX_I18N_INHIBITED"
|
|
|
|
.endif
|
|
|
|
|
1999-10-26 15:20:32 +02: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 15:27:06 +01:00
|
|
|
|
2001-04-27 17:16:58 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2001-12-07 13:58:20 +01:00
|
|
|
RECOMPILE_ELS= dired.el startup.el
|
|
|
|
|
2001-05-09 18:18:26 +02:00
|
|
|
pre-patch:
|
|
|
|
@(cd ${WRKSRC} ; \
|
|
|
|
${PATCH} ${PATCH_ARGS} -p1 < ../${XIM_PATCH}/${XIM_PATCH}.diff ;\
|
|
|
|
)
|
|
|
|
|
1998-12-13 15:27:06 +01:00
|
|
|
pre-build:
|
|
|
|
@${RM} -rf ${WRKSRC}/info/*
|
1999-10-26 15:20:32 +02:00
|
|
|
@${LN} -sf DOC ${WRKSRC}/etc/${DOC_FILE}
|
1998-12-13 15:27:06 +01:00
|
|
|
|
2001-12-07 13:58:20 +01:00
|
|
|
post-build:
|
|
|
|
# to rebuild emacs because startup.elc should be updated
|
|
|
|
@(cd ${WRKSRC}/lisp; \
|
|
|
|
${WRKSRC}/src/emacs -batch -q -no-init-file \
|
|
|
|
-f batch-byte-compile ${RECOMPILE_ELS} ; \
|
|
|
|
)
|
|
|
|
@${RM} -f ${WRKSRC}/src/emacs ${WRKSRC}/src/emacs-${EMACS_VER}*
|
|
|
|
@(cd ${BUILD_WRKSRC}; \
|
|
|
|
${SETENV} ${MAKE_ENV} \
|
|
|
|
${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET} ;\
|
|
|
|
)
|
|
|
|
|
1998-12-13 15:27:06 +01:00
|
|
|
do-install:
|
|
|
|
@${INSTALL} -c -s -m 555 -o root -g wheel ${WRKSRC}/src/emacs ${PREFIX}/bin/emacs-dl-${EMACS_VER}
|
1999-10-26 15:20:32 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/etc/DOC ${PREFIX}/share/emacs/${EMACS_VER}/etc/${DOC_FILE}
|
1998-12-13 15:27:06 +01:00
|
|
|
|
2001-04-27 17:16:58 +02:00
|
|
|
.include <bsd.port.post.mk>
|