| @@ -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 | |
8 | DISTNAME= clit18src | | 8 | DISTNAME= clit18src |
9 | PKGNAME= convertlit-1.8 | | 9 | PKGNAME= convertlit-1.8 |
10 | PKGREVISION= 1 | | 10 | PKGREVISION= 1 |
11 | CATEGORIES= textproc | | 11 | CATEGORIES= textproc |
12 | MASTER_SITES= ${CONVERTLIT_MASTER_SITES} | | 12 | MASTER_SITES= ${CONVERTLIT_MASTER_SITES} |
13 | EXTRACT_SUFX= .zip | | 13 | EXTRACT_SUFX= .zip |
14 | | | 14 | |
| @@ -32,18 +32,27 @@ SUBST_STAGE.flags= pre-configure | | | @@ -32,18 +32,27 @@ SUBST_STAGE.flags= pre-configure |
32 | SUBST_MESSAGE.flags= Fixing CFLAGS and compiler invocation. | | 32 | SUBST_MESSAGE.flags= Fixing CFLAGS and compiler invocation. |
33 | SUBST_FILES.flags+= clit18/Makefile | | 33 | SUBST_FILES.flags+= clit18/Makefile |
34 | SUBST_SED.flags+= -e 's,^CFLAGS=.*,CFLAGS+=-funsigned-char -Wall -I ../lib -I ../lib/des -I .,' | | 34 | SUBST_SED.flags+= -e 's,^CFLAGS=.*,CFLAGS+=-funsigned-char -Wall -I ../lib -I ../lib/des -I .,' |
35 | SUBST_SED.flags+= -e 's,gcc -o clit .. ../libtommath-0.30/libtommath.a,gcc $$(LDFLAGS) -o clit $$^ -ltommath,' | | 35 | SUBST_SED.flags+= -e 's,gcc -o clit .. ../libtommath-0.30/libtommath.a,gcc $$(LDFLAGS) -o clit $$^ -ltommath,' |
36 | | | 36 | |
37 | RESTRICTED= Possible legal problems | | 37 | RESTRICTED= Possible legal problems |
38 | NO_SRC_ON_FTP= ${RESTRICTED} | | 38 | NO_SRC_ON_FTP= ${RESTRICTED} |
39 | NO_BIN_ON_FTP= ${RESTRICTED} | | 39 | NO_BIN_ON_FTP= ${RESTRICTED} |
40 | NO_SRC_ON_CDROM= ${RESTRICTED} | | 40 | NO_SRC_ON_CDROM= ${RESTRICTED} |
41 | NO_BIN_ON_CDROM= ${RESTRICTED} | | 41 | NO_BIN_ON_CDROM= ${RESTRICTED} |
42 | | | 42 | |
43 | INSTALLATION_DIRS= bin | | 43 | INSTALLATION_DIRS= bin |
44 | | | 44 | |
| | | 45 | .include "../../mk/bsd.prefs.mk" |
| | | 46 | |
45 | do-install: | | 47 | do-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) |
| | | 51 | PKG_FAIL_REASON+= "Please define CONVERTLIT_MASTER_SITES in mk.conf." |
| | | 52 | PKG_FAIL_REASON+= "Alternatively you may download '${DISTNAME}${EXTRACT_SUFX}' manually" |
| | | 53 | PKG_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" |