diff options
author | miwi <miwi@058c260c-8361-11dd-a0ac-aa2bafec7d09> | 2008-09-16 06:55:28 +0800 |
---|---|---|
committer | miwi <miwi@058c260c-8361-11dd-a0ac-aa2bafec7d09> | 2008-09-16 06:55:28 +0800 |
commit | 72e4a2a73e394a146bf320fecf22c3ecb90d3b62 (patch) | |
tree | 37bfb7b4baf090f8ffa035f2c5f15877c6d84fab | |
parent | 22e88b4e5a8d139925ab2fd48b1c8a2fad97c1ef (diff) | |
download | xorg-devel-ports-72e4a2a73e394a146bf320fecf22c3ecb90d3b62.tar xorg-devel-ports-72e4a2a73e394a146bf320fecf22c3ecb90d3b62.tar.gz xorg-devel-ports-72e4a2a73e394a146bf320fecf22c3ecb90d3b62.tar.bz2 xorg-devel-ports-72e4a2a73e394a146bf320fecf22c3ecb90d3b62.tar.lz xorg-devel-ports-72e4a2a73e394a146bf320fecf22c3ecb90d3b62.tar.xz xorg-devel-ports-72e4a2a73e394a146bf320fecf22c3ecb90d3b62.tar.zst xorg-devel-ports-72e4a2a73e394a146bf320fecf22c3ecb90d3b62.zip |
- better way to us the addones.
git-svn-id: https://trillian.chruetertee.ch/svn/ports/trunk@5 058c260c-8361-11dd-a0ac-aa2bafec7d09
-rw-r--r-- | lang/io/files/bsd.ioaddons.mk | 47 |
1 files changed, 19 insertions, 28 deletions
diff --git a/lang/io/files/bsd.ioaddons.mk b/lang/io/files/bsd.ioaddons.mk index b56248e..4ae6795 100644 --- a/lang/io/files/bsd.ioaddons.mk +++ b/lang/io/files/bsd.ioaddons.mk @@ -7,50 +7,41 @@ IOVERSION?= 20080904 -_USE_IO= blowfish +WRKSRC?= ${WRKDIR}/io +DEFAULT_ADDONS?= ${PORTNAME} +TARGET_DIR= ${PREFIX}/lib/io/addons/${DEFAULT_ADDONS} +SRC_DIR= ${WRKSRC}/addons/${DEFAULT_ADDONS} -blowfish_RUN_DEPENDS= ${PREFIX}/lib/io/addons/Blowfish/io/Blowfish.io${PORTSDIR}/security/io-blowfish - -WRKSRC= ${WRKDIR}/io - -TARGET_DIR= ${PREFIX}/lib/io/addons/${ADDON_NAME} -SRC_DIR= ${WRKSRC}/addons/${ADDON_NAME} - -HEADER_PATHS= append("${PREFIX}/include/io") -LIB_PATHS= -.for i in ${ADDON_DEPENDS_ON_ADDONS} -HEADER_PATHS+= append("${PREFIX}/include/io/${i}") -LIB_PATHS+= append("${PREFIX}/lib/io/addons/${i}/_build/dll") -.endfor - +post-patch: + cd ${WRKSRC}/addons && for addon in *; do \ + if ! ${ECHO_CMD} ${DEFAULT_ADDONS} | ${GREP} $$addon > /dev/null; then \ + ${RM} -fr $$addon; \ + fi; \ + done do-build: - cd ${WRKSRC} && ${PREFIX}/bin/io build.io -a ${ADDON_NAME} + cd ${WRKSRC}; ${SETENV} ${LOCALBASE}/bin/io build.io -a ${DEFAULT_ADDONS} do-install: - ${INSTALL_DATA_DIR} ${TARGET_DIR} - ${INSTALL_DATA_DIR} ${TARGET_DIR}/_build + ${MKDIR} ${TARGET_DIR} + ${MKDIR} ${TARGET_DIR}/_build if [ -d ${SRC_DIR}/_build/dll ]; then \ ${CP} -rf ${SRC_DIR}/_build/dll ${TARGET_DIR}/_build/; \ fi if [ -d ${SRC_DIR}/_build/lib ]; then \ ${CP} -rf ${SRC_DIR}/_build/lib ${TARGET_DIR}/_build/; \ fi - if [ -d ${SRC_DIR}/io ]; then \ - ${CP} -rf ${SRC_DIR}/io ${TARGET_DIR}/; \ + if [ -d ${SRC_DIR}/_build/objs ]; then \ + ${CP} -rf ${SRC_DIR}/_build/objs ${TARGET_DIR}/_build/; \ fi - if [ -e ${SRC_DIR}/depends ]; then \ - ${CP} -f ${SRC_DIR}/depends ${TARGET_DIR}/; \ + if [ -d ${SRC_DIR}/_build/headers ]; then \ + ${CP} -rf ${SRC_DIR}/_build/headers ${TARGET_DIR}/_build/; \ fi - if [ -e ${SRC_DIR}/protos ]; then \ - ${CP} -f ${SRC_DIR}/protos ${TARGET_DIR}/; \ + if [ -d ${SRC_DIR}/io ]; then \ + ${CP} -rf ${SRC_DIR}/io ${TARGET_DIR}/; \ fi if [ -e ${SRC_DIR}/build.io ]; then \ ${CP} -f ${SRC_DIR}/build.io ${TARGET_DIR}/; \ fi - if [ ! -z "${ADDON_INSTALL_HEADERS}" ]; then \ - ${INSTALL_DATA_DIR} ${PREFIX}/include/io/${ADDON_NAME}; \ - ${CP} -f ${SRC_DIR}/source/*.h ${PREFIX}/include/io/${ADDON_NAME} - fi |