Lines 2-45
Link Here
|
2 |
# Date created: November, 1997 |
2 |
# Date created: November, 1997 |
3 |
# Whom: Paul Traina <pst@FreeBSD.org> |
3 |
# Whom: Paul Traina <pst@FreeBSD.org> |
4 |
# |
4 |
# |
5 |
# $FreeBSD: ports/palm/pilot-link/Makefile,v 1.77 2006/08/15 00:56:21 clsung Exp $ |
5 |
# $FreeBSD: /repoman/r/pcvs/ports/palm/pilot-link/Makefile,v 1.74 2006/02/01 16:28:50 garga Exp $ |
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= pilot-link |
8 |
PORTNAME= pilot-link |
9 |
PORTVERSION= 0.11.8 |
9 |
DISTVERSION= 0.12.1 |
10 |
PORTREVISION= 4 |
|
|
11 |
PORTEPOCH= 1 |
10 |
PORTEPOCH= 1 |
12 |
CATEGORIES= palm comms |
11 |
CATEGORIES= palm comms |
13 |
MASTER_SITES= ${MASTER_SITE_GENTOO} |
12 |
MASTER_SITES= http://katerina.frederic.k12.wi.us/mirror/pilot-link/ |
14 |
MASTER_SITE_SUBDIR= distfiles |
|
|
15 |
|
13 |
|
16 |
MAINTAINER= ports@FreeBSD.org |
14 |
MAINTAINER= samm@os2.kiev.ua |
17 |
COMMENT= PalmPilot communications utilities (backup/restore/install/debug/...) |
15 |
COMMENT= Suite of tools used to connect and sync your Palm handled |
18 |
|
16 |
|
19 |
USE_ICONV= yes |
17 |
USE_ICONV= yes |
20 |
USE_GETOPT_LONG=yes |
18 |
USE_GETOPT_LONG=yes |
21 |
USE_BZIP2= yes |
19 |
USE_BZIP2= yes |
22 |
GNU_CONFIGURE= yes |
20 |
GNU_CONFIGURE= yes |
23 |
USE_LDCONFIG= yes |
21 |
USE_LDCONFIG= yes |
24 |
USE_PERL5= yes |
|
|
25 |
TCL_VER?= 8.4 |
26 |
|
22 |
|
27 |
CFLAGS+= -I${LOCALBASE}/include |
23 |
CFLAGS+= -I${WRKSRC}/popt -I${LOCALBASE}/include |
28 |
HAS_CONFIGURE= yes |
24 |
HAS_CONFIGURE= yes |
29 |
CONFIGURE_ARGS+=--with-perl5=${PERL5} --with-libiconv=${LOCALBASE} --program-transform-name= |
25 |
CONFIGURE_ARGS+=--with-libiconv=${LOCALBASE} --with-included-popt --enable-conduits \ |
30 |
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib" |
26 |
--mandir=${MANPREFIX}/man |
|
|
27 |
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS:S/-Werror//}" # clear -Werror from CFLAGS |
31 |
|
28 |
|
32 |
OPTIONS= TCL "Build Tcl/Tk bindings" off |
29 |
OPTIONS= PNG "build with png support" off\ |
|
|
30 |
THREADS "built-in thread safety" on\ |
31 |
|
32 |
PLIST_SUB+= PKGCONFIG_DIR=${PKGCONFIG_DIR} |
33 |
|
33 |
|
34 |
.include "${.CURDIR}/manpages.mk" |
34 |
.include "${.CURDIR}/manpages.mk" |
35 |
.include <bsd.port.pre.mk> |
35 |
.include <bsd.port.pre.mk> |
36 |
|
36 |
|
37 |
.if defined(WITH_TCL) |
37 |
post-patch: |
38 |
LIB_DEPENDS+= tk${TCL_VER:S/.//}:${PORTSDIR}/x11-toolkits/tk${TCL_VER:S/.//} |
38 |
@${REINPLACE_CMD} -e 's,^pkgconfigdir = .*$$,pkgconfigdir = ${PREFIX}/libdata/pkgconfig,' \ |
39 |
CONFIGURE_ARGS+=--with-tclinclude=${LOCALBASE}/include/tcl${TCL_VER}/ --with-tcl=${LOCALBASE}/lib/tcl${TCL_VER}/ |
39 |
${WRKSRC}/Makefile.in |
40 |
PLIST_SUB+= WITH_TCL="" |
40 |
|
|
|
41 |
.if !defined(WITHOUT_THREADS) |
42 |
CONFIGURE_ARGS+= --enable-threads |
43 |
LDFLAGS+= ${PTHREAD_LIBS} |
44 |
.endif |
45 |
|
46 |
.if defined(WITH_PNG) |
47 |
LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png |
48 |
CONFIGURE_ARGS+= --with-libpng=${PREFIX} |
41 |
.else |
49 |
.else |
42 |
PLIST_SUB+= WITH_TCL="@comment " |
50 |
CONFIGURE_ARGS+= --disable-png |
43 |
.endif |
51 |
.endif |
44 |
|
52 |
|
45 |
.include <bsd.port.post.mk> |
53 |
.include <bsd.port.post.mk> |