diff options
author | erwin <erwin@FreeBSD.org> | 2006-08-14 21:24:18 +0800 |
---|---|---|
committer | erwin <erwin@FreeBSD.org> | 2006-08-14 21:24:18 +0800 |
commit | b24e1d8684c5b490bdb3ff29d208576d55900138 (patch) | |
tree | 4de16a9bb41648e373a97969dc936fbcde86cae1 /Mk | |
parent | d9904bee6809e71b8e5eb1637cc09bc67911fcf4 (diff) | |
download | freebsd-ports-gnome-b24e1d8684c5b490bdb3ff29d208576d55900138.tar.gz freebsd-ports-gnome-b24e1d8684c5b490bdb3ff29d208576d55900138.tar.zst freebsd-ports-gnome-b24e1d8684c5b490bdb3ff29d208576d55900138.zip |
- s/${DESTDIR}${PREFIX}/${TARGETDIR}/
- Fix FORCE_PKG_REGISTER issues [1]
- Make USE_RCORDER respect DESTDIR [2]
- Make ldconfig stuff respect DESTDIR
Reported by: lofi [1]
Submitted by: gabor, sem [2]
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.emacs.mk | 4 | ||||
-rw-r--r-- | Mk/bsd.gnome.mk | 2 | ||||
-rw-r--r-- | Mk/bsd.port.mk | 34 |
3 files changed, 21 insertions, 19 deletions
diff --git a/Mk/bsd.emacs.mk b/Mk/bsd.emacs.mk index daf615496247..eb22cfe28f41 100644 --- a/Mk/bsd.emacs.mk +++ b/Mk/bsd.emacs.mk @@ -1,5 +1,5 @@ # -# $FreeBSD: /tmp/pcvs/ports/Mk/bsd.emacs.mk,v 1.58 2006-08-04 12:34:41 erwin Exp $ +# $FreeBSD: /tmp/pcvs/ports/Mk/bsd.emacs.mk,v 1.59 2006-08-14 13:24:18 erwin Exp $ # # bsd.emacs.mk - 19990829 Shigeyuki Fukushima. # @@ -237,7 +237,7 @@ check-makevars:: # find where emacsen is installed # look for it in PREEFIX first and fall back to LOCALBASE then .if exists(${TARGETDIR}/bin/${EMACS_NAME}-${EMACS_VER}) -EMACS_BASE?= ${DESTDIR}${PREFIX} +EMACS_BASE?= ${TARGETDIR} .else EMACS_BASE?= ${LOCALBASE} .endif diff --git a/Mk/bsd.gnome.mk b/Mk/bsd.gnome.mk index 91f95bd0359b..0b7863544103 100644 --- a/Mk/bsd.gnome.mk +++ b/Mk/bsd.gnome.mk @@ -728,7 +728,7 @@ gnome-pre-su-install: @${MTREE_CMD} ${MTREE_ARGS:S/${MTREE_FILE}/${GNOME_MTREE_FILE}/} ${TARGETDIR}/ >/dev/null .endif .if defined(GCONF_SCHEMAS) - @${MKDIR} ${DESTDIR}${PREFIX}/etc/gconf/gconf.xml.defaults/ + @${MKDIR} ${TARGETDIR}/etc/gconf/gconf.xml.defaults/ .else @${DO_NADA} .endif diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 6d5c32908bc8..f0cf7abf40d4 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -1370,21 +1370,22 @@ PREFIX?= ${LOCALBASE_REL} .if defined(USE_LINUX_PREFIX) .if !defined(DESTDIR) LDCONFIG_CMD?= ${LINUXBASE_REL}/sbin/ldconfig -r ${LINUXBASE_REL} +LDCONFIG_PLIST_EXEC_CMD?= ${LDCONFIG_CMD} +LDCONFIG_PLIST_UNEXEC_CMD?= ${LDCONFIG_CMD} .else LDCONFIG_CMD?= ${CHROOT} ${DESTDIR} ${LINUXBASE_REL}/sbin/ldconfig -r ${LINUXBASE_REL} -.endif LDCONFIG_PLIST_EXEC_CMD?= ${LDCONFIG_CMD} -LDCONFIG_PLIST_UNEXEC_CMD?= ${LDCONFIG_CMD} +LDCONFIG_PLIST_UNEXEC_CMD?= ${LINUXBASE_REL}/sbin/ldconfig -r ${LINUXBASE_REL} +.endif .else .if !defined(DESTDIR) LDCONFIG_CMD?= ${LDCONFIG} -m ${LDCONFIG_RUNLIST} LDCONFIG_PLIST_EXEC_CMD?= ${LDCONFIG} -m ${LDCONFIG_PLIST} -LDCONFIG_PLIST_UNEXEC_CMD?= ${LDCONFIG} -R .else LDCONFIG_CMD?= ${CHROOT} ${DESTDIR} ${LDCONFIG} -m ${LDCONFIG_RUNLIST} LDCONFIG_PLIST_EXEC_CMD?= ${CHROOT} ${DESTDIR} ${LDCONFIG} -m ${LDCONFIG_PLIST} -LDCONFIG_PLIST_UNEXEC_CMD?= ${CHROOT} ${DESTDIR} ${LDCONFIG} -R .endif +LDCONFIG_PLIST_UNEXEC_CMD?= ${LDCONFIG} -R .endif PKGCOMPATDIR?= ${LOCALBASE}/lib/compat/pkg @@ -1588,8 +1589,9 @@ INSTALL_WRKSRC?=${WRKSRC} PLIST_SUB+= OSREL=${OSREL} PREFIX=%D LOCALBASE=${LOCALBASE_REL} X11BASE=${X11BASE_REL} \ DESTDIR=${DESTDIR} TARGETDIR=${TARGETDIR} -SUB_LIST+= PREFIX=${PREFIX} LOCALBASE=${LOCALBASE_REL} X11BASE=${X11BASE_REL} \ - DATADIR=${DATADIR} DOCSDIR=${DOCSDIR} EXAMPLESDIR=${EXAMPLESDIR} +SUB_LIST+= PREFIX=${PREFIX} LOCALBASE=${LOCALBASE_REL} X11BASE=${X11BASE_REL} \ + DATADIR=${DATADIR} DOCSDIR=${DOCSDIR} EXAMPLESDIR=${EXAMPLESDIR} \ + DESTDIR=${DESTDIR} TARGETDIR=${TARGETDIR} PLIST_REINPLACE+= dirrmtry PLIST_REINPLACE_DIRRMTRY=s!^@dirrmtry \(.*\)!@unexec rmdir %D/\1 2>/dev/null || true! @@ -5512,7 +5514,7 @@ install-rc-script: @${ECHO_CMD} "===> Installing early rc.d startup script(s)" @${ECHO_CMD} "@cwd /" >> ${TMPPLIST} @for i in ${USE_RCORDER}; do \ - ${INSTALL_SCRIPT} ${WRKDIR}/$${i} /etc/rc.d/$${i%.sh}; \ + ${INSTALL_SCRIPT} ${WRKDIR}/$${i} ${DESTDIR}/etc/rc.d/$${i%.sh}; \ ${ECHO_CMD} "etc/rc.d/$${i%.sh}" >> ${TMPPLIST}; \ done @${ECHO_CMD} "@cwd ${PREFIX}" >> ${TMPPLIST} @@ -5581,13 +5583,13 @@ fake-pkg: fi @${RM} -rf ${PKG_DBDIR}/${PKGNAME} .endif -.if !exists(${PKG_DBDIR}/${PKGNAME}) -.if !defined(DESTDIR) - @${ECHO_MSG} "===> Registering installation for ${PKGNAME}" -.else - @${ECHO_MSG} "===> Registering installation for ${PKGNAME} in ${DESTDIR}" -.endif - @${MKDIR} ${PKG_DBDIR}/${PKGNAME}; \ + @if [ ! -d ${PKG_DBDIR}/${PKGNAME} ]; then \ + if [ -z "${DESTDIR}" ] ; then \ + ${ECHO_MSG} "===> Registering installation for ${PKGNAME}"; \ + else \ + ${ECHO_MSG} "===> Registering installation for ${PKGNAME} in ${DESTDIR}"; \ + fi; \ + ${MKDIR} ${PKG_DBDIR}/${PKGNAME}; \ ${PKG_CMD} ${PKG_ARGS} -O ${PKGFILE} > ${PKG_DBDIR}/${PKGNAME}/+CONTENTS; \ ${CP} ${DESCR} ${PKG_DBDIR}/${PKGNAME}/+DESC; \ ${ECHO_CMD} ${COMMENT:Q} > ${PKG_DBDIR}/${PKGNAME}/+COMMENT; \ @@ -5610,8 +5612,8 @@ fake-pkg: ${ECHO_CMD} ${PKGNAME} >> ${PKG_DBDIR}/$$dep/+REQUIRED_BY; \ fi; \ fi; \ - done -.endif + done; \ + fi .if !defined(NO_MTREE) @if [ -f ${MTREE_FILE} ]; then \ ${CP} ${MTREE_FILE} ${PKG_DBDIR}/${PKGNAME}/+MTREE_DIRS; \ |