mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
35a7b1218b
- let the s5-blank script evolve into the s5 utility, a bit more powerful, and having a manual page - only run the DOS2UNIX command on the text files, do no damage to images - use COPYTREE_SHARE for the installation - bump PORTREVISION.
46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
# New ports collection makefile for: s5
|
|
# Date created: 28 October 2005
|
|
# Whom: Peter Pentchev <roam@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= s5
|
|
PORTVERSION= 1.1
|
|
PORTREVISION= 2
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= http://meyerweb.com/eric/tools/s5/v/${PORTVERSION}/
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g}
|
|
|
|
MAINTAINER= roam@FreeBSD.org
|
|
COMMENT= A simple HTML-based presentation system
|
|
|
|
BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
|
|
|
|
USE_DOS2UNIX= yes
|
|
DOS2UNIX_REGEX= .*\.(css|htc|html|js|txt)
|
|
USE_ZIP= yes
|
|
WRKSRC= ${WRKDIR}
|
|
NO_BUILD= yes
|
|
|
|
MAN1= s5.1
|
|
MANCOMPRESSED= no
|
|
|
|
S5_DIR= ${PREFIX}/share/${PORTNAME}
|
|
S5_SUBDIRS= pix primer s5-blank ui
|
|
|
|
post-extract:
|
|
cd ${WRKSRC} && ${UNZIP_CMD} s5-blank.zip
|
|
${SED} -e "s,/usr/local,${PREFIX}," ${FILESDIR}/s5.sh > ${WRKDIR}/s5
|
|
${SED} -e "s,/usr/local,${PREFIX}," ${FILESDIR}/s5.1 > ${WRKDIR}/s5.1
|
|
${FIND} ${WRKDIR} -type f -name .DS_Store -delete
|
|
|
|
do-install:
|
|
${MKDIR} ${S5_DIR}
|
|
(cd ${WRKDIR} && \
|
|
${COPYTREE_SHARE} "*.html ${S5_SUBDIRS}" ${S5_DIR})
|
|
${INSTALL_SCRIPT} ${WRKDIR}/s5 ${PREFIX}/bin/s5
|
|
${INSTALL_DATA} ${WRKDIR}/s5.1 ${PREFIX}/man/man1/s5.1
|
|
|
|
.include <bsd.port.mk>
|