summaryrefslogtreecommitdiff
path: root/graphics/magicpoint/Makefile
blob: 358fcd7c744b9504bb1c0f39e92640af26670328 (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
# $NetBSD: Makefile,v 1.103 2020/03/26 13:29:16 nia Exp $

DISTNAME=		magicpoint-1.13a
PKGREVISION=		31
CATEGORIES=		x11 graphics
MASTER_SITES=		ftp://sh.wide.ad.jp/WIDE/free-ware/mgp/

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://member.wide.ad.jp/wg/mgp/
COMMENT=		X11 based presentation tool
LICENSE=		modified-bsd

DEPENDS+=		netpbm-[0-9]*:../../graphics/netpbm

CONFLICTS=		mgp-[0-9]*

GNU_CONFIGURE=		yes
USE_IMAKE=		yes
USE_LANGUAGES+=		c99
USE_TOOLS+=		perl
USE_TOOLS+=		pkg-config
USE_TOOLS+=		bison

CONFIGURE_ARGS+=	--enable-freetype-charset16
CONFIGURE_ARGS+=	--enable-locale
CONFIGURE_ARGS+=	--enable-gif
CONFIGURE_ARGS+=	--with-searchpath=${BUILDLINK_DIR}
CONFIGURE_ENV+=		BUILDLINK_DIR=${BUILDLINK_DIR}
CONFIGURE_ENV+=		mgp_cv_path_perl=${TOOLS_PERL5}

DOCDIR=			share/doc/mgp
EGDIR=			share/examples/mgp
INSTALLATION_DIRS+=	${DOCDIR} ${EGDIR}

DOCS=			COPYRIGHT COPYRIGHT.jp FAQ README README.fonts	\
			README.fonts.jp README.lang SYNTAX USAGE USAGE.jp
EXAMPLES=		README README.jp cloud.jpg dad.eps dad.jpg \
			default.mgp embed-jp.mgp embed.mgp gradation-jp.mgp \
			gradation.mgp m17n-lib.mgp mgp-old1.jpg mgp-old2.jpg \
			mgp-old3.jpg mgp1.jpg mgp2.jpg mgp3.jpg mgp3.xbm \
			mgprc-sample multilingual.mgp sample-fr.mgp \
			sample-jp-xft.mgp sample-jp.mgp sample.mgp \
			sendmail6-jp.mgp sendmail6.mgp tutorial-jp.mgp \
			tutorial.mgp v6-jp.mgp v6.mgp v6header.eps v6header.jpg

# We need to perform the steps normally done by ``xmkmf -a'' since some
# files need to be created before ``make depend''.
#
XMKMF=			${XMKMF_CMD} ${XMKMF_FLAGS}

MGP_PRE_STAGE=		ctlwords.h grammar.c scanner.c tokdefs.h \
			Makefiles includes depend

.include "options.mk"

SUBST_CLASSES+=		conf
SUBST_FILES.conf+=	sample/default.mgp
SUBST_VARS.conf=	MGP_TFONT
SUBST_VARS.conf+=	MGP_VFONT
SUBST_VARS.conf+=	MGP_XFONT
SUBST_STAGE.conf=	post-configure

post-configure:
.for s in ${MGP_PRE_STAGE}
	cd ${WRKSRC}; \
		${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} ${s}
.endfor

post-install:
.for f in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${DOCDIR}
.endfor
.for f in ${EXAMPLES}
	${INSTALL_DATA} ${WRKSRC}/sample/${f} ${DESTDIR}${PREFIX}/${EGDIR}
.endfor

.include "../../graphics/giflib/buildlink3.mk"
.include "../../graphics/mng/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXmu/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"