2007-12-02 01:01:08 +01:00
|
|
|
# $NetBSD: Makefile,v 1.60 2007/12/02 00:06:13 wiz Exp $
|
1998-08-23 09:59:49 +02:00
|
|
|
|
2003-09-11 18:09:40 +02:00
|
|
|
DISTNAME= magicpoint-1.10a
|
2006-12-06 17:37:27 +01:00
|
|
|
PKGREVISION= 11
|
2004-11-30 18:29:30 +01:00
|
|
|
#DISTNAME= magicpoint-1.11b.tar.gz
|
1998-08-23 09:59:49 +02:00
|
|
|
CATEGORIES= x11 graphics
|
2007-12-02 01:01:08 +01:00
|
|
|
MASTER_SITES= ftp://sh.wide.ad.jp/WIDE/free-ware/mgp/
|
1998-08-23 09:59:49 +02:00
|
|
|
|
2007-11-17 14:40:15 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2005-01-02 17:22:21 +01:00
|
|
|
HOMEPAGE= http://member.wide.ad.jp/wg/mgp/
|
2001-02-16 16:22:13 +01:00
|
|
|
COMMENT= X11 based presentation tool
|
1998-08-23 09:59:49 +02:00
|
|
|
|
2001-09-28 01:17:41 +02:00
|
|
|
CONFLICTS= mgp-[0-9]*
|
1999-06-16 18:21:26 +02:00
|
|
|
|
1998-08-23 09:59:49 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_IMAKE= yes
|
2005-07-16 03:19:06 +02:00
|
|
|
USE_TOOLS+= perl
|
2007-03-02 21:48:09 +01:00
|
|
|
USE_TOOLS+= pkg-config
|
2003-09-11 18:09:40 +02:00
|
|
|
|
2004-11-30 18:29:30 +01:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.magicpoint
|
2005-05-31 12:01:36 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= freetype vflib xft2
|
|
|
|
PKG_SUGGESTED_OPTIONS= xft2
|
2004-11-30 18:29:30 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2001-07-31 07:27:30 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-freetype-charset16
|
|
|
|
CONFIGURE_ARGS+= --enable-locale
|
|
|
|
CONFIGURE_ARGS+= --enable-gif
|
2005-12-05 21:49:47 +01:00
|
|
|
CONFIGURE_ENV+= BUILDLINK_DIR=${BUILDLINK_DIR:Q}
|
2005-06-17 18:27:58 +02:00
|
|
|
CONFIGURE_ENV+= mgp_cv_path_perl=${TOOLS_PERL5:Q}
|
1999-06-15 23:22:10 +02:00
|
|
|
|
2004-11-30 18:29:30 +01:00
|
|
|
MGP_RENDERING_ENGINES= freetype graphics/freetype-lib \
|
2007-02-20 15:30:00 +01:00
|
|
|
xft2 x11/libXft \
|
2004-11-30 18:29:30 +01:00
|
|
|
vflib print/ja-vflib-lib
|
|
|
|
|
1999-10-28 06:14:02 +02:00
|
|
|
# We need to perform the steps normally done by ``xmkmf -a'' since some
|
|
|
|
# files need to be created before ``make depend''.
|
|
|
|
#
|
2001-07-31 07:27:30 +02:00
|
|
|
XMKMF= ${XMKMF_CMD} ${XMKMF_FLAGS}
|
1999-06-15 23:22:10 +02:00
|
|
|
|
2004-11-30 18:29:30 +01:00
|
|
|
MGP_PRE_STAGE= ctlwords.h grammar.c scanner.c tokdefs.h \
|
|
|
|
Makefiles includes depend
|
|
|
|
|
1999-10-28 06:14:02 +02:00
|
|
|
post-configure:
|
2004-11-30 18:29:30 +01:00
|
|
|
.for s in ${MGP_PRE_STAGE}
|
|
|
|
cd ${WRKSRC}; \
|
2005-06-01 00:45:28 +02:00
|
|
|
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} ${s}
|
2004-11-30 18:29:30 +01:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
pre-install:
|
2005-02-07 14:34:44 +01:00
|
|
|
${SED} -e "/^%% Default.*${PKG_OPTIONS}\./,/^%%%/s/^%% %/%/" \
|
2004-11-30 18:29:30 +01:00
|
|
|
${WRKSRC}/sample/default.mgp.template > \
|
|
|
|
${WRKSRC}/sample/default.mgp
|
1998-08-23 09:59:49 +02:00
|
|
|
|
1998-08-24 03:00:26 +02:00
|
|
|
post-install:
|
1999-10-28 06:14:02 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mgp
|
2004-12-13 23:51:09 +01:00
|
|
|
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
|
1998-08-24 03:00:26 +02:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mgp
|
2004-12-13 23:51:09 +01:00
|
|
|
cd ${WRKSRC}/sample; \
|
|
|
|
for f in README* *.jpg *.eps *.mgp *.xbm mgprc-sample; do \
|
|
|
|
${INSTALL_DATA} $$f ${PREFIX}/share/examples/mgp; \
|
|
|
|
done
|
1998-08-24 03:00:26 +02:00
|
|
|
|
2004-11-30 18:29:30 +01:00
|
|
|
.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
|
|
|
|
|
2006-12-06 17:37:27 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mxft2)
|
|
|
|
.include "../../graphics/freetype2/buildlink3.mk"
|
|
|
|
.endif
|
2004-05-09 22:19:44 +02:00
|
|
|
.include "../../graphics/libungif/buildlink3.mk"
|
|
|
|
.include "../../graphics/mng/buildlink3.mk"
|
|
|
|
.include "../../graphics/netpbm/buildlink3.mk"
|
|
|
|
.include "../../graphics/png/buildlink3.mk"
|
2007-08-18 16:33:09 +02:00
|
|
|
.include "../../x11/libXext/buildlink3.mk"
|
|
|
|
.include "../../x11/libXmu/buildlink3.mk"
|
1998-08-23 09:59:49 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|