blob: f515ecf305f6c992a7572faca04277c0e300d3dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
# $NetBSD: Makefile,v 1.101 2012/02/06 12:40:05 wiz Exp $
PKGNAME?= ${DISTNAME}
COMMENT?= XEmacs text editor version 21
DISTNAME= xemacs-21.4.22
PKGREVISION= 5
CATEGORIES= editors
MASTER_SITES= ${MASTER_SITE_XEMACS:=${DISTNAME:C/[.][^.]*$//}/}
MAINTAINER= hauke@NetBSD.org
HOMEPAGE= http://www.xemacs.org/
CONFLICTS+= gnuserv-[0-9]*
CONFLICTS+= xemacs-[0-9]*
CONFLICTS+= xemacs-nox11-[0-9]*
NOT_FOR_PLATFORM= *-*-mips* # fails purespace dumping
PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= makeinfo
HAS_CONFIGURE= yes
DIST_SUBDIR= xemacs
PLIST_SUBST+= DISTNAME=${DISTNAME:Q}
FILES_SUBST+= DISTNAME=${DISTNAME:Q}
MESSAGE_SUBST+= DISTNAME=${DISTNAME:Q}
INFO_FILES= # PLIST
.include "options.mk"
CONFIGURE_ARGS+= ${MACHINE_GNU_PLATFORM}
CONFIGURE_ARGS+= --prefix=${PREFIX:Q}
CONFIGURE_ARGS+= --mandir=${PREFIX:Q}/${PKGMANDIR:Q}/man1
CONFIGURE_ARGS+= --with-clash-detection
CONFIGURE_ARGS+= --with-mule=yes
CONFIGURE_ARGS+= --with-msw=no
CFLAGS+= -Dunix
.if ${X11_TYPE} != "modular"
INFOPATH= ${PREFIX}/${PKGINFODIR}:${X11BASE}/${PKGINFODIR}:${LOCALBASE}/${PKGINFODIR}
.else
INFOPATH= ${PREFIX}/${PKGINFODIR}:${LOCALBASE}/${PKGINFODIR}
.endif
CONFIGURE_ARGS+= --infopath=${INFOPATH:Q}
.if ${OPSYS} == "SunOS"
. if !exists(/usr/demo/SOUND/libaudio.a) && \
!exists(/usr/demo/SOUND/lib/libaudio.a)
CONFIGURE_ARGS+= --with_sound=none
. endif
.endif
.if (${OPSYS} == "DragonFly") && exists(/usr/lib/crtn.o)
CPPFLAGS+= -DDFLY_CRT_USRLIB
.endif
CHECK_WRKREF_SKIP= bin/xemacs*
REPLACE_SH= etc/check_cygwin_setup.sh
LIBDIR= ${PREFIX}/lib/${DISTNAME}
ARCHLIBDIR= ${LIBDIR}/${MACHINE_GNU_PLATFORM}
# This list overrides variables used in the source Makefiles at install
# time to allow for ${DESTDIR}-style installation. This variables list
# is pulled from the ``mkdir'' target of Makefile.in.in.
#
INSTALL_MAKE_FLAGS+= archlibdir=${DESTDIR}${ARCHLIBDIR}
INSTALL_MAKE_FLAGS+= bindir=${DESTDIR}${PREFIX}/bin
INSTALL_MAKE_FLAGS+= datadir=${DESTDIR}${PREFIX}/lib
INSTALL_MAKE_FLAGS+= docdir=${DESTDIR}${ARCHLIBDIR}
INSTALL_MAKE_FLAGS+= etcdir=${DESTDIR}${LIBDIR}/etc
INSTALL_MAKE_FLAGS+= exec_prefix=${DESTDIR}${PREFIX}
INSTALL_MAKE_FLAGS+= infodir=${DESTDIR}${LIBDIR}/info
INSTALL_MAKE_FLAGS+= libdir=${DESTDIR}/lib
INSTALL_MAKE_FLAGS+= lispdir=${DESTDIR}${LIBDIR}/lisp
INSTALL_MAKE_FLAGS+= mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
INSTALL_MAKE_FLAGS+= moduledir=${DESTDIR}${ARCHLIBDIR}/modules
INSTALL_MAKE_FLAGS+= pkgdir=${DESTDIR}${LIBDIR}/lisp
INSTALL_MAKE_FLAGS+= prefix=${DESTDIR}${PREFIX}
INSTALL_MAKE_FLAGS+= sitelispdir=${DESTDIR}${PREFIX}/lib/xemacs/site-lisp
INSTALL_MAKE_FLAGS+= sitemoduledir=${DESTDIR}${PREFIX}/lib/xemacs/site-modules
post-extract:
cp ${FILESDIR}/dragonfly.h ${WRKSRC}/src/s/
pre-build:
rm -f ${WRKSRC}/etc/ctags.1.orig
.if defined(MANZ)
PLIST_SUBST+= ELSUFX='.gz'
post-install:
find ${DESTDIR}${LIBDIR} -name "*.el" -type f -print | xargs ${GZIP_CMD}
.else
PLIST_SUBST+= ELSUFX=''
.endif
.include "../../databases/gdbm/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/termcap.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|