aboutsummaryrefslogtreecommitdiff
path: root/misc/quotes
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2013-03-25 04:30:31 +0000
committerEitan Adler <eadler@FreeBSD.org>2013-03-25 04:30:31 +0000
commitfd37d8821fdc48edb0c489017447cb8ee865c5b9 (patch)
treee9502ec9d580c1cb296d2b6e887c07a0737f2b7c /misc/quotes
parent48c429ec3a76441cc6a3dba681f911b9b7eccb7f (diff)
downloadports-fd37d8821fdc48edb0c489017447cb8ee865c5b9.tar.gz
ports-fd37d8821fdc48edb0c489017447cb8ee865c5b9.zip
Notes
Diffstat (limited to 'misc/quotes')
-rw-r--r--misc/quotes/Makefile12
1 files changed, 5 insertions, 7 deletions
diff --git a/misc/quotes/Makefile b/misc/quotes/Makefile
index 3575052bdbc9..fac82ec18f4e 100644
--- a/misc/quotes/Makefile
+++ b/misc/quotes/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: quotes
-# Date created: 9 February 1999
-# Whom: Dima Sivachenko
-#
+# Created by: Dima Sivachenko
# $FreeBSD$
-#
PORTNAME= quotes
DISTVERSION= 1.7-2
@@ -19,6 +15,8 @@ COMMENT= Quote, currency, and Slashdot headline fetcher based on Perl
NO_BUILD= yes
USE_PERL5= yes
+.include <bsd.port.options.mk>
+
post-patch:
@ ${PERL} -pi -e "s:/usr/bin/perl:${PERL}:g" ${WRKSRC}/quotes
@ ${PERL} -pi -e "s:/usr/local/lib/Quotes:${PREFIX}/etc:g" ${WRKSRC}/quotes
@@ -30,11 +28,11 @@ do-install:
@ ${INSTALL_SCRIPT} ${WRKSRC}/quotes ${PREFIX}/bin
@ ${INSTALL_SCRIPT} ${WRKSRC}/quotesmailer ${PREFIX}/bin
@ ${INSTALL_DATA} ${WRKSRC}/sample.quotesrc ${PREFIX}/etc/quotesrc.sample
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@ ${MKDIR} ${DOCSDIR}
@ ${INSTALL_DATA} ${WRKSRC}/quotes.txt ${DOCSDIR}
.endif
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
@ ${MKDIR} ${EXAMPLESDIR}
@ ${INSTALL_DATA} ${WRKSRC}/QuExample.pm ${EXAMPLESDIR}
.endif