Changeset 3606

Show
Ignore:
Timestamp:
10/22/07 22:18:05 (4 years ago)
Author:
tg
Message:

part 1 of what wbx@ and I had planned long ago (by a suggestion of
me): track installed manual pages, both source and catmans, tested
with zlib and libtasn1 for now
also introduces an ADK configuration option

goal is now to format the manpages to catman and then convert them
all to HTML using the script MirBSD inherited from ekkoBSD quite a
few years ago (I hacked on it the last few days again, so I feel a
bit like doing some spare-time non-paid FreeWRT hacking again too)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/Config.in

    r3424 r3606  
    185185          Locale support weighs in about 50K on mips. 
    186186 
     187# Note: 
     188# The software to convert the manual pages to HTML requires you to reproduce 
     189# the following advertising clause: 
     190#       This product includes material provided by Thorsten Glaser. 
     191# If your FreeWRT derivate does not do this, you must remove this option. 
     192config FWRT_MANPAGES 
     193        bool "Collect package manpages" 
     194        default n 
     195        help 
     196          This will collect manual pages installed by packages on the 
     197          build system and produce HTML equivalents of them. 
     198 
    187199endmenu 
    188200 
  • trunk/freewrt/mk/pkg-bottom.mk

    r3179 r3606  
    130130            DESTDIR='${WRKINST}' ${FAKE_FLAGS} ${INSTALL_TARGET} 
    131131else ifneq ($(filter bsd,${INSTALL_STYLE}),) 
    132         @mkdir -p ${WRKINST}/{,usr/}{bin,include,lib,sbin
     132        @mkdir -p ${WRKINST}/{,usr/}{bin,include,lib,sbin,share/man/{cat,man}{1,2,3,3p,4,5,6,7,8,9}
    133133        cd ${WRKBUILD} && env ${MAKE_ENV} ${BSDMAKE} -f ${MAKE_FILE} \ 
    134134            DESTDIR='${WRKINST}' ${FAKE_FLAGS} ${INSTALL_TARGET} 
     
    186186                    >>'${STAGING_PARENT}/pkg/${PKG_NAME}'; \ 
    187187        done 
     188ifeq (${FWRT_MANPAGES},y) 
     189        @${MKSH} ${TOPDIR}/scripts/genhtman.sh '${WRKINST}' '${WRKDIR}' 
     190endif 
    188191        touch $@ 
    189192 
  • trunk/freewrt/mk/vars.mk

    r3552 r3606  
    2424BSDMAKE_FLAGS+=         DOCOWN=${BUILD_USER} DOCGRP=${BUILD_GROUP} 
    2525BSDMAKE_FLAGS+=         NONBINMODE=0644 BINMODE=0755 CONFGRP=${BUILD_GROUP} 
    26 BSDMAKE_FLAGS+=         MACHINE=${ARCH} MACHINE_ARCH=${ARCH} NOMAN=Yes 
     26BSDMAKE_FLAGS+=         MACHINE=${ARCH} MACHINE_ARCH=${ARCH} OStype=Linux 
    2727BSDMAKE_FLAGS+=         RTLD_TYPE=GNU STRIP=: INSTALL_STRIP= OBJECT_FMT=ELF 
    28 BSDMAKE_FLAGS+=         OStype=Linux 
    2928BSDMAKE_FLAGS+=         HOSTCC='${HOSTCC}' HOSTLDFLAGS='${HOSTLDFLAGS}' \ 
    3029                        HOSTCFLAGS='${HOSTCPPFLAGS} ${HOSTCFLAGS}' 
  • trunk/freewrt/rules.mk

    r3420 r3606  
    6161 
    6262include $(TOPDIR)/mk/vars.mk 
     63 
     64ifneq (${FWRT_MANPAGES},y) 
     65BSDMAKE_FLAGS+=         NOMAN=Yes 
     66endif 
    6367 
    6468TARGET_CC:=             $(strip ${TARGET_CC})