RCS file: /home/ncvs/ports/www/xpi-adblock/Makefile.xpi,v retrieving revision 1.12 diff -u -r1.12 Makefile.xpi --- Makefile.xpi 30 Jul 2006 22:22:50 -0000 1.12 +++ Makefile.xpi 3 Aug 2006 02:36:10 -0000 @@ -144,18 +144,26 @@ _TD_FULL= ${XPI_XPIDIR} _A= >> ${TMPPLIST} _Q= 2>/dev/null || true + +.if !defined(XPI_AUTOPLIST) PLIST_FILES+= ${XPI_FILES:S!^!${_TD}/!} PLIST_DIRS+= ${XPI_DIRS:S!^!${_TD}/!} ${_TD} - .for dist in ${XPI_DISTNAMES} XPI_XPIDIR_${dist}= ${XPI_LIBDIR}/${XPI_ID_${dist}} _TD_${dist}= ${XPI_XPIDIR_${dist}:S,^${PREFIX}/,,} PLIST_FILES+= ${XPI_FILES_${dist}:S!^!${_TD_${dist}}/!} PLIST_DIRS+= ${XPI_DIRS_${dist}:S!^!${_TD_${dist}}/!} ${_TD_${dist}} .endfor +.endif .if !target(do-install) do-install: +.if defined(XPI_AUTOPLIST) + @cd ${WRKSRC} && ${FIND} -s * -type f -o -type l | \ + ${SED} -e 's|^|${XPI_XPIDIR:S,${PREFIX}/,,}/|' ${_A} && \ + ${FIND} -d * -type d | ${SED} -e 's|^|@dirrm ${XPI_XPIDIR:S,${PREFIX}/,,}/|' ${_A} + @${ECHO_CMD} "@dirrm ${XPI_XPIDIR:S,${PREFIX}/,,}" ${_A} +.endif @${INSTALL} -d ${_TD_FULL} ${XPI_SLDIRS_ALL} @${CP} -Rp ${WRKSRC}/ ${_TD_FULL}/ @if [ -d ${FILESDIR} -a -f ${FILESDIR}/chrome.manifest ] ; \