1998-02-17 12:58:54 +00:00
|
|
|
# New ports collection makefile for: magicpoint
|
|
|
|
# Date created: 24 December 1997
|
|
|
|
# Whom: itojun@itojun.org
|
1998-01-17 15:09:16 +00:00
|
|
|
#
|
1999-08-25 07:23:21 +00:00
|
|
|
# $FreeBSD$
|
1998-01-17 15:09:16 +00:00
|
|
|
#
|
1999-09-10 06:54:16 +00:00
|
|
|
# "?=" and "+=" are for localized (i.e. Japanese) version
|
1998-01-17 15:09:16 +00:00
|
|
|
|
2000-04-13 09:32:05 +00:00
|
|
|
PORTNAME= magicpoint
|
2001-10-07 07:25:51 +00:00
|
|
|
PORTVERSION= 1.09a
|
1999-09-10 06:54:16 +00:00
|
|
|
CATEGORIES+= misc
|
1998-01-17 15:09:16 +00:00
|
|
|
MASTER_SITES= ftp://ftp.mew.org/pub/MagicPoint/
|
|
|
|
|
2001-01-14 01:37:16 +00:00
|
|
|
MAINTAINER?= mita@FreeBSD.org
|
1998-01-17 15:09:16 +00:00
|
|
|
|
2001-09-11 03:32:41 +00:00
|
|
|
LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png
|
2001-04-15 13:00:55 +00:00
|
|
|
RUN_DEPENDS+= pnmscale:${PORTSDIR}/graphics/netpbm
|
1998-09-06 13:48:20 +00:00
|
|
|
|
1998-01-17 15:09:16 +00:00
|
|
|
USE_IMAKE= yes
|
(1) Add new variable, XFREE86_VERSION, to specify which version of
XFree86 (3 or 4) to depend to when USE_XLIB is set.
XFREE86_VERSION defaults to 3 for now, but adventurous users can
override it in /etc/make.conf. When XFREE86_VERSION=3, USE_XLIB
will add a dependency to x11/XFree86; when it is set to 4, the
dependency will be to x11/XFree86-4-libraries. When
XFREE86_VERSION=4, the PKG_IGNORE_DEPENDS and ALWAYS_BUILD_DEPENDS
hacks to avoid messing with XFree86 are turned off.
Since XFree86 version 4 includes some software that used to be
separate ports, when XFREE86_VERSION=3 the following variables are
provided:
USE_DGS LIB_DEPENDS on x11/dgs
USE_FREETYPE LIB_DEPENDS on print/freetype
USE_MESA LIB_DEPENDS on graphics/Mesa3
USE_XPM LIB_DEPENDS on graphics/xpm
When XFREE86_VERSION=4, these variables have no effect. The
LIB_DEPENDS in the tree for the above four ports have all been
converted to the USE_* counterparts. For your information, this
is the count of the number of ports:
USE_DGS 0
USE_FREETYPE 16
USE_MESA 36
USE_XPM 236
There is a new variable, XAWVER, which is set to 6 when
XFREE86_VERSION=3 and 7 when XFREE86_VERSION=4. This is also
passed to PLIST_SUB so ports that build Xaw based shared libraries
can use this variable to substitute the shlib version number.
There is also a provision of using a separate mtree file for
XFREE86_VERSION=4, but that part is not enabled yet.
Reviewed by: the ports list
Tested by: make index (XFREE86_VERSION=3 only)
(2) Add hebrew to list of valid categories.
Submitted by: nbm
2000-08-03 09:28:57 +00:00
|
|
|
USE_FREETYPE= yes
|
1998-01-17 15:09:16 +00:00
|
|
|
GNU_CONFIGURE= yes
|
1999-09-10 06:54:16 +00:00
|
|
|
CONFIGURE_ARGS?=--disable-vflib
|
1998-01-17 15:09:16 +00:00
|
|
|
|
1998-09-06 13:48:20 +00:00
|
|
|
MAN1= mgp.1 mgp2ps.1 mgpembed.1 mgpnet.1 xwintoppm.1 xmindpath.1
|
|
|
|
|
2001-10-07 07:25:51 +00:00
|
|
|
DOCS= COPYRIGHT COPYRIGHT.jp FAQ README README.fonts README.fonts.jp \
|
2000-05-21 09:00:24 +00: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 07:25:51 +00:00
|
|
|
embed-jp.mgp embed.mgp gradation-jp.mgp \
|
2000-05-21 09:00:24 +00:00
|
|
|
gradation.mgp mgp-old1.jpg mgp-old2.jpg mgp-old3.jpg \
|
2001-10-07 07:25:51 +00:00
|
|
|
mgp.mng mgp1.jpg mgp2.jpg mgp3.jpg mgp3.xbm mgprc-sample \
|
1999-06-17 08:33:55 +00:00
|
|
|
multilingual.mgp sample-fr.mgp sample-jp.mgp sample.mgp \
|
2000-05-21 09:00:24 +00:00
|
|
|
sendmail6-jp.mgp sendmail6.mgp tutorial-jp.mgp \
|
|
|
|
tutorial.mgp v6-jp.mgp v6.mgp v6header.eps v6header.jpg
|
|
|
|
EMACS_LISPS= mgp-mode.el mgp-el/COPYING mgp-el/README \
|
|
|
|
mgp-el/mgp.el mgp-el/mgp.sty mgp-el/sample.tex
|
|
|
|
SAMPLE_SCRIPTS= eqn2eps.sh tex2eps.sh mgp2html.pl mgp2latex.pl
|
1998-01-17 15:09:16 +00:00
|
|
|
|
2001-01-21 03:10:31 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2000-06-09 08:17:41 +00:00
|
|
|
post-configure:
|
|
|
|
(cd ${WRKSRC}/contrib/xmindpath; ./configure --prefix=${PREFIX})
|
|
|
|
|
|
|
|
post-build:
|
2001-01-21 03:10:31 +00:00
|
|
|
(cd ${WRKSRC}/contrib/xmindpath; make)
|
|
|
|
.if ${XFREE86_VERSION} == 4
|
|
|
|
(cd ${WRKSRC}/contrib/xmindpath; \
|
2001-01-14 01:37:16 +00:00
|
|
|
${RM} -f xmindpath.1.html xmindpath-1.html; \
|
|
|
|
${X11BASE}/bin/rman -f HTML < xmindpath.1 > xmindpath-1.html && \
|
|
|
|
${MV} -f xmindpath-1.html xmindpath.1.html)
|
2001-01-21 03:10:31 +00:00
|
|
|
.endif
|
2000-06-09 08:17:41 +00:00
|
|
|
|
1998-09-14 06:38:04 +00:00
|
|
|
# NOTE: there are some discussions/twists in gzip'ing xmindpath.1.
|
1998-01-17 15:09:16 +00:00
|
|
|
post-install:
|
2001-01-21 03:10:31 +00:00
|
|
|
(cd ${WRKSRC}/contrib/xmindpath; make install)
|
1998-09-06 13:48:20 +00:00
|
|
|
${GZIP_CMD} ${PREFIX}/man/man1/xmindpath.1
|
2001-01-21 03:10:31 +00:00
|
|
|
.if ${XFREE86_VERSION} == 4
|
2001-01-23 16:00:51 +00:00
|
|
|
(cd ${WRKSRC}/contrib/xmindpath; \
|
2001-01-21 03:10:31 +00:00
|
|
|
${INSTALL_MAN} xmindpath.1.html ${PREFIX}/lib/X11/doc/html)
|
|
|
|
.endif
|
1998-01-17 15:09:16 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/mgp
|
|
|
|
for i in $(DOCS); do \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$$i ${PREFIX}/share/doc/mgp; \
|
|
|
|
done
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/mgp/sample
|
|
|
|
for i in $(SAMPLES); do \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample/$$i ${PREFIX}/share/doc/mgp/sample; \
|
|
|
|
done
|
2000-05-21 09:00:24 +00:00
|
|
|
${MKDIR} ${PREFIX}/share/doc/mgp/emacs-lisp/mgp-el
|
|
|
|
for i in $(EMACS_LISPS); do \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/$$i ${PREFIX}/share/doc/mgp/emacs-lisp/$$i; \
|
|
|
|
done
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/mgp/scripts
|
|
|
|
for i in $(SAMPLE_SCRIPTS); do \
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/contrib/$$i ${PREFIX}/share/doc/mgp/scripts/$$i; \
|
|
|
|
done
|
1998-01-17 15:09:16 +00:00
|
|
|
.endif
|
|
|
|
|
2001-01-21 03:10:31 +00:00
|
|
|
.include <bsd.port.post.mk>
|