aboutsummaryrefslogtreecommitdiff
path: root/www/llgal
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2014-07-03 03:11:21 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2014-07-03 03:11:21 +0000
commit924c04296fd21621f6485a5e4106eb0a4e8efdce (patch)
tree0326e6dad604dd90258e1c4cc1000b1c8f8367fc /www/llgal
parentb27039ba8bfa7868991dccdafae4261e9df16ce9 (diff)
downloadports-924c04296fd21621f6485a5e4106eb0a4e8efdce.tar.gz
ports-924c04296fd21621f6485a5e4106eb0a4e8efdce.zip
Notes
Diffstat (limited to 'www/llgal')
-rw-r--r--www/llgal/Makefile27
-rw-r--r--www/llgal/pkg-plist2
2 files changed, 15 insertions, 14 deletions
diff --git a/www/llgal/Makefile b/www/llgal/Makefile
index d67a27c3c7a3..057fce4ac632 100644
--- a/www/llgal/Makefile
+++ b/www/llgal/Makefile
@@ -23,13 +23,12 @@ RUN_DEPENDS= p5-Image-Size>=0:${PORTSDIR}/graphics/p5-Image-Size \
p5-Image-ExifTool>=0:${PORTSDIR}/graphics/p5-Image-ExifTool \
convert:${PORTSDIR}/graphics/ImageMagick
-USES= gettext perl5 gmake tar:bzip2
+USES= gettext perl5 gmake tar:bzip2 shebangfix
+SHEBANG_FILES= llgal.in
+USE_PERL5= run fixpacklist
+OPTIONS_DEFINE= DOCS
-MAN1= llgal.1
-MAN5= llgalrc.5
-
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
post-patch:
${REINPLACE_CMD} -e "s,^PREFIX,#PREFIX," ${WRKSRC}/Makefile
@@ -40,13 +39,13 @@ post-configure:
${PERL5} -pi -e 's/ doc_(perl|site|\$$\(INSTALLDIRS\))_install//' ${WRKSRC}/lib/Makefile
post-install:
- ${INSTALL_DATA} ${WRKSRC}/llgal.1 ${MAN1PREFIX}/man/man1
- ${INSTALL_DATA} ${WRKSRC}/llgalrc.5 ${MAN5PREFIX}/man/man5
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/doc/llgalrc ${DOCSDIR}
- @(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} examples ${DOCSDIR})
+ ${INSTALL_DATA} ${WRKSRC}/llgal.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
+ ${INSTALL_DATA} ${WRKSRC}/llgalrc.5 ${STAGEDIR}${MAN5PREFIX}/man/man5
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/llgalrc ${STAGEDIR}${DOCSDIR}
+ @(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} examples ${STAGEDIR}${DOCSDIR})
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/www/llgal/pkg-plist b/www/llgal/pkg-plist
index b5f8c44a1109..718b6f6bdf05 100644
--- a/www/llgal/pkg-plist
+++ b/www/llgal/pkg-plist
@@ -4,6 +4,8 @@ bin/llgal
%%SITE_PERL%%/Llgal/Templates.pm
%%SITE_PERL%%/Llgal/Utils.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Llgal/.packlist
+man/man1/llgal.1.gz
+man/man5/llgalrc.5.gz
%%PORTDOCS%%%%DOCSDIR%%/examples/dynamic_comments_in_slides/README
%%PORTDOCS%%%%DOCSDIR%%/examples/dynamic_comments_in_slides/add_comment.php
%%PORTDOCS%%%%DOCSDIR%%/examples/dynamic_comments_in_slides/slidetemplate.html