aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-05-05 06:01:18 +0800
committerbapt <bapt@FreeBSD.org>2013-05-05 06:01:18 +0800
commitb767a6372c02a9be57fefebfa9a233a615a58158 (patch)
treef752d5a9b5113b071dddbfdde35868775ca09b55
parent885aa6be03ee99d20b371fc80668e29b48b9d3fc (diff)
downloadfreebsd-ports-gnome-b767a6372c02a9be57fefebfa9a233a615a58158.tar.gz
freebsd-ports-gnome-b767a6372c02a9be57fefebfa9a233a615a58158.tar.zst
freebsd-ports-gnome-b767a6372c02a9be57fefebfa9a233a615a58158.zip
Fix build with bmake
-rw-r--r--www/srg/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/www/srg/Makefile b/www/srg/Makefile
index b5cb72ec2992..fb593fc70ee6 100644
--- a/www/srg/Makefile
+++ b/www/srg/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: srg
-# Date created: 28 June 2004
-# Whom: Dmitry Semkin <lslarry@gmail.com>
-#
+# Created by: Dmitry Semkin <lslarry@gmail.com>
# $FreeBSD$
-#
PORTNAME= srg
PORTVERSION= 1.3.6
@@ -17,19 +13,25 @@ COMMENT= A Squid Report Generator
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
+.if defined(.PARSEDIR)
+USE_GMAKE= yes
+.endif
+
USE_BZIP2= yes
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= yes
MAN1= srg.1
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} -e \
'/CPPFLAGS/s|-I/usr/local/include|| ; \
/LDFLAGS/s|-L/usr/local/lib||' ${WRKSRC}/configure
post-install:
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
.for ex in srg.daily srg.monthly srg.weekly
${INSTALL_DATA} ${WRKSRC}/examples/${ex} ${EXAMPLESDIR}