| @@ -1,36 +1,41 @@ | | | @@ -1,36 +1,41 @@ |
1 | # $NetBSD: Makefile,v 1.17 2014/10/09 14:07:00 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.18 2017/08/19 00:25:19 jlam Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= sformat-3.5 | | 4 | DISTNAME= sformat-3.5 |
5 | PKGREVISION= 1 | | 5 | PKGREVISION= 1 |
6 | CATEGORIES= sysutils | | 6 | CATEGORIES= sysutils |
7 | MASTER_SITES= ftp://ftp.berlios.de/pub/sformat/ | | 7 | MASTER_SITES= ftp://ftp.berlios.de/pub/sformat/ |
8 | | | 8 | |
9 | MAINTAINER= Andreas.Hallmann@tiscali.de | | 9 | MAINTAINER= Andreas.Hallmann@tiscali.de |
10 | HOMEPAGE= http://freshmeat.net/projects/sformat | | 10 | HOMEPAGE= http://freshmeat.net/projects/sformat |
11 | COMMENT= SCSI disk maintainance, formating, and ultimative repair tool | | 11 | COMMENT= SCSI disk maintainance, formating, and ultimative repair tool |
12 | | | 12 | |
13 | .include "../../mk/bsd.prefs.mk" | | 13 | .include "../../mk/bsd.prefs.mk" |
14 | | | 14 | |
15 | USE_TOOLS+= gmake | | 15 | USE_TOOLS+= gmake |
16 | TBL?= tbl | | 16 | TBL?= tbl |
17 | | | 17 | |
18 | # avoid picking up a bad ${ARCH} during the build | | 18 | # avoid picking up a bad ${ARCH} during the build |
19 | MAKE_ENV+= ARCH="" | | 19 | MAKE_ENV+= ARCH="" |
20 | MAKE_ENV+= MAKEPROG="gmake" | | 20 | MAKE_ENV+= MAKEPROG="gmake" |
21 | MAKE_ENV+= COPTX=${CFLAGS:M*:Q} | | 21 | MAKE_ENV+= COPTX=${CFLAGS:M*:Q} |
22 | MAKE_ENV+= LDOPTX=${LDFLAGS:M*:Q} | | 22 | MAKE_ENV+= LDOPTX=${LDFLAGS:M*:Q} |
23 | MAKE_FLAGS+= INS_BASE=${DESTDIR}${LOCALBASE:Q} # won't work in MAKE_ENV! | | 23 | |
| | | 24 | # Override settings in Makefiles by passing additional settings |
| | | 25 | # on the command-line. |
| | | 26 | # |
| | | 27 | MAKE_FLAGS+= INS_BASE=${DESTDIR}${LOCALBASE:Q} |
| | | 28 | MAKE_FLAGS+= MANDIR=${PKGMANDIR:Q} |
24 | | | 29 | |
25 | # if we're using a gcc which is named gcc, we need to set CCOM=gcc | | 30 | # if we're using a gcc which is named gcc, we need to set CCOM=gcc |
26 | # in MAKE_ENV so the make infrastructure picks the right options. | | 31 | # in MAKE_ENV so the make infrastructure picks the right options. |
27 | .if !empty(CC:M*gcc*) | | 32 | .if !empty(CC:M*gcc*) |
28 | MAKE_ENV+= CCOM="gcc" | | 33 | MAKE_ENV+= CCOM="gcc" |
29 | .endif | | 34 | .endif |
30 | | | 35 | |
31 | INSTALLATION_DIRS= bin include lib ${PKGMANDIR}/man5 ${PKGMANDIR}/man8 | | 36 | INSTALLATION_DIRS= bin include lib ${PKGMANDIR}/man5 ${PKGMANDIR}/man8 |
32 | | | 37 | |
33 | post-extract: | | 38 | post-extract: |
34 | ${CP} ${WRKSRC}/RULES/os-freebsd.id ${WRKSRC}/RULES/os-dragonfly.id | | 39 | ${CP} ${WRKSRC}/RULES/os-freebsd.id ${WRKSRC}/RULES/os-dragonfly.id |
35 | ${CP} ${WRKSRC}/RULES/os-freebsd.def ${WRKSRC}/RULES/os-dragonfly.def | | 40 | ${CP} ${WRKSRC}/RULES/os-freebsd.def ${WRKSRC}/RULES/os-dragonfly.def |
36 | .for x in amd64 macppc | | 41 | .for x in amd64 macppc |