summaryrefslogtreecommitdiff
path: root/mbone/beacon/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mbone/beacon/Makefile')
-rw-r--r--mbone/beacon/Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/mbone/beacon/Makefile b/mbone/beacon/Makefile
index dedb8973822..4403acc218c 100644
--- a/mbone/beacon/Makefile
+++ b/mbone/beacon/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.14 2010/08/21 16:35:15 seb Exp $
+# $NetBSD: Makefile,v 1.15 2010/09/24 00:16:24 pettai Exp $
#
DISTNAME= beacon-1.3
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= mbone
MASTER_SITES= ${MASTER_SITE_FREEBSD}
@@ -16,7 +16,7 @@ PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/share/examples/beacon
-USE_TOOLS+= perl
+USE_TOOLS+= tar patch perl
PERL5_CONFIGURE= NO
PERL5_PACKLIST= auto/Net/Multicast/Beacon/.packlist
@@ -29,5 +29,15 @@ SUBST_SED.conf= -e s,@prefix@/etc,${PKG_SYSCONFDIR},
CONF_FILES+= ${PREFIX}/share/examples/beacon/beacon.conf \
${PKG_SYSCONFDIR}/beacon.conf
+.if ${MACHINE_ARCH} == "amd64"
+CFLAGS+= -fPIC
+.endif
+
+post-extract:
+ cd ${WRKSRC} && ${TAR} -zxvf common-1.2.16.tar.gz
+
+pre-patch:
+ cd ${WRKSRC} && ${PATCH} -p0 < common-beacon.patch
+
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"