summaryrefslogtreecommitdiff
path: root/editors/emacs-snapshot/Makefile.common
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2010-01-18 19:34:20 +0000
committerminskim <minskim@pkgsrc.org>2010-01-18 19:34:20 +0000
commit3e1febea02f006267edd0abeb093a5f2d3e67aa9 (patch)
tree95cb78cfe526d5af4cf56e402298cf8f5b1919b3 /editors/emacs-snapshot/Makefile.common
parent81612dc3ada8cf8a9a72e12f749e255c4eb51123 (diff)
downloadpkgsrc-3e1febea02f006267edd0abeb093a5f2d3e67aa9.tar.gz
Update emacs-snapshot to 23.1.91.20100111.
Changes: * .dir-locals.el (change-log-mode): Restore bug-reference-mode. * info/dir: Add Semantic. * info/dir: Add EDT entry. * .dir-locals.el (bug-reference-url-format): Change to debbugs.gnu.org. * elisp package updates: edt, cedet, chart, eieio, files-x, font-setting, hfy-cmap, htmlfontify, mule-conf, ucs-normalize, mpc, imap, tramp, levents, lucid, sym-comp, org, js, and subword.
Diffstat (limited to 'editors/emacs-snapshot/Makefile.common')
-rw-r--r--editors/emacs-snapshot/Makefile.common66
1 files changed, 66 insertions, 0 deletions
diff --git a/editors/emacs-snapshot/Makefile.common b/editors/emacs-snapshot/Makefile.common
new file mode 100644
index 00000000000..eb6a85da90f
--- /dev/null
+++ b/editors/emacs-snapshot/Makefile.common
@@ -0,0 +1,66 @@
+# $NetBSD: Makefile.common,v 1.1 2010/01/18 19:34:20 minskim Exp $
+
+DISTNAME= emacs-snapshot_20100111.orig
+PKGNAME= ${DISTNAME:S/snapshot_/${EMACS_VERSION}./:S/.orig//}
+CATEGORIES= editors
+MASTER_SITES= http://emacs.orebokech.com/pool/main/e/emacs-snapshot/
+
+MAINTAINER= minskim@NetBSD.org
+HOMEPAGE= http://www.gnu.org/software/emacs/emacs.html
+COMMENT= GNU editing macros (development version)
+LICENSE= gnu-gpl-v3
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+CONFLICTS+= emacs-nox11-[0-9]*
+
+GNU_CONFIGURE= yes
+INFO_FILES= yes
+USE_TOOLS+= gmake makeinfo gzip
+WRKSRC= ${WRKDIR}/${PKGNAME_NOREV:C/\.[0-9]*$//}
+
+CONFIGURE_ARGS+= --srcdir=${WRKSRC}
+CONFIGURE_ARGS+= --localstatedir=${VARBASE}
+CONFIGURE_ENV+= GAMEOWN=${GAMEOWN}
+
+BUILD_DEFS+= VARBASE
+BUILD_DEFS+= GAMEDATAMODE
+PLIST_SRC+= ../../editors/emacs-snapshot/PLIST
+
+.include "../../editors/emacs-snapshot/version.mk"
+
+BUILD_TARGET= bootstrap
+EMACS_VERSION= ${_EMACS_VERSION_MAJOR}.${_EMACS_VERSION_MINOR}.${_EMACS_VERSION_MICRO}
+PLIST_SUBST+= EMACS_VERSION=${EMACS_VERSION}
+
+REPLACE_PERL= lib-src/grep-changelog
+CHECK_INTERPRETER_SKIP= bin/grep-changelog
+
+MAKE_DIRS_PERMS+= ${VARBASE}/games/emacs ${GAMEOWN} ${GAMEGRP} ${GAMEDIRMODE}
+CONF_FILES_PERMS+= /dev/null ${VARBASE}/games/emacs/snake-scores \
+ ${GAMEOWN} ${GAMEGRP} ${GAMEDATAMODE}
+CONF_FILES_PERMS+= /dev/null ${VARBASE}/games/emacs/tetris-scores \
+ ${GAMEOWN} ${GAMEGRP} ${GAMEDATAMODE}
+
+# build PATH in the dumped emacs is not a problem
+CHECK_WRKREF_SKIP+= bin/emacs
+CHECK_WRKREF_SKIP+= bin/emacs-${EMACS_VERSION}
+
+.include "../../mk/bsd.prefs.mk"
+
+.if (${OPSYS} == "DragonFly") && exists(/usr/lib/crtn.o)
+CPPFLAGS+= -DDFLY_CRT_USRLIB
+.endif
+
+.if ${OPSYS} == "DragonFly" || ${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux" || ${OPSYS} == "OpenBSD"
+.include "../../mk/curses.buildlink3.mk"
+.else
+.include "../../mk/termcap.buildlink3.mk"
+.endif
+
+.include "../../mk/oss.buildlink3.mk"
+
+post-extract:
+ cp ${.CURDIR}/../../editors/emacs/files/site-init.el ${WRKSRC}/lisp
+ cp ${FILESDIR}/dragonfly.h ${WRKSRC}/src/s
+ ${CHMOD} -R go-w ${WRKSRC}