2011-01-14 20:09:42 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.20 2011/01/15 01:09:43 naddy Exp $
|
2008-06-14 14:31:15 -04:00
|
|
|
|
|
|
|
COMMENT-main= GNU editor: extensible, customizable, self-documenting
|
|
|
|
COMMENT-el= elisp sources for those who want to read/modify them
|
|
|
|
|
2009-06-07 03:07:39 -04:00
|
|
|
VERSION= 22.3
|
2008-06-14 14:31:15 -04:00
|
|
|
DISTNAME= emacs-${VERSION}
|
2010-07-24 19:05:08 -04:00
|
|
|
PKGNAME-main= emacs-${VERSION}
|
|
|
|
FULLPKGNAME-el= emacs-el-${VERSION}
|
2008-06-14 14:31:15 -04:00
|
|
|
FULLPKGPATH-el= editors/emacs22,-el
|
2011-01-14 20:09:42 -05:00
|
|
|
REVISION-main= 8
|
2010-07-26 14:55:27 -04:00
|
|
|
REVISION-el= 1
|
2008-06-14 14:31:15 -04:00
|
|
|
|
|
|
|
CATEGORIES= editors
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.gnu.org/software/emacs/
|
|
|
|
|
|
|
|
MAINTAINER= Eric Faurot <eric@openbsd.org>
|
|
|
|
|
|
|
|
# GPLv3
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=emacs/}
|
|
|
|
|
|
|
|
MULTI_PACKAGES= -main -el
|
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
2010-11-15 18:22:07 -05:00
|
|
|
USE_GROFF = Yes
|
2008-06-14 14:31:15 -04:00
|
|
|
|
|
|
|
FLAVORS= gtk no_x11
|
|
|
|
FLAVOR?=
|
|
|
|
|
2010-07-18 14:49:01 -04:00
|
|
|
GCCARCH= ${MACHINE_ARCH}-unknown-openbsd${OSREV}
|
2008-06-14 14:31:15 -04:00
|
|
|
|
2009-02-18 07:16:15 -05:00
|
|
|
AUTOCONF_VERSION= 2.61
|
|
|
|
CONFIGURE_STYLE= autoconf
|
2008-06-14 14:31:15 -04:00
|
|
|
CONFIGURE_ARGS= ${GCCARCH} --with-pop --localstatedir=/var
|
|
|
|
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \
|
|
|
|
-I${LOCALBASE}/include/libpng" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
|
|
|
|
MAKE_ENV= INSTALL_EMACS="${INSTALL_SCRIPT}" \
|
|
|
|
LOGNAME="${SHAREOWN}"
|
|
|
|
|
|
|
|
SUBST_VARS= GCCARCH VERSION
|
|
|
|
|
|
|
|
WANTLIB-main= c m ncurses ossaudio
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mno_x11}
|
2010-11-15 18:22:07 -05:00
|
|
|
. if ${FLAVOR:L:Mgtk}
|
2008-06-14 14:31:15 -04:00
|
|
|
ERRORS= "Fatal: gtk and no_x11 flavors are mutually exclusive"
|
2010-11-15 18:22:07 -05:00
|
|
|
. endif
|
2008-06-14 14:31:15 -04:00
|
|
|
CONFIGURE_ARGS+= --without-x
|
|
|
|
|
|
|
|
.elif ${FLAVOR:L:Mgtk}
|
|
|
|
CONFIGURE_ARGS+= --with-gtk
|
2010-11-15 18:22:07 -05:00
|
|
|
LIB_DEPENDS-main+= x11/gtk+2 \
|
|
|
|
graphics/libungif
|
2008-06-14 14:31:15 -04:00
|
|
|
WANTLIB-main+= ICE SM X11 Xdmcp Xext Xft Xpm Xrender Xau Xcomposite \
|
|
|
|
Xcursor Xdamage Xfixes Xi Xinerama Xrandr \
|
2009-06-07 03:07:39 -04:00
|
|
|
atk-1.0 cairo expat fontconfig freetype gio-2.0 \
|
2010-10-11 04:11:24 -04:00
|
|
|
glib-2.0 gmodule-2.0 gobject-2.0 iconv intl \
|
2009-08-10 02:29:51 -04:00
|
|
|
pango-1.0 pangocairo-1.0 pangoft2-1.0 pixman-1 pthread \
|
2010-07-26 14:55:27 -04:00
|
|
|
z gtk-x11-2.0 gdk-x11-2.0 gdk_pixbuf-2.0 \
|
|
|
|
jpeg png ungif tiff gthread-2.0 pthread-stubs xcb \
|
|
|
|
xcb-render xcb-render-util
|
2008-06-14 14:31:15 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-x-toolkit=athena --without-toolkit-scroll-bars
|
2010-11-15 18:22:07 -05:00
|
|
|
LIB_DEPENDS-main+= graphics/png \
|
|
|
|
graphics/tiff \
|
|
|
|
graphics/libungif
|
2010-07-26 14:55:27 -04:00
|
|
|
WANTLIB-main+= ICE SM X11 Xaw Xext Xmu Xpm Xt z
|
|
|
|
WANTLIB-main+= jpeg png tiff ungif
|
2008-06-14 14:31:15 -04:00
|
|
|
.endif
|
|
|
|
|
2010-11-15 18:22:07 -05:00
|
|
|
RUN_DEPENDS-el= emacs-${VERSION}:${PKGPATH}
|
2008-06-14 14:31:15 -04:00
|
|
|
PKG_ARCH-el= *
|
|
|
|
|
2009-11-22 10:07:13 -05:00
|
|
|
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "mips64"
|
2009-06-07 03:07:39 -04:00
|
|
|
post-extract:
|
|
|
|
touch ${WRKSRC}/leim/quail/tsang-b5.el
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
gzip -f ${PREFIX}/share/emacs/${VERSION}/leim/quail/tsang-b5.el
|
|
|
|
.endif
|
|
|
|
|
2008-06-14 14:31:15 -04:00
|
|
|
.include <bsd.port.mk>
|