Contents of /branches/magellan-next/extras/pilot-link/pilot-link-0.12.5-r1.smage2
Parent Directory | Revision Log
Revision 8747 -
(show annotations)
(download)
Thu Jul 28 11:36:33 2011 UTC (13 years, 2 months ago) by niro
File size: 2015 byte(s)
Thu Jul 28 11:36:33 2011 UTC (13 years, 2 months ago) by niro
File size: 2015 byte(s)
-fixed depedencies
1 | # $Id$ |
2 | |
3 | PNAME="pilot-link" |
4 | PVER="0.12.5" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="net-misc" |
8 | |
9 | DESCRIPTION="A suite of tools for moving data between a Palm device and a desktop." |
10 | HOMEPAGE="http://www.pilot-link.org/" |
11 | |
12 | DEPEND=">= virtual/glibc |
13 | >= sys-libs/ncurses-5.9 |
14 | >= sys-libs/readline-6.2 |
15 | >= dev-libs/popt-1.16 |
16 | >= dev-libs/libusb-compat-0.1.3 |
17 | >= media-libs/libpng-1.5 |
18 | >= net-wlan/bluez-4.95" |
19 | |
20 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
21 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
22 | |
23 | sminclude mbuild |
24 | |
25 | SRC_URI=( |
26 | http://downloads.pilot-link.org/${SRCFILE} |
27 | mirror://${PNAME}/${SRCFILE} |
28 | mirror://${PNAME}/${PNAME}-1.12.4-readline.patch |
29 | mirror://${PNAME}/${PNAME}-1.12.4-threads.patch |
30 | mirror://${PNAME}/${PNAME}-1.12.4-png.patch |
31 | mirror://${PNAME}/${PNAME}-1.12.4-werror.patch |
32 | mirror://${PNAME}/${PNAME}-1.12.4-glibc-open.patch |
33 | mirror://${PNAME}/${PNAME}-1.12.4-libusb-compat-usb_open.patch |
34 | ) |
35 | |
36 | UP2DATE="updatecmd -listonly ${HOMEPAGE} | grep ${PNAME}-[0-9] | firsttarball" |
37 | |
38 | src_prepare() |
39 | { |
40 | munpack ${SRCFILE} || die |
41 | cd ${SRCDIR} |
42 | |
43 | # fixing some broken configure switches and automagic deps |
44 | mpatch ${PNAME}-1.12.4-readline.patch || die |
45 | mpatch ${PNAME}-1.12.4-threads.patch || die |
46 | mpatch ${PNAME}-1.12.4-png.patch || die |
47 | |
48 | # upstream's check for Werror was wrong |
49 | mpatch ${PNAME}-1.12.4-werror.patch || die |
50 | |
51 | # fix glibc open without mode error |
52 | mpatch ${PNAME}-1.12.4-glibc-open.patch || die |
53 | |
54 | # libusb-compat requires you to check the return value of usb_open! |
55 | mpatch ${PNAME}-1.12.4-libusb-compat-usb_open.patch || die |
56 | |
57 | autoreconf --install --force --verbose || die |
58 | } |
59 | |
60 | src_configure() |
61 | { |
62 | cd ${SRCDIR} |
63 | |
64 | mconfigure \ |
65 | --includedir=/usr/include/libpisock \ |
66 | --disable-compile-werror \ |
67 | --disable-debug \ |
68 | --enable-conduits \ |
69 | --enable-threads \ |
70 | --enable-libusb \ |
71 | --with-libiconv \ |
72 | --with-libpng=$(libpng-config --prefix) \ |
73 | --with-bluez \ |
74 | --with-readline \ |
75 | --without-perl \ |
76 | --without-included-popt \ |
77 | --without-java \ |
78 | --without-python \ |
79 | --without-tcl \ |
80 | || die |
81 | |
82 | # not parallel make safe |
83 | mmake -j1 || die |
84 | } |