diff options
author | tnn <tnn@pkgsrc.org> | 2007-07-20 11:49:32 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2007-07-20 11:49:32 +0000 |
commit | c08d1e596f4e9278bc4a5226374bed4dff086f4c (patch) | |
tree | ff4bf887fa4b0a40a432a049d94dd95e30f8bdd4 /multimedia | |
parent | 843590cd7612b5c53c66626031364340b29d1944 (diff) | |
download | pkgsrc-c08d1e596f4e9278bc4a5226374bed4dff086f4c.tar.gz |
Fail gracefully if the master site is not defined.
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/libdvdcss/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/multimedia/libdvdcss/Makefile b/multimedia/libdvdcss/Makefile index 36ca9bc2b26..766688475b6 100644 --- a/multimedia/libdvdcss/Makefile +++ b/multimedia/libdvdcss/Makefile @@ -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_BIN_ON_FTP= ${RESTRICTED} 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 |