2006-08-14 18:14:29 +02:00
|
|
|
# New ports collection makefile for: advi
|
|
|
|
# Date created: 2006-08-13
|
|
|
|
# Whom: Stanislav Sedov <ssedov@mbsd.msk.ru>
|
|
|
|
#
|
|
|
|
# $MBSDlabs$
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= advi
|
2010-04-09 11:09:51 +02:00
|
|
|
PORTVERSION= 1.9
|
|
|
|
PORTREVISION= 0
|
2006-08-14 18:14:29 +02:00
|
|
|
CATEGORIES= print
|
2010-04-09 11:09:51 +02:00
|
|
|
MASTER_SITES= http://gallium.inria.fr/${PORTNAME}/ \
|
|
|
|
http://caml.inria.fr/distrib/bazar-ocaml/${PORTNAME}/
|
2006-08-14 18:14:29 +02:00
|
|
|
|
2011-10-24 05:33:20 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-08-14 18:14:29 +02:00
|
|
|
COMMENT= Active-DVI viewer
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${CI_DEPEND}:${PORTSDIR}/graphics/ocaml-images \
|
|
|
|
kpsewhich:${PORTSDIR}/print/teTeX-base
|
|
|
|
LIB_DEPENDS= ungif.5:${PORTSDIR}/graphics/libungif \
|
2010-03-28 08:47:48 +02:00
|
|
|
png.6:${PORTSDIR}/graphics/png \
|
2010-02-05 12:46:55 +01:00
|
|
|
jpeg.11:${PORTSDIR}/graphics/jpeg \
|
2006-08-14 18:14:29 +02:00
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff
|
|
|
|
RUN_DEPENDS= kpsewhich:${PORTSDIR}/print/teTeX-base
|
|
|
|
|
|
|
|
USE_OCAML= yes
|
2010-04-09 11:09:51 +02:00
|
|
|
USE_OCAML_FINDLIB= yes
|
2006-08-14 18:14:29 +02:00
|
|
|
NO_OCAML_RUNDEPENDS=yes
|
2010-04-09 11:09:51 +02:00
|
|
|
GNU_CONFIGURE=yes
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_XORG= xpm
|
2006-08-14 18:14:29 +02:00
|
|
|
USE_FREETYPE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
2010-04-11 12:05:44 +02:00
|
|
|
CONFIGURE_ARGS= --disable-bytecode-program
|
2006-08-14 18:14:29 +02:00
|
|
|
|
2010-04-09 11:09:51 +02:00
|
|
|
OPTIONS= GS "Enable Ghostscript support" on
|
|
|
|
|
|
|
|
CI_DEPEND= ${LOCALBASE}/${OCAML_LIBDIR}/site-lib/camlimages/camlimages.a
|
2006-08-14 18:14:29 +02:00
|
|
|
MAN1= advi.1
|
|
|
|
|
2010-04-09 11:09:51 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
PORTDOCS= *
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_GS)
|
|
|
|
USE_GHOSTSCRIPT= yes
|
|
|
|
CONFIGURE_ARGS+= --with-GS=maybe
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-GS=no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-everything::
|
|
|
|
@${ECHO} "************************************************************"
|
|
|
|
@${ECHO} "ATTENTION! This port required ocaml-images to be built with"
|
|
|
|
@${ECHO} "Ghostscript support enabled. If you build graphics/ocaml-images"
|
|
|
|
@${ECHO} "without GS support, please rebuild it before building this port"
|
|
|
|
@${ECHO} "************************************************************"
|
|
|
|
@${ECHO}
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
.if defined(NOPORTDOCS)
|
2006-08-14 18:14:29 +02:00
|
|
|
@${REINPLACE_CMD} -E \
|
2010-04-09 11:09:51 +02:00
|
|
|
-e 's,(SUBDIRS[[:space:]]*=[[:space:]]*src[[:space:]]+tex[[:space:]]+)doc,\1,g' \
|
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
#
|
|
|
|
# Install manpage by hand
|
|
|
|
#
|
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/advi.1 ${MANPREFIX}/man/man1/
|
|
|
|
.endif
|
2006-08-14 18:14:29 +02:00
|
|
|
|
2007-03-14 05:12:32 +01:00
|
|
|
.include <bsd.port.mk>
|