2004-02-04 02:39:18 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.21 2004/02/04 07:39:18 sturm 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
|
|
|
|
2003-07-04 20:27:08 -04:00
|
|
|
COMMENT= "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
|
|
|
|
2003-07-04 20:27:08 -04:00
|
|
|
VERSION= 21.3
|
|
|
|
DISTNAME= emacs-${VERSION}
|
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/}
|
|
|
|
DISTFILES= emacs-${VERSION}.tar.gz leim-${VERSION}.tar.gz
|
2003-01-17 16:04:41 -05:00
|
|
|
|
2003-07-06 08:46:45 -04:00
|
|
|
MULTI_PACKAGES= -el -leim
|
2003-07-06 11:35:40 -04:00
|
|
|
SUBPACKAGE?=
|
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"
|
|
|
|
|
|
|
|
SUBST_VARS= GCCARCH VERSION
|
2002-02-10 17:05:40 -05:00
|
|
|
|
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
|
2003-07-04 20:27:08 -04:00
|
|
|
LIB_DEPENDS= ungif.5::graphics/libungif \
|
|
|
|
jpeg.62::graphics/jpeg \
|
|
|
|
png.2::graphics/png \
|
|
|
|
tiff.35::graphics/tiff
|
2002-02-10 17:05:40 -05:00
|
|
|
.endif
|
|
|
|
|
2003-07-06 08:46:45 -04:00
|
|
|
.if defined(PACKAGING)
|
|
|
|
. if !empty(SUBPACKAGE)
|
|
|
|
RUN_DEPENDS= :emacs-${VERSION}*:editors/emacs21
|
|
|
|
LIB_DEPENDS=
|
|
|
|
. endif
|
2004-02-04 02:39:18 -05:00
|
|
|
. if ${SUBPACKAGE} == "-el"
|
|
|
|
PKG_ARCH= *
|
|
|
|
. endif
|
2003-07-06 08:46:45 -04:00
|
|
|
.endif
|
|
|
|
|
2002-02-10 17:05:40 -05:00
|
|
|
.include <bsd.port.mk>
|