At 10:17 PM -0700 2001/08/14, J.C. Roberts wrote:
>On Wed, 15 Aug 2001 10:57:23 +1000, you wrote:
>
>>At 9:06 AM -0700 2001/08/14, J.C. Roberts wrote:
>>>I'm trying to get klaptopdaemon from the kdeutils collection working
>>>on OpenBSD. It will basically require me to write a patch for the
>>>program that does the same thing as apm and need to use a couple of
>>>the apmd header files that are not installed in /usr/include/machine/
>>>
>>>Is it OK to put these two header files in the port and copy them into
>>>the ${WKSDIST} dir via the configure script or is there a better way
>>>to do this? I figure if someone doesn't have /usr/src installed on the
>>>machine (or it's installed elsewhere) hard coded paths would break.
>>>
>>
>>Currently the Netatalk port copies header files into ${WRKSRC}
>>
>>post-patch:
>> @rm -rf ${WRKSRC}/include/netatalk
>> @ln -sf /usr/include/netatalk ${WRKSRC}/include/netatalk
>> @rm -f ${WRKSRC}/sys/netatalk/*.h
>>
>>So something similar should work the same.
>>
>>
>
>Thanks Ian,
>
>The problem is the header files I need are not in /usr/include/* They
>are only in /usr/src/* so if someone doesn't have source on the system
>or they've placed it in a non-standard place then a link would fail.
>
>My work around was to store a copy of the header files in the port
>itself and use the $PORT/scripts/configure script to copy them into
>the right place before compiling.
>
>cat $PORT/scripts/configure
>
> cp scripts\apm-proto.h ${WRKDIST}\klaptopdaemon\apm-proto.h
> cp scripts\pathnames.h ${WRKDIST}\klaptopdaemon\pathnames.h
>
>It's the copying of system source headers into the ports tree that has
>me wondering if there is a better way to do it.
>
OK create a patch for them. That way they will be created at patch time and
no extra copying will be needed.
To do so just initially create an empty *.orig file, cp in your new include
and make update-patches will do the rest.
_________________________________
Ian McWilliam.
Technical Officer,
School of Computing & IT
University of Western Sydney
Locked Bag 1797
Penrith South DC N.S.W,
Australia 1797.
mailto:ianm@cit.uws.edu.au
mailto:i.mcwilliam@uws.edu.au
Telephone: 61 247360 757
Fax: 61 247360 770
__________________________________
|