diff options
Diffstat (limited to 'graphics/magicpoint/Makefile')
-rw-r--r-- | graphics/magicpoint/Makefile | 50 |
1 files changed, 36 insertions, 14 deletions
diff --git a/graphics/magicpoint/Makefile b/graphics/magicpoint/Makefile index 497d61bc427..977800134d9 100644 --- a/graphics/magicpoint/Makefile +++ b/graphics/magicpoint/Makefile @@ -1,9 +1,11 @@ -# $NetBSD: Makefile,v 1.40 2004/10/03 00:14:56 tv Exp $ +# $NetBSD: Makefile,v 1.41 2004/11/30 17:29:30 taca Exp $ DISTNAME= magicpoint-1.10a -PKGREVISION= 3 +PKGREVISION= 4 +#DISTNAME= magicpoint-1.11b.tar.gz CATEGORIES= x11 graphics -MASTER_SITES= ftp://ftp.mew.org/pub/MagicPoint/ +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/ @@ -16,25 +18,39 @@ 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+= --disable-vflib 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: - cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} ctlwords.h - cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} grammar.c - cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} scanner.c - cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} tokdefs.h - cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} Makefiles - cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} includes - cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} depend +.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 @@ -47,9 +63,15 @@ post-install: ${INSTALL_DATA} README* *.jpg *.eps *.mgp *.xbm mgprc-sample \ ${PREFIX}/share/examples/mgp -.include "../../fonts/Xft2/buildlink3.mk" -.include "../../fonts/fontconfig/buildlink3.mk" -.include "../../graphics/freetype2/buildlink3.mk" +.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" |