1998-02-17 13:58:54 +01:00
|
|
|
# New ports collection makefile for: magicpoint
|
|
|
|
# Date created: 24 December 1997
|
|
|
|
# Whom: itojun@itojun.org
|
1998-01-17 16:09:16 +01:00
|
|
|
#
|
1999-08-25 09:23:21 +02:00
|
|
|
# $FreeBSD$
|
1998-01-17 16:09:16 +01:00
|
|
|
#
|
|
|
|
|
2000-04-13 11:32:05 +02:00
|
|
|
PORTNAME= magicpoint
|
2008-09-27 15:43:19 +02:00
|
|
|
PORTVERSION= 1.13a
|
2010-03-28 08:47:48 +02:00
|
|
|
PORTREVISION= 7
|
2005-11-10 04:48:30 +01:00
|
|
|
CATEGORIES?= misc
|
2005-03-04 09:12:42 +01:00
|
|
|
MASTER_SITES= ftp://sh.wide.ad.jp/WIDE/free-ware/mgp/
|
1998-01-17 16:09:16 +01:00
|
|
|
|
2008-11-07 19:08:59 +01:00
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
|
|
|
COMMENT= An X11-based presentation tool
|
1998-01-17 16:09:16 +01:00
|
|
|
|
2010-03-28 08:47:48 +02:00
|
|
|
LIB_DEPENDS+= png.6:${PORTSDIR}/graphics/png \
|
2004-03-03 18:08:10 +01:00
|
|
|
mng:${PORTSDIR}/graphics/libmng
|
2001-04-15 15:00:55 +02:00
|
|
|
RUN_DEPENDS+= pnmscale:${PORTSDIR}/graphics/netpbm
|
1998-09-06 15:48:20 +02:00
|
|
|
|
1998-01-17 16:09:16 +01:00
|
|
|
USE_IMAKE= yes
|
2009-06-09 17:33:28 +02:00
|
|
|
USE_XORG= x11 xext xmu xt sm ice xi xtst
|
1998-01-17 16:09:16 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2008-11-07 19:08:59 +01:00
|
|
|
CONFIGURE_ARGS= --disable-vflib
|
2005-03-04 09:12:42 +01:00
|
|
|
|
|
|
|
OPTIONS+= FREETYPE "With FreeType support" on \
|
|
|
|
XFT "With Xft2 support" on \
|
|
|
|
GIF "With gif image support" off \
|
|
|
|
IMLIB "With Imlib exclusive image processing" off
|
1998-01-17 16:09:16 +01:00
|
|
|
|
1998-09-06 15:48:20 +02:00
|
|
|
MAN1= mgp.1 mgp2ps.1 mgpembed.1 mgpnet.1 xwintoppm.1 xmindpath.1
|
|
|
|
|
2008-11-07 19:08:59 +01:00
|
|
|
PORTDOCS= ${DOCS} sample emacs-lisp scripts
|
2001-10-07 09:25:51 +02:00
|
|
|
DOCS= COPYRIGHT COPYRIGHT.jp FAQ README README.fonts README.fonts.jp \
|
2000-05-21 11:00:24 +02:00
|
|
|
README.lang RELNOTES SYNTAX TODO.jp USAGE USAGE.jp
|
|
|
|
SAMPLES= README README.jp cloud.jpg dad.eps dad.jpg default.mgp \
|
2001-10-07 09:25:51 +02:00
|
|
|
embed-jp.mgp embed.mgp gradation-jp.mgp \
|
2000-05-21 11:00:24 +02:00
|
|
|
gradation.mgp mgp-old1.jpg mgp-old2.jpg mgp-old3.jpg \
|
2001-10-07 09:25:51 +02:00
|
|
|
mgp.mng mgp1.jpg mgp2.jpg mgp3.jpg mgp3.xbm mgprc-sample \
|
1999-06-17 10:33:55 +02:00
|
|
|
multilingual.mgp sample-fr.mgp sample-jp.mgp sample.mgp \
|
2000-05-21 11:00:24 +02:00
|
|
|
sendmail6-jp.mgp sendmail6.mgp tutorial-jp.mgp \
|
|
|
|
tutorial.mgp v6-jp.mgp v6.mgp v6header.eps v6header.jpg
|
2008-11-07 19:08:59 +01:00
|
|
|
EMACS_LISPS= mgp-mode.el
|
|
|
|
EMACS_LISPS_MGP=COPYING README mgp.el mgp.sty sample.tex
|
2000-05-21 11:00:24 +02:00
|
|
|
SAMPLE_SCRIPTS= eqn2eps.sh tex2eps.sh mgp2html.pl mgp2latex.pl
|
1998-01-17 16:09:16 +01:00
|
|
|
|
2001-01-21 04:10:31 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-03-04 09:12:42 +01:00
|
|
|
.if defined(WITH_FREETYPE)
|
2010-02-13 11:11:54 +01:00
|
|
|
LIB_DEPENDS+= ttf.4:${PORTSDIR}/print/freetype
|
2008-11-07 19:08:59 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-freetype \
|
|
|
|
--enable-freetype-charset16
|
2005-03-04 09:12:42 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-freetype
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_XFT)
|
|
|
|
LIB_DEPENDS+= Xft.2:${PORTSDIR}/x11-fonts/libXft
|
|
|
|
CONFIGURE_ARGS+= --enable-xft2
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-xft2
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_GIF)
|
2009-10-21 06:41:07 +02:00
|
|
|
LIB_DEPENDS+= gif.5:${PORTSDIR}/graphics/giflib
|
2005-03-04 09:12:42 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-gif
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-gif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_IMLIB)
|
|
|
|
LIB_DEPENDS+= Imlib.5:${PORTSDIR}/graphics/imlib
|
|
|
|
CONFIGURE_ARGS+= --enable-imlib
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-imlib
|
|
|
|
.endif
|
|
|
|
|
2009-10-21 06:41:07 +02:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's|-lungif|-lgif|' ${WRKSRC}/configure
|
|
|
|
|
2000-06-09 10:17:41 +02:00
|
|
|
post-configure:
|
2008-11-07 19:08:59 +01:00
|
|
|
cd ${WRKSRC}/contrib/xmindpath && \
|
|
|
|
${SH} ${CONFIGURE_SCRIPT} --prefix=${PREFIX}
|
2000-06-09 10:17:41 +02:00
|
|
|
|
|
|
|
post-build:
|
2008-11-07 19:08:59 +01:00
|
|
|
cd ${WRKSRC}/contrib/xmindpath && \
|
|
|
|
${MAKE}
|
2000-06-09 10:17:41 +02:00
|
|
|
|
1998-01-17 16:09:16 +01:00
|
|
|
post-install:
|
2008-11-07 19:08:59 +01:00
|
|
|
cd ${WRKSRC}/contrib/xmindpath && \
|
|
|
|
${MAKE} ${INSTALL_TARGET}
|
1998-01-17 16:09:16 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2008-09-02 16:09:20 +02:00
|
|
|
${MKDIR} ${DOCSDIR}
|
2008-11-07 19:08:59 +01:00
|
|
|
cd ${WRKSRC} && \
|
|
|
|
${INSTALL_DATA} ${DOCS} ${DOCSDIR}
|
2008-09-02 16:09:20 +02:00
|
|
|
${MKDIR} ${DOCSDIR}/sample
|
2008-11-07 19:08:59 +01:00
|
|
|
cd ${WRKSRC}/sample && \
|
|
|
|
${INSTALL_DATA} ${SAMPLES} ${DOCSDIR}/sample/
|
|
|
|
${MKDIR} ${DOCSDIR}/emacs-lisp
|
|
|
|
cd ${WRKSRC}/contrib && \
|
|
|
|
${INSTALL_DATA} ${EMACS_LISPS} ${DOCSDIR}/emacs-lisp/
|
2008-09-02 16:09:20 +02:00
|
|
|
${MKDIR} ${DOCSDIR}/emacs-lisp/mgp-el
|
2008-11-07 19:08:59 +01:00
|
|
|
cd ${WRKSRC}/contrib/mgp-el && \
|
|
|
|
${INSTALL_DATA} ${EMACS_LISPS_MGP} ${DOCSDIR}/emacs-lisp/mgp-el
|
2008-09-02 16:09:20 +02:00
|
|
|
${MKDIR} ${DOCSDIR}/scripts
|
2008-11-07 19:08:59 +01:00
|
|
|
cd ${WRKSRC}/contrib && \
|
|
|
|
${INSTALL_SCRIPT} ${SAMPLE_SCRIPTS} ${DOCSDIR}/scripts/
|
1998-01-17 16:09:16 +01:00
|
|
|
.endif
|
|
|
|
|
2001-01-21 04:10:31 +01:00
|
|
|
.include <bsd.port.post.mk>
|