pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/multimedia/libdvdcss Fail gracefully if the master sit...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e156d2b001bc
branches: trunk
changeset: 531118:e156d2b001bc
user: tnn <tnn%pkgsrc.org@localhost>
date: Fri Jul 20 11:49:32 2007 +0000
description:
Fail gracefully if the master site is not defined.
diffstat:
multimedia/libdvdcss/Makefile | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (25 lines):
diff -r e1a0c7e0e31e -r e156d2b001bc multimedia/libdvdcss/Makefile
--- a/multimedia/libdvdcss/Makefile Fri Jul 20 11:22:23 2007 +0000
+++ b/multimedia/libdvdcss/Makefile Fri Jul 20 11:49:32 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2006/11/03 06:55:40 joerg Exp $
+# $NetBSD: Makefile,v 1.16 2007/07/20 11:49:32 tnn Exp $
#
# In order to ensure compliance with U.S. and international law, please
# do not modify this file to provide pointers to the source or homepage
@@ -24,8 +24,13 @@
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
-# Do *not* add INTERACTIVE_STATE=fetch. The fetch state is not
-# interactive if LIBDVDCSS_MASTER_SITES is defined.
+.include "../../mk/bsd.prefs.mk"
+
+.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) && !defined(LIBDVDCSS_MASTER_SITES)
+PKG_FAIL_REASON+= "Please define LIBDVDCSS_MASTER_SITES in mk.conf."
+PKG_FAIL_REASON+= "Alternatively you may download '${DISTNAME}${EXTRACT_SUFX}' manually"
+PKG_FAIL_REASON+= "to ${DISTDIR}."
+.endif
USE_LIBTOOL= YES
GNU_CONFIGURE= YES
Home |
Main Index |
Thread Index |
Old Index