4cc81c4b9d
Changelog from AN-2021-07-29: - Bourne Shell: "cd -" now prints the new directory. POSIX requires this. Thanks to a report from Robert Elz. - Bourne Shell: "make install" now works wit SuPro Make as well. Previously, the target /opt/schily/xpg4/bin/bosh (a symlink) was not installed because of a missing rule that caused SuPro Make to complain. about a target with no existing rule to make. - Bourne Shell: z/OS only supports the minimum fields from struct rusage that are required by POSIX. We need the same hack as for HAIKU to be able to compile. Thanks to a report from Matthew R. Wilson - Bourne Shell: z/OS does not #define MAXPATHLEN, so we #define it to be 1024 by default Thanks to a report from Matthew R. Wilson
60 lines
1.6 KiB
Makefile
60 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.20 2021/08/06 10:24:18 micha Exp $
|
|
|
|
DISTNAME= schily-2021-07-29
|
|
PKGNAME= pbosh-20210729
|
|
CATEGORIES= shells
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=schilytools/}
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= micha@NetBSD.org
|
|
HOMEPAGE= https://sourceforge.net/projects/schilytools/
|
|
COMMENT= The Schily Bourne Shell
|
|
LICENSE= cddl-1.0
|
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
TOOL_DEPENDS+= smake>=1.3nb11:../../devel/smake
|
|
SMAKE= MAKEFLAGS= smake
|
|
MAKE_FLAGS+= DESTDIR=${DESTDIR} INS_BASE=${PREFIX} DEFMANBASE=. MANDIR=${PKGMANDIR}
|
|
# Honor CPPFLAGS, CFLAGS and LDFLAGS
|
|
MAKE_FLAGS+= CPPOPTX=${CPPFLAGS:Q} COPTX=${CFLAGS:Q} LDOPTX=${LDFLAGS:Q}
|
|
|
|
PKG_SHELL= bin/pbosh
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
# Shared platform specific code for schilytools (provided by smake package)
|
|
.include "../../devel/smake/Makefile.common"
|
|
|
|
do-configure:
|
|
cd ${WRKSRC}/inc && ${SMAKE} ${MAKE_FLAGS}
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && for library in \
|
|
libschily libxtermcap libfind libgetopt libshedit; \
|
|
do \
|
|
cd ${WRKSRC}/$${library} && ${SMAKE} ${MAKE_FLAGS}; \
|
|
done
|
|
cd ${WRKSRC}/pbosh && ${SMAKE} ${MAKE_FLAGS}
|
|
|
|
# Process tables in manpage
|
|
post-build:
|
|
.if !empty(USE_TOOLS:Mtbl)
|
|
cd ${WRKSRC} && ${TBL} sh/sh.1 >sh/pbosh.1.tmp; \
|
|
${MV} -f sh/pbosh.1.tmp sh/pbosh.1
|
|
.else
|
|
cd ${WRKSRC} && ${MV} -f sh/sh.1 sh/pbosh.1
|
|
.endif
|
|
|
|
|
|
do-install:
|
|
cd ${WRKSRC}/sh && \
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pbosh/OBJ/*/pbosh \
|
|
${DESTDIR}${PREFIX}/bin/pbosh; \
|
|
${INSTALL_MAN} ${WRKSRC}/sh/pbosh.1 \
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|