devel/pcsc-ada: Fix build on DragonFly

The Linker_Options pragma was removed upstream and the linker options
moved to the common GPR file.  Extend the sed command to add the
-L/usr/local/lib LDFLAG for examples rather than have to patch several
individual files.  Needed by DF where /usr/local/lib is not a default
library path for the base compiler.
This commit is contained in:
John Marino 2016-08-08 04:24:10 +00:00
parent 0ba4b018fe
commit 91d1d84cc9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=419796

View file

@ -41,15 +41,8 @@ INTF_TEST_ALL_TARGET= itests
post-patch:
${REINPLACE_CMD} -e 's|"-lpcsclite"|${GPRLINK}|' \
${WRKSRC}/pcscada_common.gpr \
${WRKSRC}/pcscada_lib.gpr
${REINPLACE_CMD} -e 's|gnaty.*|gnatyd",|' ${WRKSRC}/pcscada_common.gpr
(cd ${WRKSRC} && ${REINPLACE_CMD} -e 's|"-lpcsclite");|"-L${LOCALBASE}/lib"); pragma Linker_Options ("-lpcsclite");|' \
examples/cardd/cardd.adb \
examples/sample/sample.adb \
examples/pinverify/pinpad.adb \
examples/thin/thin_example.adb \
tests/runner.adb \
tests/test_pcscada.adb)
do-build:
# We cannot use a redefined ALL_TARGET because MAKE_JOBS_SAFE is set