| @@ -1,47 +1,46 @@ | | | @@ -1,47 +1,46 @@ |
1 | # $NetBSD: Makefile,v 1.31 2021/11/13 06:53:10 kim Exp $ | | 1 | # $NetBSD: Makefile,v 1.32 2021/11/14 21:53:15 mrg Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | .include "../../shells/tcsh/Makefile.common" | | | |
5 | | | | |
6 | # FIXME: This is because of PREFIX=/ below. | | 4 | # FIXME: This is because of PREFIX=/ below. |
7 | CHECK_FILES_SUPPORTED= no | | 5 | CHECK_FILES_SUPPORTED= no |
8 | NOT_FOR_UNPRIVILEGED= yes | | 6 | NOT_FOR_UNPRIVILEGED= yes |
9 | | | 7 | |
10 | PKGNAME= standalone-${DISTNAME} | | 8 | PKGNAME= standalone-${DISTNAME} |
| | | 9 | PKGREVISION= 0 # ALWAYS needs to be set; 0 if none. |
11 | | | 10 | |
12 | WRKSRC= ${WRKDIR}/${DISTNAME} | | 11 | WRKSRC= ${WRKDIR}/${DISTNAME} |
13 | PATCHDIR= ${.CURDIR}/../../shells/tcsh/patches | | 12 | PATCHDIR= ${.CURDIR}/../../shells/tcsh/patches |
14 | | | 13 | |
15 | # This package only makes sense on platforms that don't themselves ship tcsh | | 14 | # This package only makes sense on platforms that don't themselves ship tcsh |
16 | # in /bin. Otherwise it clobbers the native copy, which really isn't what | | 15 | # in /bin. Otherwise it clobbers the native copy, which really isn't what |
17 | # anyone wants. | | 16 | # anyone wants. |
18 | ONLY_FOR_PLATFORM+= NetBSD-*-* OpenBSD-*-* SunOS-*-* | | 17 | ONLY_FOR_PLATFORM+= NetBSD-*-* OpenBSD-*-* SunOS-*-* |
19 | | | 18 | |
20 | .include "../../mk/bsd.prefs.mk" | | 19 | .include "../../mk/bsd.prefs.mk" |
21 | | | 20 | |
22 | .if ${OS_VARIANT} == "OmniOS" | | 21 | .if ${OS_VARIANT} == "OmniOS" |
23 | NOT_FOR_PLATFORM+= SunOS-*-* | | 22 | NOT_FOR_PLATFORM+= SunOS-*-* |
24 | .endif | | 23 | .endif |
25 | | | 24 | |
26 | INSTALLATION_DIRS+= bin | | 25 | +# XXX This should use Makefile.common, not Makefile |
| | | 26 | .include "../../shells/tcsh/Makefile" |
| | | 27 | |
27 | INSTALLATION_DIRS+= usr/share/man/man1 | | 28 | INSTALLATION_DIRS+= usr/share/man/man1 |
28 | | | 29 | |
29 | COMMENT:= Standalone version of the Extended C-shell | | 30 | COMMENT:= Standalone version of the Extended C-shell |
30 | MAINTAINER= agc@NetBSD.org | | 31 | MAINTAINER= agc@NetBSD.org |
31 | | | 32 | |
32 | # FIXME: Packages shall only install into ${LOCALBASE} or a subdirectory. | | 33 | # FIXME: Packages shall only install into ${LOCALBASE} or a subdirectory. |
33 | PREFIX= / | | 34 | PREFIX= / |
34 | NOT_FOR_BULK_PLATFORM= *-*-* | | 35 | NOT_FOR_BULK_PLATFORM= *-*-* |
35 | | | 36 | |
36 | NLSDIR= usr/share/nls | | 37 | NLSDIR= usr/share/nls |
37 | CONFIGURE_ARGS+= --prefix=${PREFIX:Q} | | 38 | CONFIGURE_ARGS+= --prefix=${PREFIX:Q} |
38 | CONFIGURE_ARGS+= --bindir=/bin | | 39 | CONFIGURE_ARGS+= --bindir=/bin |
39 | CONFIGURE_ARGS+= --mandir=/usr/share/man | | 40 | CONFIGURE_ARGS+= --mandir=/usr/share/man |
40 | | | 41 | |
41 | DISTINFO_FILE= ${.CURDIR}/../../shells/tcsh/distinfo | | 42 | DISTINFO_FILE= ${.CURDIR}/../../shells/tcsh/distinfo |
42 | | | 43 | |
43 | .if ${OPSYS} != "SunOS" | | 44 | .if ${OPSYS} != "SunOS" |
44 | LDFLAGS+= -static | | 45 | LDFLAGS+= -static |
45 | .endif | | 46 | .endif |
46 | | | | |
47 | .include "../../mk/bsd.pkg.mk" | | | |