Date: Wed, 18 Apr 2012 19:05:26 +0200 From: =?ISO-8859-1?Q?Fernando_Apestegu=EDa?= <fernando.apesteguia@gmail.com> To: freebsd-ports@freebsd.org Subject: Question about PORTEXAMPLES Message-ID: <CAGwOe2YW_LB9Yfyr4Q=s0QAvcvUtgjopP-aBQqufY7imoxUqyw@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi all, I'm working on the port for OpenVSP. Here[1] there is a preliminary version. scheidell suggests simplifying the port using PORTEXAMPLES. I redid the Makefile a little so it looks like this now (I show only the relevant part): PORTEXAMPLES= ${WRKSRC}/../examples/airfoil/* PORTEXAMPLES+= ${WRKSRC}/../examples/cabin/* PORTEXAMPLES+= ${WRKSRC}/../examples/fonts/* PORTEXAMPLES+= ${WRKSRC}/../examples/fuselage/* PORTEXAMPLES+= ${WRKSRC}/../examples/models/* PORTEXAMPLES+= ${WRKSRC}/../examples/setup/* PORTEXAMPLES+= ${WRKSRC}/../examples/textures/* PLIST_FILES= bin/vsp do-fetch: ${FETCH_BINARY} -o ${DISTDIR}/${DISTNAME}.tar.gz ${MASTER_SITES}${DISTNAME} do-install: @${INSTALL_PROGRAM} ${WRKSRC}/vsp/vsp ${PREFIX}/bin .if !defined(NOPORTEXAMPLES) .for i in airfoil cabin fonts fuselage models setup textures @${MKDIR} ${EXAMPLESDIR}/${i} @${INSTALL_DATA} ${WRKSRC}/../examples/${i}/* ${EXAMPLESDIR} .endfor .endif portlint -abt only complains about one single MASTER_SITE configured (nothing I can do about it). However, 'port test' shows the following: ===> Deinstalling openvsp-2.0 pkg_delete: unable to completely remove directory '/tmp/openvsp-2.0/share/examples/openvsp' pkg_delete: couldn't entirely delete package `openvsp-2.0' (perhaps the packing list is incorrectly specified?) I don't get why this happens. What I want is to keep the same hierarchy the package has. This is, having the subdirectories 'airfoil', 'cabin', etc. hanging from the port's EXAMPLESDIR. Any help is appreciated. Cheers. PS: Please, CC me as I'm not subscribed to the list. Thanks! [1] http://www.freebsd.org/cgi/query-pr.cgi?pr=166825
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGwOe2YW_LB9Yfyr4Q=s0QAvcvUtgjopP-aBQqufY7imoxUqyw>