2010-07-18 14:49:01 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.47 2010/07/18 18:49:01 naddy Exp $
|
2002-02-10 17:05:40 -05:00
|
|
|
|
2007-09-15 20:44:00 -04:00
|
|
|
COMMENT-main= GNU editor: extensible, customizable, self documenting
|
|
|
|
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}
|
2010-01-27 16:43:27 -05:00
|
|
|
PKGNAME-main= ${DISTNAME}p11
|
2010-02-26 13:17:38 -05:00
|
|
|
FULLPKGNAME-el= emacs-el-${VERSION}p2
|
|
|
|
FULLPKGPATH-el= editors/emacs21,-el
|
|
|
|
FULLPKGNAME-leim= emacs-leim-${VERSION}p2
|
|
|
|
FULLPKGPATH-leim= editors/emacs21,-leim
|
2003-07-06 08:46:45 -04:00
|
|
|
|
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
|
|
|
|
2010-07-18 14:49:01 -04:00
|
|
|
GCCARCH= ${MACHINE_ARCH}-unknown-openbsd${OSREV}
|
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
|
2009-07-17 12:38:48 -04: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
|
2009-08-10 02:29:51 -04:00
|
|
|
WANTLIB-main+= ICE SM X11 Xaw Xext Xmu Xpm Xt pthread-stubs xcb z
|
2002-02-10 17:05:40 -05:00
|
|
|
.endif
|
|
|
|
|
2009-07-17 12:38:48 -04:00
|
|
|
RUN_DEPENDS= :emacs-${VERSION}:${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>
|