2021-11-19 12:24:28 +01:00
|
|
|
# $NetBSD: Makefile,v 1.21 2021/11/19 11:24:28 micha Exp $
|
2018-11-10 20:59:54 +01:00
|
|
|
|
2021-11-19 12:24:28 +01:00
|
|
|
DISTNAME= schily-2021-09-18
|
|
|
|
PKGNAME= pbosh-20210918
|
2018-11-10 20:59:54 +01:00
|
|
|
CATEGORIES= shells
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=schilytools/}
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
2020-07-17 13:34:59 +02:00
|
|
|
MAINTAINER= micha@NetBSD.org
|
2020-04-18 17:54:40 +02:00
|
|
|
HOMEPAGE= https://sourceforge.net/projects/schilytools/
|
2018-11-10 20:59:54 +01:00
|
|
|
COMMENT= The Schily Bourne Shell
|
|
|
|
LICENSE= cddl-1.0
|
|
|
|
|
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
|
2020-06-05 19:26:43 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2020-09-28 12:40:25 +02:00
|
|
|
TOOL_DEPENDS+= smake>=1.3nb11:../../devel/smake
|
2018-11-10 20:59:54 +01:00
|
|
|
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:
|
2020-06-05 19:26:43 +02:00
|
|
|
.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
|
|
|
|
|
2018-11-10 20:59:54 +01:00
|
|
|
do-install:
|
|
|
|
cd ${WRKSRC}/sh && \
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pbosh/OBJ/*/pbosh \
|
|
|
|
${DESTDIR}${PREFIX}/bin/pbosh; \
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/sh/pbosh.1 \
|
2020-03-04 12:44:13 +01:00
|
|
|
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
2018-11-10 20:59:54 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|