Thu Sep 17 14:06:12 2015 UTC ()
Improve error message when distfile missing, like multimedia/libdvdcss.


(tnn)
diff -r1.10 -r1.11 pkgsrc/textproc/convertlit/Makefile

cvs diff -r1.10 -r1.11 pkgsrc/textproc/convertlit/Makefile (expand / switch to unified diff)

--- pkgsrc/textproc/convertlit/Makefile 2012/10/25 06:55:45 1.10
+++ pkgsrc/textproc/convertlit/Makefile 2015/09/17 14:06:12 1.11
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.10 2012/10/25 06:55:45 asau Exp $ 1# $NetBSD: Makefile,v 1.11 2015/09/17 14:06:12 tnn Exp $
2# 2#
3# In order to ensure compliance with U.S. and international law, please 3# In order to ensure compliance with U.S. and international law, please
4# do not modify this file to provide pointers to the source or homepage 4# do not modify this file to provide pointers to the source or homepage
5# for this software or submit any PRs telling us the contents of the 5# for this software or submit any PRs telling us the contents of the
6# HOMEPAGE or MASTER_SITES definitions in this Makefile. 6# HOMEPAGE or MASTER_SITES definitions in this Makefile.
7 7
8DISTNAME= clit18src 8DISTNAME= clit18src
9PKGNAME= convertlit-1.8 9PKGNAME= convertlit-1.8
10PKGREVISION= 1 10PKGREVISION= 1
11CATEGORIES= textproc 11CATEGORIES= textproc
12MASTER_SITES= ${CONVERTLIT_MASTER_SITES} 12MASTER_SITES= ${CONVERTLIT_MASTER_SITES}
13EXTRACT_SUFX= .zip 13EXTRACT_SUFX= .zip
14 14
@@ -32,18 +32,27 @@ SUBST_STAGE.flags= pre-configure @@ -32,18 +32,27 @@ SUBST_STAGE.flags= pre-configure
32SUBST_MESSAGE.flags= Fixing CFLAGS and compiler invocation. 32SUBST_MESSAGE.flags= Fixing CFLAGS and compiler invocation.
33SUBST_FILES.flags+= clit18/Makefile 33SUBST_FILES.flags+= clit18/Makefile
34SUBST_SED.flags+= -e 's,^CFLAGS=.*,CFLAGS+=-funsigned-char -Wall -I ../lib -I ../lib/des -I .,' 34SUBST_SED.flags+= -e 's,^CFLAGS=.*,CFLAGS+=-funsigned-char -Wall -I ../lib -I ../lib/des -I .,'
35SUBST_SED.flags+= -e 's,gcc -o clit .. ../libtommath-0.30/libtommath.a,gcc $$(LDFLAGS) -o clit $$^ -ltommath,' 35SUBST_SED.flags+= -e 's,gcc -o clit .. ../libtommath-0.30/libtommath.a,gcc $$(LDFLAGS) -o clit $$^ -ltommath,'
36 36
37RESTRICTED= Possible legal problems 37RESTRICTED= Possible legal problems
38NO_SRC_ON_FTP= ${RESTRICTED} 38NO_SRC_ON_FTP= ${RESTRICTED}
39NO_BIN_ON_FTP= ${RESTRICTED} 39NO_BIN_ON_FTP= ${RESTRICTED}
40NO_SRC_ON_CDROM= ${RESTRICTED} 40NO_SRC_ON_CDROM= ${RESTRICTED}
41NO_BIN_ON_CDROM= ${RESTRICTED} 41NO_BIN_ON_CDROM= ${RESTRICTED}
42 42
43INSTALLATION_DIRS= bin 43INSTALLATION_DIRS= bin
44 44
 45.include "../../mk/bsd.prefs.mk"
 46
45do-install: 47do-install:
46 ${INSTALL_PROGRAM} ${WRKSRC}/clit18/clit ${DESTDIR}${PREFIX}/bin/convertlit 48 ${INSTALL_PROGRAM} ${WRKSRC}/clit18/clit ${DESTDIR}${PREFIX}/bin/convertlit
47 49
 50.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) && !defined(CONVERTLIT_MASTER_SITES)
 51PKG_FAIL_REASON+= "Please define CONVERTLIT_MASTER_SITES in mk.conf."
 52PKG_FAIL_REASON+= "Alternatively you may download '${DISTNAME}${EXTRACT_SUFX}' manually"
 53PKG_FAIL_REASON+= "to ${DISTDIR}."
 54.endif
 55
 56
48.include "../../math/ltm/buildlink3.mk" 57.include "../../math/ltm/buildlink3.mk"
49.include "../../mk/bsd.pkg.mk" 58.include "../../mk/bsd.pkg.mk"