2018-01-14 15:58:38 +01:00
|
|
|
# $NetBSD: Makefile,v 1.98 2018/01/14 14:58:39 rillig Exp $
|
1998-08-23 09:59:49 +02:00
|
|
|
|
2008-09-10 15:32:47 +02:00
|
|
|
DISTNAME= magicpoint-1.13a
|
2016-07-09 08:37:46 +02:00
|
|
|
PKGREVISION= 28
|
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
|
2011-02-25 18:02:53 +01:00
|
|
|
LICENSE= modified-bsd
|
1998-08-23 09:59:49 +02:00
|
|
|
|
2014-09-08 22:40:29 +02:00
|
|
|
DEPENDS+= netpbm-[0-9]*:../../graphics/netpbm
|
|
|
|
|
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
|
2008-05-24 15:53:33 +02:00
|
|
|
USE_LANGUAGES+= c99
|
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
|
|
|
|
2001-07-31 07:27:30 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-freetype-charset16
|
|
|
|
CONFIGURE_ARGS+= --enable-locale
|
|
|
|
CONFIGURE_ARGS+= --enable-gif
|
2018-01-14 15:58:38 +01:00
|
|
|
CONFIGURE_ARGS+= --with-searchpath=${BUILDLINK_DIR}
|
|
|
|
CONFIGURE_ENV+= BUILDLINK_DIR=${BUILDLINK_DIR}
|
|
|
|
CONFIGURE_ENV+= mgp_cv_path_perl=${TOOLS_PERL5}
|
1999-06-15 23:22:10 +02:00
|
|
|
|
2008-09-10 15:32:47 +02:00
|
|
|
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
|
2004-11-30 18:29:30 +01:00
|
|
|
|
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
|
|
|
|
|
2008-09-10 15:32:47 +02:00
|
|
|
.include "options.mk"
|
|
|
|
|
|
|
|
SUBST_CLASSES+= conf
|
|
|
|
SUBST_FILES.conf+= sample/default.mgp
|
|
|
|
SUBST_SED.conf+= -e 's|@MGP_TFONT@|${MGP_TFONT}|g'
|
|
|
|
SUBST_SED.conf+= -e 's|@MGP_VFONT@|${MGP_VFONT}|g'
|
|
|
|
SUBST_SED.conf+= -e 's|@MGP_XFONT@|${MGP_XFONT}|g'
|
|
|
|
SUBST_STAGE.conf= post-configure
|
|
|
|
|
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
|
|
|
|
|
1998-08-24 03:00:26 +02:00
|
|
|
post-install:
|
2008-09-10 15:32:47 +02:00
|
|
|
.for f in ${DOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${DOCDIR}
|
|
|
|
.endfor
|
|
|
|
.for f in ${EXAMPLES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample/${f} ${DESTDIR}${PREFIX}/${EGDIR}
|
2004-11-30 18:29:30 +01:00
|
|
|
.endfor
|
|
|
|
|
2014-05-31 17:56:26 +02:00
|
|
|
.include "../../graphics/giflib/buildlink3.mk"
|
2004-05-09 22:19:44 +02:00
|
|
|
.include "../../graphics/mng/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"
|