Date: Fri, 24 Aug 2001 12:13:53 -0400 From: The Anarcat <anarcat@anarcat.dyndns.org> To: freebsd-ports@freebsd.org Subject: NOPORTDOCS and make package Message-ID: <20010824121353.A1047@shall.anarcat.dyndns.org>
next in thread | raw e-mail | index | archive | help
--6c2NcOVqGQ03X4Wi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi.=20 I think this might be a stupid question, it's just that I don't see a clear immediate answer to it. I am updating a port I maintain (audio/ecasound) to its version 2. I intend to make it install documentation in share/doc/ecasound. I followed the porters handbook suggestion of putting: post-install: =2Eif !defined(NOPORTDOCS) ${MKDIR} ${PREFIX}/share/doc/ecasound ${MKDIR} ${PREFIX}/share/doc/ecasound/programmers_guide ${MKDIR} ${PREFIX}/share/doc/ecasound/users_guide ${INSTALL_MAN} ${WRKSRC}/Documentation/*.html ${WRKSRC}/Documentation/*.txt \ ${PREFIX}/share/doc/ecasound ${INSTALL_MAN} ${WRKSRC}/Documentation/programmers_guide/*.html \ ${PREFIX}/share/doc/ecasound/programmers_guide ${INSTALL_MAN} ${WRKSRC}/Documentation/users_guide/*.html \ ${PREFIX}/share/doc/ecasound/users_guide =2Eendif in the Makefile. However, how can I tell the pkg-plist to behave accordingly to NOPORTDOCS? Eg.: # make install PREFIX=3D/var/tmp/ecasound2 package deinstall NOPORTDOCS=3Dy= es =2E.. =3D=3D=3D> Building package for ecasound-2.0.2 Creating package /usr/ports/packages/All/ecasound-2.0.2.tgz Registering depends:. Creating gzip'd tar ball in '/usr/ports/packages/All/ecasound-2.0.2.tgz' tar: can't add file share/doc/ecasound/ecasound-iam_manpage.html : No such file or directory tar: can't add file share/doc/ecasound/ecasound_faq.html : No such file or directory tar: can't add file share/doc/ecasound/ecasound_faq.txt : No such file or directory tar: can't add file share/doc/ecasound/ecasound_manpage.html : No such file or directory tar: can't add file share/doc/ecasound/ecasoundrc_manpage.html : No such file or directory tar: can't add file share/doc/ecasound/ecatools_manpage.html : No such file or directory tar: can't add file share/doc/ecasound/examples.html : No such file or directory tar: can't add file share/doc/ecasound/index.html : No such file or directory tar: can't add file share/doc/ecasound/programmers_guide/programmers_guide.html : No such file or directory tar: can't add file share/doc/ecasound/programmers_guide/eci_doc.html : No such file or directory tar: can't add file share/doc/ecasound/users_guide/users_guide.html : No such file or directory pkg_create: make_dist: tar command failed with code 256 *** Error code 1 Stop in /u/anarcat/src/ports/ecasound2. *** Error code 1 Stop in /u/anarcat/src/ports/ecasound2. *** Error code 1 Stop in /u/anarcat/src/ports/ecasound2. #=20 I think there might be a way to do this with PLIST_SUB, but I can't figure it out now... I will just send a diff with the doc commented for now. Also, another quick question... The make install target in WRKSRC calls ldconfig to configure the libs it installs, by itself (without me specifying INSTALL_SHLIBS). Can that be a problem? And the last: this port always installed shared libs named "lib/libecasound.so.7", for example. And this number (7, in this case) did not change since last upgrade. How can/should I make patches to make the build generate different file names? Is that where the "shared library version" comes from? Am I confused? :) Many thanks A. --6c2NcOVqGQ03X4Wi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEUEARECAAYFAjuGfUAACgkQttcWHAnWiGcJSACXd3oSeZwTnpJ+Y9pCk1GJ1CAz gACdEsgxmWVXEiuRx7fSTr4+Qn0LY9o= =s7X8 -----END PGP SIGNATURE----- --6c2NcOVqGQ03X4Wi-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010824121353.A1047>