diff options
author | tnn <tnn@pkgsrc.org> | 2015-09-17 14:06:12 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2015-09-17 14:06:12 +0000 |
commit | 40ddef5bb5c878c0c19aae206135fe67b83c7c1c (patch) | |
tree | f15a644bff432d16c10a5071d9dc34a6cb9a93ee /textproc | |
parent | 40177077d9a4275e8c29b9e2b8b17d780ba28f84 (diff) | |
download | pkgsrc-40ddef5bb5c878c0c19aae206135fe67b83c7c1c.tar.gz |
Improve error message when distfile missing, like multimedia/libdvdcss.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/convertlit/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/textproc/convertlit/Makefile b/textproc/convertlit/Makefile index 8ff72b8c01b..90ed154c272 100644 --- a/textproc/convertlit/Makefile +++ b/textproc/convertlit/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2012/10/25 06:55:45 asau Exp $ +# $NetBSD: Makefile,v 1.11 2015/09/17 14:06:12 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 @@ -42,8 +42,17 @@ NO_BIN_ON_CDROM= ${RESTRICTED} INSTALLATION_DIRS= bin +.include "../../mk/bsd.prefs.mk" + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/clit18/clit ${DESTDIR}${PREFIX}/bin/convertlit +.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) && !defined(CONVERTLIT_MASTER_SITES) +PKG_FAIL_REASON+= "Please define CONVERTLIT_MASTER_SITES in mk.conf." +PKG_FAIL_REASON+= "Alternatively you may download '${DISTNAME}${EXTRACT_SUFX}' manually" +PKG_FAIL_REASON+= "to ${DISTDIR}." +.endif + + .include "../../math/ltm/buildlink3.mk" .include "../../mk/bsd.pkg.mk" |