From owner-freebsd-ports@freebsd.org Fri Oct 28 20:14:40 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 83EEEC25D0E for ; Fri, 28 Oct 2016 20:14:40 +0000 (UTC) (envelope-from marcelbonnet@gmail.com) Received: from mail-yw0-x22f.google.com (mail-yw0-x22f.google.com [IPv6:2607:f8b0:4002:c05::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 412F9B2F for ; Fri, 28 Oct 2016 20:14:40 +0000 (UTC) (envelope-from marcelbonnet@gmail.com) Received: by mail-yw0-x22f.google.com with SMTP id w3so101063292ywg.1 for ; Fri, 28 Oct 2016 13:14:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=ElyGt46nmaIxQgZrY8Yiu8hIsdPvY14xfKdTOdkTpl4=; b=Wr/nbGU7wFq1ajDBHOF12dLIzhNKZIlNILtSzGtVMn7UDdNDj11Vf7BqN4O8TfFeu9 EH8Hlraux4I8NdyyX9HIGSPCjyKzzaIjYLuxUdSE8Tw8Eh1EW1PsB2dSZHLiVDmgUz+S wNgZ3QF/YwnZccOOOsbY47UkUTHyeOFphLt7vjvng93oW4I7GbYpwSlw6nI5tD5LFEa4 RBJ70Dm/pL3Oqy2yXLgnvXJ+gb3GcCwew6cQ4RtcXNV9fFqrOjAOrV7pIH1IOeCYmR/S SY7zM6K9S8gP9Pt9jdktIoJL1RPxVGqIShC2ximICV/nDprNwx4X4Db4ac7zIiQ9GfFt jh7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ElyGt46nmaIxQgZrY8Yiu8hIsdPvY14xfKdTOdkTpl4=; b=e85uqs+fD8+KPW1Y/CEtbCQfEFcxqCa5sfHZyXZ0LAG0FoTXPK+ybVsEhpj1uja7H0 UCBemc2fXgAee6t/geieGzor3cJbK+cf6l1ufH7Z2Ngw1r2/MKECY5U46/d3fU0n8Ce8 SbwGT/7kXW1VxcwucBbg1bswe4TyJE+DTEEkt40La4cVUI6qzHs6o7BP35F8+OW8Ihx2 vsSjHLB4V5fD55vKUzmKxbsBvpDEHdpxOX+Bqj2menS0Q2RJybCRLHIbyld27rAbGWlQ +GJatRY3SBksWlsLKtcZpFqdQ13ESfqR+ajaGvjH0nV8VdltQJxsQudhB+upV7oz4EZu gaqA== X-Gm-Message-State: ABUngvcYlZELq2ltZo1FmtoEbo1tZq1ArmSH8y+fm1bL6Yh5VTlb+97ONFS6a1RiXkp37TnwEsLtQasKwXS8/A== X-Received: by 10.36.16.84 with SMTP id 81mr260929ity.113.1477685679199; Fri, 28 Oct 2016 13:14:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.27.197 with HTTP; Fri, 28 Oct 2016 13:14:38 -0700 (PDT) From: Marcel Bonnet Date: Fri, 28 Oct 2016 18:14:38 -0200 Message-ID: Subject: Using INSTALL_DATA to install header files to PREFIX/include/PORTNAME To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2016 20:14:40 -0000 Hello, porters! I've been reading the Porters Handbook, even the bsd.*.mk files... but I'm wondering: why the waf installer put all the installation files into STAGEDIR but the port system do not copy them all, just some of them to the PREFIX. Below the Makefile and pkg-plist. If do not type ${INSTALL_DATA} ${STAGEDIR}${PREFIX}/include/sord-0/sord/sord.h ${STAGEDIR}${PREFIX}/include/sord-0/sord/ them the this header is not copied to PREFIX. But the other files are installed normally . So, I don't understand why I have to say ${INSTALL_DATA} the file from and to its current directory. Am I'm doing something really wrong, but perhaps produced the desired effect? Now its working like a charm. The Makefile : do-install: (cd ${WRKSRC}/build && ${INSTALL_DATA} sord-0.pc \ ${STAGEDIR}${PREFIX}/libdata/pkgconfig) ${REINPLACE_CMD} "s,^prefix=.*,prefix=${PREFIX}," ${STAGEDIR}${PREFIX}/libdata/pkgconfig/sord-0.pc ${RM} ${STAGEDIR}${PREFIX}/libdata/pkgconfig/sord-0.pc.bak (cd ${WRKSRC} && ${WAF_CMD} install) ${INSTALL_DATA} ${STAGEDIR}${PREFIX}/include/sord-0/sord/sord.h ${STAGEDIR}${PREFIX}/include/sord-0/sord/ ${INSTALL_DATA} ${STAGEDIR}${PREFIX}/include/sord-0/sord/sordmm.hpp ${STAGEDIR}${PREFIX}/include/sord-0/sord/ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/sordi ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/sord_validate ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libsord-0.so.0.12.2 $ cat pkg-plist bin/sordi bin/sord_validate include/sord-0/sord/sord.h include/sord-0/sord/sordmm.hpp lib/libsord-0.so lib/libsord-0.so.0 lib/libsord-0.so.0.12.2 libdata/pkgconfig/sord-0.pc man/man1/sordi.1.gz man/man1/sord_validate.1.gz The complete files are here: https://github.com/marcelbonnet/freebsd-ports/tree/ardour5.3/textproc/sord-0 Thanks, -- Marcel Bonnet github.com/marcelbonnet/