title: MacPorts: violation of the ports-filesystem hierarchy in the destroot phase
body: <p>I'm in the process of developing a Portfile for my application and I'm running into problems during the destroot phase. According to the <a href="http://guide.macports.org/#reference.phases" rel="nofollow">MacPorts guide</a>, the destroot phase executes the following command:</p>
  
  <pre><code>make install DESTDIR=${destroot}
  </code></pre>
  
  <p>I think I may be misunderstanding how this is supposed to work in the Makefile. My application is very simple and the install rule only needs to copy a few directories to the <code>DESTDIR</code> so it is specified as follows:</p>
  
  <pre><code>install:
      cp -R bin $(DESTDIR)/bin
      cp -R lib $(DESTDIR)/lib
      cp -R cfg $(DESTDIR)/cfg
  </code></pre>
  
  <p>However, when I try to do a MacPort installation of my application, I get the following warnings:</p>
  
  <pre><code>---&gt;  Staging test into destroot
  Warning: violation by /bin
  Warning: violation by /lib
  Warning: violation by /cfg
  Warning: test violates the layout of the ports-filesystems!
  </code></pre>
  
  <p>How do I fix this? Am I misunderstanding how the <code>DESTDIR</code> variable is used in the install rule or missing something altogether?</p>