2005-10-28 18:17:56 -04:00
|
|
|
# New ports collection makefile for: s5
|
|
|
|
# Date created: 28 October 2005
|
|
|
|
# Whom: Peter Pentchev <roam@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= s5
|
|
|
|
PORTVERSION= 1.1
|
2008-06-12 10:56:38 -04:00
|
|
|
PORTREVISION= 2
|
2005-10-28 18:17:56 -04:00
|
|
|
CATEGORIES= textproc
|
2008-06-04 04:52:15 -04:00
|
|
|
MASTER_SITES= http://meyerweb.com/eric/tools/s5/v/${PORTVERSION}/
|
2005-10-28 18:17:56 -04:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g}
|
|
|
|
|
|
|
|
MAINTAINER= roam@FreeBSD.org
|
|
|
|
COMMENT= A simple HTML-based presentation system
|
|
|
|
|
2005-10-31 19:16:47 -05:00
|
|
|
BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
|
|
|
|
|
2006-07-14 07:54:50 -04:00
|
|
|
USE_DOS2UNIX= yes
|
2008-06-12 10:56:38 -04:00
|
|
|
DOS2UNIX_REGEX= .*\.(css|htc|html|js|txt)
|
2005-10-28 18:17:56 -04:00
|
|
|
USE_ZIP= yes
|
|
|
|
WRKSRC= ${WRKDIR}
|
2006-07-14 07:54:50 -04:00
|
|
|
NO_BUILD= yes
|
2005-10-28 18:17:56 -04:00
|
|
|
|
2008-06-12 10:56:38 -04:00
|
|
|
MAN1= s5.1
|
|
|
|
MANCOMPRESSED= no
|
|
|
|
|
2005-10-28 18:17:56 -04:00
|
|
|
S5_DIR= ${PREFIX}/share/${PORTNAME}
|
|
|
|
S5_SUBDIRS= pix primer s5-blank ui
|
|
|
|
|
2006-07-14 07:54:50 -04:00
|
|
|
post-extract:
|
2005-10-28 18:17:56 -04:00
|
|
|
cd ${WRKSRC} && ${UNZIP_CMD} s5-blank.zip
|
2008-06-12 10:56:38 -04:00
|
|
|
${SED} -e "s,/usr/local,${PREFIX}," ${FILESDIR}/s5.sh > ${WRKDIR}/s5
|
|
|
|
${SED} -e "s,/usr/local,${PREFIX}," ${FILESDIR}/s5.1 > ${WRKDIR}/s5.1
|
2005-10-31 19:16:47 -05:00
|
|
|
${FIND} ${WRKDIR} -type f -name .DS_Store -delete
|
2005-10-28 18:17:56 -04:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${S5_DIR}
|
2008-06-12 10:56:38 -04:00
|
|
|
(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
|
2005-10-28 18:17:56 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|