summaryrefslogtreecommitdiff
path: root/textproc/ppower4/Makefile
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2003-11-10 19:40:17 +0000
committerGreg Lewis <glewis@FreeBSD.org>2003-11-10 19:40:17 +0000
commit1cadd7bab1ce4c56f2c32e40bb02c9a73edec068 (patch)
tree549560fdf870e768ee9c7967fa0a95d5d4c4abd4 /textproc/ppower4/Makefile
parent- Fix build on -current (diff)
. Add port of PPower4:
PPower4 is used to post process presentations in PDF format which were prepared using (La)TeX to add dynamic effects. The PDF files can be created with pdf(la)tex, v(la)tex or with standard LaTeX and then converted to PDF with dvipdfm. WWW: http://www-sp.iti.informatik.tu-darmstadt.de/software/ppower4/ PR: 54335 Submitted by: Stefan Walter <sw@gegenunendlich.de>
Notes
Notes: svn path=/head/; revision=93689
Diffstat (limited to 'textproc/ppower4/Makefile')
-rw-r--r--textproc/ppower4/Makefile66
1 files changed, 66 insertions, 0 deletions
diff --git a/textproc/ppower4/Makefile b/textproc/ppower4/Makefile
new file mode 100644
index 000000000000..c50c82c0b9e4
--- /dev/null
+++ b/textproc/ppower4/Makefile
@@ -0,0 +1,66 @@
+# New ports collection makefile for: ppower4
+# Date created: 07 November 2003
+# Whom: Stefan Walter <sw@gegenunendlich.de>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ppower4
+PORTVERSION= 0.9.4
+CATEGORIES= textproc java
+MASTER_SITES= http://www-sp.iti.informatik.tu-darmstadt.de/software/ppower4/
+DISTFILES= pp4sty.zip pp4p.jar manual.pdf leveldemo.zip
+DIST_SUBDIR= ${PORTNAME}
+EXTRACT_ONLY= pp4sty.zip leveldemo.zip
+
+MAINTAINER= sw@gegenunendlich.de
+COMMENT= Post processor for PDF presentations made with (La)TeX
+
+RUN_DEPENDS= latex:${PORTSDIR}/print/teTeX
+
+USE_ZIP= yes
+USE_JAVA= 1.3+
+NO_BUILD= yes
+NO_BUILD_DEPENDS_JAVA= yes
+NO_WRKSUBDIR= yes
+
+JAR_DIR= ${JAVAJARDIR}/${PORTNAME}
+STY_DIR= ${PREFIX}/share/texmf/tex/latex/${PORTNAME}
+STY_FILES= ${WRKDIR}/pause.sty ${WRKDIR}/background.sty \
+ ${WRKDIR}/pp4link.sty ${WRKDIR}/mpmulti.sty
+EXAMPLE_FILES= ${WRKDIR}/leveldemo.tex
+.for i in 1 2 3 4 5 6 7
+EXAMPLE_FILES+= ${WRKDIR}/example.${i}
+.endfor
+PLIST_SUB= STY_DIR="${STY_DIR:S,^${PREFIX}/,,}" \
+ JAR_DIR="${JAR_DIR:S,^${PREFIX}/,,}"
+
+post-patch:
+# prepare wrapper script
+ @${SED} -e "s,%%JAVAVM%%,${LOCALBASE}/bin/javavm,; \
+ s,%%JARFILE%%,${JAR_DIR}/pp4p.jar," \
+ ${FILESDIR}/ppower4 > ${WRKDIR}/ppower4
+
+do-install:
+# install docs?
+.if !defined(NOPORTDOCS)
+# install docs...
+ @${MKDIR} ${DOCSDIR}
+ @${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/manual.pdf ${DOCSDIR}
+# ...and the examples, too!
+ @${MKDIR} ${EXAMPLESDIR}
+ @${INSTALL_DATA} ${EXAMPLE_FILES} ${EXAMPLESDIR}
+.endif
+# install data files
+ @${MKDIR} ${STY_DIR}
+ @${INSTALL_DATA} ${STY_FILES} ${STY_DIR}
+ @${MKDIR} ${JAR_DIR}
+ @${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/pp4p.jar ${JAR_DIR}
+# install wrapper script
+ @${INSTALL_SCRIPT} ${WRKDIR}/ppower4 ${PREFIX}/bin/ppower4
+
+post-install:
+ ${SETENV} LOCALBASE=${LOCALBASE} ${SH} ${PKGDIR}/pkg-install \
+ ${PKGNAME} POST-INSTALL
+
+.include <bsd.port.mk>