diff options
author | uebayasi <uebayasi> | 2007-11-12 01:48:47 +0000 |
---|---|---|
committer | uebayasi <uebayasi> | 2007-11-12 01:48:47 +0000 |
commit | 902dc58806a89aef6b1eea9b587ae2ed0e790a02 (patch) | |
tree | 0abc61f1d468a4dc5091aa9c7a0f4e1998016680 /editors/xemacs-current | |
parent | 2220274e4465d2e3f47c17fdd8cde64a9d343504 (diff) | |
download | pkgsrc-902dc58806a89aef6b1eea9b587ae2ed0e790a02.tar.gz |
Support XEmacs 21.5.x without X too.
Diffstat (limited to 'editors/xemacs-current')
-rw-r--r-- | editors/xemacs-current/Makefile | 70 | ||||
-rw-r--r-- | editors/xemacs-current/Makefile.common | 58 | ||||
-rw-r--r-- | editors/xemacs-current/options.mk | 39 |
3 files changed, 97 insertions, 70 deletions
diff --git a/editors/xemacs-current/Makefile b/editors/xemacs-current/Makefile index 49b4bde87a2..068b25f7ce1 100644 --- a/editors/xemacs-current/Makefile +++ b/editors/xemacs-current/Makefile @@ -1,71 +1,5 @@ -# $NetBSD: Makefile,v 1.62 2007/06/30 17:59:03 joerg Exp $ +# $NetBSD: Makefile,v 1.63 2007/11/12 01:48:47 uebayasi Exp $ -DISTNAME= xemacs-21.5.27 - -CATEGORIES= editors -MASTER_SITES= ${MASTER_SITE_XEMACS:=xemacs-21.5/} - -MAINTAINER= pkgsrc-users@NetBSD.org -HOMEPAGE= http://www.xemacs.org/ -COMMENT= *BETA* XEmacs text editor version 21.5.27 - -CONFLICTS+= gnuclient-[0-9]* - - -BUILD_DEFS+= XEMACS_WIDGETS -EMACSVERSION= 21.5-b27 -PLIST_SUBST+= EMACSVER=xemacs-${EMACSVERSION} -MESSAGE_SUBST+= EMACSVER=xemacs-${EMACSVERSION} - -.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32" -GCC_REQD+= 2.95.3 -.endif - -.include "options.mk" - -XEMACS_WIDGETS?= lucid -.if ${XEMACS_WIDGETS} == "gtk" -. include "../../x11/gtk/buildlink3.mk" -WITH_WIDGETS= --with-gtk -.elif ${XEMACS_WIDGETS} == "motif" -. include "../../mk/motif.buildlink3.mk" -.else -. include "../../mk/xaw.buildlink3.mk" -WITH_WIDGETS= --with-widgets=lucid -.endif - -.include "../../databases/gdbm/buildlink3.mk" -.include "../../graphics/jpeg/buildlink3.mk" -.include "../../graphics/png/buildlink3.mk" -.include "../../graphics/tiff/buildlink3.mk" -.include "../../x11/xbitmaps/buildlink3.mk" - -INFOPATH= ${PREFIX}/${PKGINFODIR}:${X11BASE}/${PKGINFODIR}:${LOCALBASE}/${PKGINFODIR} - -HAS_CONFIGURE= YES -CONFIGURE_ARGS+= ${MACHINE_GNU_PLATFORM} -CONFIGURE_ARGS+= --prefix=${PREFIX:Q} -CONFIGURE_ARGS+= --with-clash-detection -CONFIGURE_ARGS+= --with-mule=yes -CONFIGURE_ARGS+= --without-ncurses -CONFIGURE_ARGS+= --without-msw -CONFIGURE_ARGS+= ${WITH_WIDGETS} -CONFIGURE_ARGS+= --with-infopath=${INFOPATH:Q} -CONFIGURE_ARGS+= --with-site-includes=${PREFIX}/include:${WRKDIR} -CONFIGURE_ARGS+= --with-site-libraries=${PREFIX}/lib - -CFLAGS+= -Dunix -# newer gcc has big trouble with aliasing otherwise - this should be fixed -# in the source, but untill then, use the big hammer here: -CFLAGS+= -fno-strict-aliasing - -INFO_FILES= # PLIST - -# build PATH in the dumped emacs is not a problem -CHECK_WRKREF_SKIP+= bin/xemacs -CHECK_WRKREF_SKIP+= bin/xemacs-${EMACSVERSION} - -post-patch: - rm -f ${WRKSRC}/etc/ctags.1.orig +.include "../../editors/xemacs-current/Makefile.common" .include "../../mk/bsd.pkg.mk" diff --git a/editors/xemacs-current/Makefile.common b/editors/xemacs-current/Makefile.common new file mode 100644 index 00000000000..3617480c648 --- /dev/null +++ b/editors/xemacs-current/Makefile.common @@ -0,0 +1,58 @@ +# $NetBSD: Makefile.common,v 1.1 2007/11/12 01:48:47 uebayasi Exp $ + +DISTNAME= xemacs-21.5.27 + +CATEGORIES= editors +MASTER_SITES= ${MASTER_SITE_XEMACS:=xemacs-21.5/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://www.xemacs.org/ +COMMENT= *BETA* XEmacs text editor version 21.5.27 + +CONFLICTS+= gnuclient-[0-9]* + +DESCR_SRC= ../../editors/xemacs-current/DESCR +PLIST_SRC= ../../editors/xemacs-current/PLIST +DISTINFO_FILE= ../../editors/xemacs-current/distinfo +FILESDIR= ../../editors/xemacs-current/files +PATCHDIR= ../../editors/xemacs-current/patches + +EMACSVERSION= 21.5-b27 +PLIST_SUBST+= EMACSVER=xemacs-${EMACSVERSION} +MESSAGE_SUBST+= EMACSVER=xemacs-${EMACSVERSION} + +.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32" +GCC_REQD+= 2.95.3 +.endif + +.include "../../editors/xemacs-current/options.mk" + +.include "../../databases/gdbm/buildlink3.mk" + +INFOPATH= ${PREFIX}/${PKGINFODIR}:${X11BASE}/${PKGINFODIR}:${LOCALBASE}/${PKGINFODIR} + +HAS_CONFIGURE= YES +CONFIGURE_ARGS+= ${MACHINE_GNU_PLATFORM} +CONFIGURE_ARGS+= --prefix=${PREFIX:Q} +CONFIGURE_ARGS+= --with-clash-detection +CONFIGURE_ARGS+= --with-mule=yes +CONFIGURE_ARGS+= --without-ncurses +CONFIGURE_ARGS+= --without-msw +CONFIGURE_ARGS+= ${WITH_WIDGETS} +CONFIGURE_ARGS+= --with-infopath=${INFOPATH:Q} +CONFIGURE_ARGS+= --with-site-includes=${PREFIX}/include:${WRKDIR} +CONFIGURE_ARGS+= --with-site-libraries=${PREFIX}/lib + +CFLAGS+= -Dunix +# newer gcc has big trouble with aliasing otherwise - this should be fixed +# in the source, but untill then, use the big hammer here: +CFLAGS+= -fno-strict-aliasing + +INFO_FILES= # PLIST + +# build PATH in the dumped emacs is not a problem +CHECK_WRKREF_SKIP+= bin/xemacs +CHECK_WRKREF_SKIP+= bin/xemacs-${EMACSVERSION} + +post-patch: + rm -f ${WRKSRC}/etc/ctags.1.orig diff --git a/editors/xemacs-current/options.mk b/editors/xemacs-current/options.mk index 8e63b89637f..b0bc4cb72da 100644 --- a/editors/xemacs-current/options.mk +++ b/editors/xemacs-current/options.mk @@ -1,10 +1,19 @@ -# $NetBSD: options.mk,v 1.8 2006/09/04 09:20:51 martin Exp $ +# $NetBSD: options.mk,v 1.9 2007/11/12 01:48:48 uebayasi Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.xemacs -PKG_SUPPORTED_OPTIONS= esound ldap xface canna debug +PKG_SUPPORTED_OPTIONS= esound ldap xface canna debug x11 +PKG_OPTIONS_OPTIONAL_GROUPS= toolkit +PKG_OPTIONS_GROUP.toolkit= gtk motif xaw +PKG_SUGGESTED_OPTIONS= x11 xaw .include "../../mk/bsd.options.mk" +.if !empty(PKG_OPTIONS:Mgtk) || !empty(PKG_OPTIONS:Mmotif) || !empty(PKG_OPTIONS:Mxaw) +. if empty(PKG_OPTIONS:Mx11) +PKG_OPTIONS+= x11 +. endif +.endif + .if !empty(PKG_OPTIONS:Mldap) CONFIGURE_ARGS+= --with-ldap . include "../../databases/openldap-client/buildlink3.mk" @@ -36,3 +45,29 @@ CONFIGURE_ARGS+= --with-sound=none CONFIGURE_ARGS+= --enable-debug=yes --with-debug .endif +.if !empty(PKG_OPTIONS:Mx11) +. include "../../graphics/jpeg/buildlink3.mk" +. include "../../graphics/png/buildlink3.mk" +. include "../../graphics/tiff/buildlink3.mk" +. include "../../x11/xbitmaps/buildlink3.mk" +.else +CONFIGURE_ARGS+= --without-x11 +CONFIGURE_ARGS+= --without-jpeg +CONFIGURE_ARGS+= --without-png +CONFIGURE_ARGS+= --without-tiff +CONFIGURE_ARGS+= --without-xpm +.endif + +.if !empty(PKG_OPTIONS:Mgtk) +. include "../../x11/gtk/buildlink3.mk" +WITH_WIDGETS= --with-gtk +.endif + +.if !empty(PKG_OPTIONS:Mmotif) +. include "../../mk/motif.buildlink3.mk" +.endif + +.if !empty(PKG_OPTIONS:Mxaw) +. include "../../mk/xaw.buildlink3.mk" +WITH_WIDGETS= --with-widgets=lucid +.endif |