2007-02-14 11:55:28 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.35 2007/02/14 16:55:28 steven Exp $
|
2003-12-31 03:38:24 -05:00
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "hppa"
|
|
|
|
BROKEN= "hangs indefinitely until machine panics/hangs"
|
|
|
|
.endif
|
2002-02-10 17:05:40 -05:00
|
|
|
|
2006-11-24 17:14:42 -05:00
|
|
|
COMMENT-main= "GNU editor: extensible, customizable, self documenting"
|
2003-07-06 08:46:45 -04:00
|
|
|
COMMENT-el= "elisp sources for those who want to read/modify them"
|
|
|
|
COMMENT-leim= "Library of Emacs Input Methods"
|
2002-02-10 17:05:40 -05:00
|
|
|
|
2005-12-10 06:57:40 -05:00
|
|
|
VERSION= 21.4
|
2003-07-04 20:27:08 -04:00
|
|
|
DISTNAME= emacs-${VERSION}
|
2007-02-14 11:55:28 -05:00
|
|
|
PKGNAME-main= ${DISTNAME}p3
|
2003-07-06 08:46:45 -04:00
|
|
|
FULLPKGNAME-el= emacs-el-${VERSION}
|
|
|
|
FULLPKGNAME-leim= emacs-leim-${VERSION}
|
|
|
|
|
2003-07-04 20:27:08 -04:00
|
|
|
CATEGORIES= editors
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.gnu.org/software/emacs/
|
|
|
|
|
2004-02-01 02:09:47 -05:00
|
|
|
MAINTAINER= Rich Cannings <cannings@openbsd.org>
|
2002-02-10 17:05:40 -05:00
|
|
|
|
2003-07-06 08:46:45 -04:00
|
|
|
# GPL
|
2002-02-10 17:05:40 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2003-07-06 08:46:45 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=emacs/}
|
2005-12-10 06:57:40 -05:00
|
|
|
DISTFILES= emacs-${VERSION}a.tar.gz leim-${VERSION}.tar.gz
|
2003-01-17 16:04:41 -05:00
|
|
|
|
2006-11-24 17:14:42 -05:00
|
|
|
MULTI_PACKAGES= -main -el -leim
|
2002-02-10 17:05:40 -05:00
|
|
|
|
2003-07-04 20:27:08 -04:00
|
|
|
FLAVORS= no_x11
|
2002-03-17 20:58:03 -05:00
|
|
|
FLAVOR?=
|
2002-02-10 17:05:40 -05:00
|
|
|
|
2003-07-04 20:27:08 -04:00
|
|
|
GCCARCH= ${MACHINE_ARCH}-unknown-openbsd${OPSYS_VER}
|
2002-02-10 17:05:40 -05:00
|
|
|
|
2003-07-06 08:46:45 -04:00
|
|
|
CONFIGURE_STYLE= gnu dest
|
|
|
|
CONFIGURE_ARGS= ${GCCARCH} --with-pop
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \
|
|
|
|
-I${LOCALBASE}/include/libpng" \
|
2003-07-18 09:58:09 -04:00
|
|
|
LDFLAGS="${ELF_TOOLCHAIN:L:S/yes/-Z/:S/no//} \
|
2003-07-06 08:46:45 -04:00
|
|
|
-L${LOCALBASE}/lib"
|
|
|
|
|
2005-01-01 23:43:06 -05:00
|
|
|
# Disable propolice on powerpc due to gcc3+propolice bug.
|
|
|
|
.if ${MACHINE_ARCH} == "powerpc"
|
|
|
|
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -fno-stack-protector"
|
|
|
|
.endif
|
|
|
|
|
2004-08-16 19:34:02 -04:00
|
|
|
MAKE_ENV= INSTALL_EMACS="${INSTALL_SCRIPT}"
|
|
|
|
|
2006-12-14 04:07:55 -05:00
|
|
|
SUBST_VARS= GCCARCH VERSION
|
2002-02-10 17:05:40 -05:00
|
|
|
|
2006-11-24 17:14:42 -05:00
|
|
|
WANTLIB-main= c m ncurses ossaudio
|
2002-03-17 20:58:03 -05:00
|
|
|
.if ${FLAVOR:L:Mno_x11}
|
2003-07-04 20:27:08 -04:00
|
|
|
CONFIGURE_ARGS+= --with-x=no
|
2002-02-10 17:05:40 -05:00
|
|
|
.else
|
|
|
|
USE_X11=Yes
|
2006-11-24 17:14:42 -05:00
|
|
|
LIB_DEPENDS-main= ungif.>=5::graphics/libungif \
|
2006-08-01 19:39:08 -04:00
|
|
|
jpeg.>=62::graphics/jpeg \
|
|
|
|
png.>=2::graphics/png \
|
|
|
|
tiff.>=35::graphics/tiff
|
2006-11-24 17:14:42 -05:00
|
|
|
WANTLIB-main+= ICE SM X11 Xaw Xext Xmu Xpm Xt z
|
2002-02-10 17:05:40 -05:00
|
|
|
.endif
|
|
|
|
|
2006-12-14 04:07:55 -05:00
|
|
|
RUN_DEPENDS= :emacs-${VERSION}*:${BUILD_PKGPATH}
|
2006-11-24 17:14:42 -05:00
|
|
|
RUN_DEPENDS-main=
|
|
|
|
|
|
|
|
PKG_ARCH-el= *
|
2003-07-06 08:46:45 -04:00
|
|
|
|
2002-02-10 17:05:40 -05:00
|
|
|
.include <bsd.port.mk>
|