081c0f8957
of an emulated operating system. Instead of proliferating things like SUSE_VERSION_REQD, NETBSD_VERSION_REQD, SOLARIS_VERSION_REQD, etc., a package can say: EMUL_REQD= suse>=9.1 netbsd>=2.0 solaris>=10 all in one, succinct line.
55 lines
1.8 KiB
Text
55 lines
1.8 KiB
Text
# $NetBSD: Makefile.netbsd-i386,v 1.2 2007/08/23 18:20:30 jlam Exp $
|
|
|
|
DISTNAME= rarbsd
|
|
PKGNAME= rar-2.02
|
|
MASTER_SITES= ftp://ftp.elf.stuba.sk/pub/pc/pack/
|
|
EXTRACT_SUFX= .sfx
|
|
|
|
EMUL_REQD= netbsd>=1.2
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
EXTRACT_CMD= exec "$$extract_file" >/dev/null
|
|
|
|
DATADIR= ${PREFIX}/share/rar
|
|
DOCDIR= ${PREFIX}/share/doc/rar
|
|
|
|
INSTALLATION_DIRS= ${DATADIR} ${DOCDIR}
|
|
|
|
CHECK_KSYMS_CMD= ${SETENV} ECHO=${TOOLS_ECHO:Q} \
|
|
GREP=${TOOLS_GREP:Q} \
|
|
GZIP_CMD=${TOOLS_GZIP_CMD:Q} \
|
|
NM=${NM:Q} RM=${TOOLS_RM:Q} \
|
|
TMPDIR=${WRKDIR:Q} \
|
|
${SH} ${FILESDIR}/check-ksyms.sh
|
|
|
|
pre-extract:
|
|
${RUN} set -e; \
|
|
if ${CHECK_KSYMS_CMD} compat_12 exec_nomid exec_aout; then \
|
|
${TEST} -x ${DISTDIR}/${DISTFILES:Q} || \
|
|
${CHMOD} a+x ${DISTDIR:Q}/${DISTFILES:Q}; \
|
|
else \
|
|
${ECHO} "==========================================================================="; \
|
|
${ECHO} "In order to extract this package," \
|
|
"you must have have booted from a"; \
|
|
${ECHO} "kernel with options COMPAT_NOMID and" \
|
|
"COMPAT_12, and EXEC_AOUT if on"; \
|
|
${ECHO} "an ELF system."; \
|
|
${ECHO} "==========================================================================="; \
|
|
${FALSE}; \
|
|
fi
|
|
|
|
# DOS to Unix line conversion
|
|
do-build:
|
|
${RUN} set -e; set -u; \
|
|
cd ${WRKSRC:Q} && for i in *.Txt *.Lst; do \
|
|
${TR} -d '\015' < "$$i" > "$$i".tmp; \
|
|
${MV} -f "$$i".tmp "$$i"; \
|
|
done
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC:Q}/rar ${PREFIX:Q}/bin/rar
|
|
${INSTALL_DATA} ${WRKSRC:Q}/RarFiles.Lst ${DATADIR:Q}/rarfiles.lst
|
|
${INSTALL_DATA} ${WRKSRC:Q}/default.sfx ${DATADIR:Q}/default.sfx
|
|
${INSTALL_DATA} ${WRKSRC:Q}/Dos.SFX ${DATADIR:Q}/dos.sfx
|
|
cd ${WRKSRC:Q} && ${INSTALL_MAN} Rar.Txt Rar_FAQ.txt \
|
|
TechNote.Txt License.Txt Internet.Txt ${DOCDIR:Q}
|