blob: 8723bc52d41d654fc9ee77f6856a45ffea288fbe (
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
|
# $NetBSD: Makefile,v 1.42 2004/12/13 22:51:09 agc Exp $
DISTNAME= magicpoint-1.10a
PKGREVISION= 4
#DISTNAME= magicpoint-1.11b.tar.gz
CATEGORIES= x11 graphics
MASTER_SITES= ftp://sh.wide.ad.jp/WIDE/free-ware/mgp/ \
ftp://ftp.mew.org/pub/MagicPoint/
MAINTAINER= itojun@itojun.org
HOMEPAGE= http://www.Mew.org/mgp/
COMMENT= X11 based presentation tool
CONFLICTS= mgp-[0-9]*
GNU_CONFIGURE= yes
USE_BUILDLINK3= yes
USE_IMAKE= yes
USE_PERL5= build
PKG_OPTIONS_VAR= PKG_OPTIONS.magicpoint
PKG_DEFAULT_OPTIONS+= xft2
PKG_SUPPORTED_OPTIONS+= freetype vflib xft2
.include "../../mk/bsd.options.mk"
CONFIGURE_ARGS+= --enable-freetype-charset16
CONFIGURE_ARGS+= --enable-locale
CONFIGURE_ARGS+= --enable-gif
CONFIGURE_ENV+= BUILDLINK_DIR=${BUILDLINK_DIR}
MGP_RENDERING_ENGINES= freetype graphics/freetype-lib \
xft2 fonts/Xft2 \
vflib print/ja-vflib-lib
# 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
post-configure:
.for s in ${MGP_PRE_STAGE}
cd ${WRKSRC}; \
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} $s
.endfor
pre-install:
${SED} -e "/^%% Default.*${MGP_RENDERING_ENGINE}\./,/^%%%/s/^%% %/%/" \
${WRKSRC}/sample/default.mgp.template > \
${WRKSRC}/sample/default.mgp
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mgp
cd ${WRKSRC}; \
for f in COPYRIGHT COPYRIGHT.jp FAQ README README.fonts \
README.fonts.jp README.lang SYNTAX USAGE USAGE.jp; do \
${INSTALL_DATA} $$f ${PREFIX}/share/doc/mgp; \
done
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mgp
cd ${WRKSRC}/sample; \
for f in README* *.jpg *.eps *.mgp *.xbm mgprc-sample; do \
${INSTALL_DATA} $$f ${PREFIX}/share/examples/mgp; \
done
.for engine pkg in ${MGP_RENDERING_ENGINES}
. if !empty(PKG_OPTIONS:M${engine})
CONFIGURE_ARGS+= --enable-${engine}
.include "../../${pkg}/buildlink3.mk"
. else
CONFIGURE_ARGS+= --disable-${engine}
. endif
.endfor
.include "../../graphics/libungif/buildlink3.mk"
.include "../../graphics/mng/buildlink3.mk"
.include "../../graphics/netpbm/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|