VirtualBox

Changeset 2231 in kBuild


Ignore:
Timestamp:
Jan 9, 2009 12:46:46 AM (16 years ago)
Author:
bird
Message:

freebsd/ports: Install docs in the right place and generate all the file lists automatically (-dirs).

Location:
trunk/dist/freebsd/devel/kBuild
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/dist/freebsd/devel/kBuild/Makefile

    r2200 r2231  
    2424                AUTOMAKE=${AUTOMAKE} \
    2525                AUTORECONF=${AUTORECONF}
    26 KBUILD_BINS=    kDepIDB \
    27                 kDepPre \
    28                 kObjCache \
    29                 kmk \
    30                 kmk_append \
    31                 kmk_ash \
    32                 kmk_cat \
    33                 kmk_chmod \
    34                 kmk_cmp \
    35                 kmk_cp \
    36                 kmk_echo \
    37                 kmk_expr \
    38                 kmk_gmake \
    39                 kmk_install \
    40                 kmk_ln \
    41                 kmk_md5sum \
    42                 kmk_mkdir \
    43                 kmk_mv \
    44                 kmk_printf \
    45                 kmk_redirect \
    46                 kmk_rm \
    47                 kmk_rmdir \
    48                 kmk_sed \
    49                 kmk_sleep \
    50                 kmk_test \
    51                 kmk_time
    52                                        
     26KBUILD_STAGE=   ${WRKSRC}/out/freebsd.${KBUILD_ARCH}/release${PREFIX}
     27
     28# KBUILD_BINS, KBUILD_DATA_FILES and KBUILD_DOC_FILES (generated).
     29.include "kBuild-files.mk"
    5330
    5431# Override autotools
     
    5734
    5835do-build:
    59         cd ${WRKSRC} && ${SETENV} ${KBUILD_ENV} ./kBuild/env.sh --full ${GMAKE} NIX_INSTALL_DIR=${PREFIX} -f bootstrap.gmk
    60         cd ${WRKSRC} && ./kBuild/env.sh --full-with-bin kmk NIX_INSTALL_DIR=${PREFIX}
     36        cd ${WRKSRC} && ${SETENV} ${KBUILD_ENV} ./kBuild/env.sh --full \
     37                ${GMAKE} NIX_INSTALL_DIR=${PREFIX} -f bootstrap.gmk
     38        ${WRKSRC}/kBuild/env.sh --full-with-bin \
     39                kmk -C ${WRKSRC} NIX_INSTALL_DIR=${PREFIX}
    6140
    6241do-install:
    63 .for bin in ${KBUILD_BINS}
    64         ${INSTALL_PROGRAM} ${WRKSRC}/out/freebsd.${KBUILD_ARCH}/release${PREFIX}/bin/${bin} ${PREFIX}/bin
     42.for file in ${KBUILD_BIN_FILES}
     43        ${INSTALL_PROGRAM} ${KBUILD_STAGE}/bin/${file} ${PREFIX}/bin/${file}
    6544.endfor
    66         ${MKDIR) ${DATADIR}
    67         (cd ${WRKSRC}/out/freebsd.${KBUILD_ARCH}/release${PREFIX}/share/kBuild && ${COPYTREE_SHARE} \* ${DATADIR})
     45        ${MKDIR} ${DATADIR}
     46.for file in ${KBUILD_DATA_FILES}
     47        ${MKDIR} `dirname ${DATADIR}/${file}`
     48        ${INSTALL_DATA} ${KBUILD_STAGE}/share/kBuild/${file} ${DATADIR}/${file}
     49.endfor
     50        ${MKDIR} ${DOCSDIR}
     51.for file in ${KBUILD_DOC_FILES}
     52        ${MKDIR} `dirname ${DOCSDIR}/${file}`
     53        ${INSTALL_DATA} ${KBUILD_STAGE}/share/doc/kBuild-${PORTVERSION}/${file} ${DOCSDIR}/${file}
     54.endfor
     55
    6856
    6957.include <bsd.port.mk>
     58
     59#
     60# Helper rule to generate kBuild-files.mk and pkg-plist when updating the port.
     61#
     62kbuild-generate-files:
     63        echo '# Autogenerated by kbuild-generate-files in Makefile' > kBuild-files.mk
     64        echo '' >> kBuild-files.mk
     65        echo 'KBUILD_BIN_FILES = \' >> kBuild-files.mk
     66        ${WRKSRC}/kBuild/env.sh --full-with-bin --quiet \
     67                kmk --no-print-directory -sC ${WRKSRC} NIX_INSTALL_DIR=${PREFIX} \
     68                MY_INST_BIN=_keep_/ MY_INST_DATA=_drop_/ MY_INST_DOC=_drop_/ \
     69                kbuild-show-install-files \
     70                | sed -e '/^_drop_/d' -e 's/^_keep_\//  /' -e 's/$$/ \\/' \
     71                >> kBuild-files.mk
     72        echo '' >> kBuild-files.mk
     73        echo 'KBUILD_DATA_FILES = \' >> kBuild-files.mk
     74        ${WRKSRC}/kBuild/env.sh --full-with-bin --quiet \
     75                kmk --no-print-directory -sC ${WRKSRC} NIX_INSTALL_DIR=${PREFIX} \
     76                MY_INST_BIN=_drop_/ MY_INST_DATA=_keep_/ MY_INST_DOC=_drop_/ \
     77                kbuild-show-install-files \
     78                | sed -e '/^_drop_/d' -e 's/^_keep_\//  /' -e 's/$$/ \\/' \
     79                >> kBuild-files.mk
     80        echo '' >> kBuild-files.mk
     81        echo 'KBUILD_DOC_FILES = \' >> kBuild-files.mk
     82        ${WRKSRC}/kBuild/env.sh --full-with-bin --quiet \
     83                kmk --no-print-directory -sC ${WRKSRC} NIX_INSTALL_DIR=${PREFIX} \
     84                MY_INST_BIN=_drop_/ MY_INST_DATA=_drop_/ MY_INST_DOC=_keep_/ \
     85                kbuild-show-install-files \
     86                | sed -e '/^_drop_/d' -e 's/^_keep_\//  /' -e 's/$$/ \\/' \
     87                >> kBuild-files.mk
     88        echo '' >> kBuild-files.mk
     89
     90        ${WRKSRC}/kBuild/env.sh --full-with-bin --quiet \
     91                kmk --no-print-directory -sC ${WRKSRC} NIX_INSTALL_DIR=${PREFIX} \
     92                'MY_INST_BIN=bin/' 'MY_INST_DATA=%%DATADIR%%/' \
     93                'MY_INST_DOC=%%DOCSDIR%%/' kbuild-show-install-files \
     94                > pkg-plist
     95        echo '@dirrm %%DATADIR%%/msgstyles' >> pkg-plist
     96        echo '@dirrm %%DATADIR%%/sdks' >> pkg-plist
     97        echo '@dirrm %%DATADIR%%/templates' >> pkg-plist
     98        echo '@dirrm %%DATADIR%%/tools' >> pkg-plist
     99        echo '@dirrm %%DATADIR%%/units' >> pkg-plist
     100        echo '@dirrm %%DATADIR%%' >> pkg-plist
     101        echo '@dirrm %%DOCSDIR%%' >> pkg-plist
     102
  • trunk/dist/freebsd/devel/kBuild/distinfo

    r2199 r2231  
    1 SIZE (kBuild-0.1.5-src.tar.gz) = 2501924
    2 SHA256 (kBuild-0.1.5-src.tar.gz) = f53fe7e2742a134c07a59e1c63b218a80b8a04990705f8334a8d0309a2faf152
    3 MD5 (kBuild-0.1.5-src.tar.gz) = 3e3dd3bb25a976afcc7da3d40039f9b1
     1MD5 (kBuild-0.1.5-src.tar.gz) = 0f6015e68681e82a43abb6293dfa4c90
     2SHA256 (kBuild-0.1.5-src.tar.gz) = d0f3a1525d9c84c164d8ba53c2f3cabca481e0aa0977ab81260e774465fbc5ec
     3SIZE (kBuild-0.1.5-src.tar.gz) = 2505403
  • trunk/dist/freebsd/devel/kBuild/pkg-plist

    r2199 r2231  
    1 bin/kDepIDB
    2 bin/kDepPre
    3 bin/kObjCache
     1bin/kmk_sed
    42bin/kmk
    53bin/kmk_append
    6 bin/kmk_ash
    74bin/kmk_cat
    85bin/kmk_chmod
     6bin/kmk_cp
    97bin/kmk_cmp
    10 bin/kmk_cp
    118bin/kmk_echo
    129bin/kmk_expr
    13 bin/kmk_gmake
    14 bin/kmk_install
    15 bin/kmk_ln
    1610bin/kmk_md5sum
    1711bin/kmk_mkdir
    1812bin/kmk_mv
     13bin/kmk_install
     14bin/kmk_ln
    1915bin/kmk_printf
    2016bin/kmk_redirect
    2117bin/kmk_rm
    2218bin/kmk_rmdir
    23 bin/kmk_sed
    2419bin/kmk_sleep
    2520bin/kmk_test
     21bin/kDepIDB
     22bin/kmk_gmake
     23bin/kmk_fgmake
     24bin/kmk_ash
     25bin/kDepPre
     26bin/kObjCache
    2627bin/kmk_time
    2728%%DATADIR%%/footer.kmk
     
    3233%%DATADIR%%/up.kmk
    3334%%DATADIR%%/tools/ALP.kmk
     35%%DATADIR%%/tools/BISON.kmk
    3436%%DATADIR%%/tools/FLEX.kmk
    3537%%DATADIR%%/tools/GCC.kmk
     
    5456%%DATADIR%%/tools/MINGW32.kmk
    5557%%DATADIR%%/tools/MSLINK510.kmk
    56 %%DATADIR%%/tools/TAR.kmk
    5758%%DATADIR%%/tools/NASM.kmk
    5859%%DATADIR%%/tools/OPENWATCOM-16.kmk
    5960%%DATADIR%%/tools/OPENWATCOM-WL.kmk
    6061%%DATADIR%%/tools/OPENWATCOM.kmk
     62%%DATADIR%%/tools/TAR.kmk
    6163%%DATADIR%%/tools/TARGZ.kmk
    6264%%DATADIR%%/tools/VAC308.kmk
     
    7072%%DATADIR%%/tools/WGET.kmk
    7173%%DATADIR%%/tools/XGCCAMD64LINUX.kmk
     74%%DATADIR%%/tools/YACC.kmk
    7275%%DATADIR%%/tools/YASM.kmk
    7376%%DATADIR%%/tools/ZIP.kmk
     
    99102%%DATADIR%%/units/qt3.kmk
    100103%%DATADIR%%/units/qt4.kmk
    101 %%DATADIR%%/doc/QuickReference-kmk.txt
    102 %%DATADIR%%/doc/QuickReference-kmk.html
     104%%DATADIR%%/units/yacc.kmk
    103105%%DATADIR%%/msgstyles/brief.kmk
    104106%%DATADIR%%/templates/DUMMY.kmk
    105 @dirrm %%DATADIR%%/doc
     107%%DOCSDIR%%/QuickReference-kmk.txt
     108%%DOCSDIR%%/QuickReference-kmk.html
    106109@dirrm %%DATADIR%%/msgstyles
    107110@dirrm %%DATADIR%%/sdks
     
    110113@dirrm %%DATADIR%%/units
    111114@dirrm %%DATADIR%%
     115@dirrm %%DOCSDIR%%
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette