Fixup fromcvs/togit conversion
[pkgsrcv2.git] / comms / pilot-link / Makefile
1 # $NetBSD: Makefile,v 1.53 2011/04/22 13:43:11 obache Exp $
2
3 PKG_DESTDIR_SUPPORT=    user-destdir
4
5 .include "../../comms/pilot-link/Makefile.common"
6
7 PKGREVISION=            3
8 COMMENT=                Tools to talk to the 3Com Pilot PDA
9
10 BUILDLINK_API_DEPENDS.pilot-link-libs=  pilot-link-libs>=${PILOT_LINK_VERS}
11
12 USE_TOOLS+=             gmake perl:run
13 USE_GNU_READLINE=       YES
14
15 CONFIGURE_ARGS+=        --with-perl5=${PERL5:Q}
16 CONFIGURE_ARGS+=        --with-libpng
17 CONFIGURE_ARGS+=        --with-readline
18 CONFIGURE_ARGS+=        --enable-conduits
19
20 CFLAGS.SunOS+=          -D_POSIX_PTHREAD_SEMANTICS
21
22 BUILD_DIRS=             src bindings doc tests
23
24 post-patch:
25         cd ${WRKSRC} &&                                                 \
26         for mf in src/Makefile.in src/*/Makefile.in tests/Makefile.in ; do \
27                 ${CP} $$mf $$mf.old &&                                  \
28                 ${SED} -e 's|..top_builddir./lib[^/]*/\(lib[^\.]*\.la\)|${PREFIX}/lib/\1|g'     \
29                         < $$mf.old > $$mf ;                             \
30         done
31
32 .include "../../comms/pilot-link-libs/buildlink3.mk"
33 .include "../../devel/popt/buildlink3.mk"
34 .include "../../devel/readline/buildlink3.mk"
35 .include "../../graphics/png/buildlink3.mk"
36
37 .include "../../mk/bsd.pkg.mk"