~cypheon/pkgsrc-wip

pkgsrc-wip/emacs-w3m-cvs/Makefile -rw-r--r-- 2.5 KiB
5f1bf4f5 — Johann Rudloff Subst PLIST paths for platform specific files for other architectures 6 months ago
                                                                                
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
# $NetBSD: Makefile,v 1.13 2013/01/11 11:23:48 makoto Exp $

DISTNAME=	emacs-w3m-1.4.50
PKGNAME=	emacs-w3m-1.4.50
CATEGORIES=	www
MASTER_SITES=	#

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://emacs-w3m.namazu.org/
COMMENT=	Emacs frontend for w3m browser
LICENSE=	gnu-gpl-v2

INSTALLATION_DIRS=	${ETCDIR}
# the name is slightly different for now, so put. (Shall I?)
# CONFLICTS+=	emacs-w3m-[0-9]*

USE_TOOLS+=	makeinfo gzip autoconf
INFO_FILES=	YES

DEPENDS+=	w3m{,-img}>=0.5.1nb2:../../www/w3m

CVS_REPOSITORIES=	emacs-w3m
CVS_ROOT.emacs-w3m=	:pserver:anonymous:@cvs.namazu.org:/storage/cvsroot

HAS_CONFIGURE=	yes

CONFIGURE_ARGS+=	--with-emacs=${EMACS_BIN}
CONFIGURE_ARGS+=	--with-icondir=${ICONDIR}
CONFIGURE_ARGS+=	--infodir=${PREFIX}/info
BUILD_TARGET=		default
INSTALL_TARGET=		install install-icons install-icons30
CONFIGURE_ARGS+=	--srcdir=${WRKSRC}
CONFIGURE_ARGS+=	--localstatedir=${VARBASE}
CONFIGURE_ENV+=		GAMEOWN=${GAMEOWN}

WRKSRC=			${WRKDIR}/emacs-w3m

PLIST_SUBST+=		ETCDIR=${ETCDIR}

SUBST_CLASSES+=			fix-icondir
SUBST_STAGE.fix-icondir=	pre-configure
SUBST_FILES.fix-icondir=	Makefile.in w3m.el w3mhack.el
SUBST_SED.fix-icondir=		-e 's|etc/images/w3m|etc/w3m|g'
SUBST_SED.fix-icondir+=		-e 's|images/w3m|w3m|g'

EMACS_BUILDLINK=
EMACS_VERSIONS_ACCEPTED=	emacs21 emacs21nox emacs20 \
				xemacs215 xemacs214 \
				emacs25 emacs26 emacs27

EVAL_PREFIX+=		W3MPREFIX=w3m

SUBST_CLASSES+=		paths
SUBST_FILES.paths+=	w3m.el
SUBST_VARS.paths=	W3MPREFIX
SUBST_STAGE.paths=	pre-configure

.include "../../wip/emacs-git/modules.mk"
BUILD_DEFS+=		VARBASE
BUILD_DEFS+=		GAMEDATAMODE

# GNU Emacs 21 or later and XEmacs have GUI support
PLIST_VARS+=	gui
.if (${EMACS_FLAVOR} == "emacs" && ${EMACS_VERSION_MAJOR} > 20) || \
    ${EMACS_FLAVOR} == "xemacs"
PLIST.gui=	yes
.endif

DOCUMENTS=	COPYING ChangeLog ChangeLog.1 README README.ja
ETCDIR=		${ETCDIR.${EMACS_FLAVOR}}
ICONDIR=	${PREFIX}/${ETCDIR}

INSTALL_TARGET.emacs=	install install-icons
INSTALL_TARGET.xemacs=	install-package
ETCDIR.emacs=		share/emacs/${_EMACS_VERSION_MAJOR}/etc/w3m
ETCDIR.xemacs=		lib/xemacs/site-packages/etc/w3m

PLIST_SRC+=		PLIST


pre-configure:
	(set -e; cd ${WRKSRC} ; autoconf)

post-install:
	set -e; \
	for f in ${DOCUMENTS}; do \
	${INSTALL_DATA} ${WRKSRC}/$$f ${DESTDIR}${PREFIX}/${ETCDIR}; \
	done

.include "options.mk"

.include "../../wip/apel-git/buildlink3.mk"
.include "../../devel/flim/buildlink3.mk"
.include "../../editors/mule-ucs/buildlink3.mk"
.include "../../wip/mk/cvs-package.mk"
.include "../../mk/bsd.pkg.mk"