diff options
Diffstat (limited to 'www/scloader/Makefile')
-rw-r--r-- | www/scloader/Makefile | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/www/scloader/Makefile b/www/scloader/Makefile new file mode 100644 index 000000000000..c75166b6cc5e --- /dev/null +++ b/www/scloader/Makefile @@ -0,0 +1,49 @@ +# New ports collection makefile for: scloader +# Date created: 2007-04-13 +# Whom: Radim Kolar <hsn@sanatana.dharma> +# +# $FreeBSD$ +# + +PORTNAME= scloader +PORTVERSION= 0.28 +#PORTREVISION= 0 +CATEGORIES= www java +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} +DISTNAME= loader${PORTVERSION:C/\.//} + +MAINTAINER= hsn@sendmail.cz +COMMENT= Configurable web graber + +USE_ZIP= yes +USE_JAVA= yes +USE_DOS2UNIX= yes + +NO_WRKSUBDIR= yes +NO_BUILD= yes + +PLIST_FILES= bin/${PORTNAME} %%JAVAJARDIR%%/scloader.jar +PORTDOCS= README history todo + +DOS2UNIX_REGEX= .+\.[^j][^a][^r]$ + +do-configure: + ${SED} -e "s|%%JAVA%%|${LOCALBASE}/bin/java|" \ + -e "s|%%JAVAJARDIR%%|${JAVAJARDIR}|" \ + ${FILESDIR}/${PORTNAME}.sh > ${WRKDIR}/${PORTNAME} + +do-install: + ${INSTALL} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/scloader.jar ${JAVAJARDIR} +.ifndef NOPORTDOCS + ${MKDIR} ${DOCSDIR} +.for i in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} +.endfor + ${INSTALL_DATA} ${WRKSRC}/doc/manual.html ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/samples/loader.cnf ${DOCSDIR} +PORTDOCS+= manual.html loader.cnf +.endif + +.include <bsd.port.mk> |