mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Optionalize building of tcl/tk bindings.
This commit is contained in:
parent
2a013fa858
commit
e88aeb8cf1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=117315
4 changed files with 40 additions and 22 deletions
|
@ -8,15 +8,13 @@
|
||||||
PORTNAME= pilot-link
|
PORTNAME= pilot-link
|
||||||
PORTVERSION= 0.11.8
|
PORTVERSION= 0.11.8
|
||||||
PORTREVISION= 3
|
PORTREVISION= 3
|
||||||
CATEGORIES= palm comms tk84
|
CATEGORIES= palm comms
|
||||||
MASTER_SITES= ${MASTER_SITE_GENTOO}
|
MASTER_SITES= ${MASTER_SITE_GENTOO}
|
||||||
MASTER_SITE_SUBDIR= distfiles
|
MASTER_SITE_SUBDIR= distfiles
|
||||||
|
|
||||||
MAINTAINER= ports@FreeBSD.org
|
MAINTAINER= ports@FreeBSD.org
|
||||||
COMMENT= PalmPilot communications utilities (backup/restore/install/debug/...)
|
COMMENT= PalmPilot communications utilities (backup/restore/install/debug/...)
|
||||||
|
|
||||||
LIB_DEPENDS= tk${TCL_VER:S/.//}:${PORTSDIR}/x11-toolkits/tk${TCL_VER:S/.//}
|
|
||||||
|
|
||||||
USE_ICONV= yes
|
USE_ICONV= yes
|
||||||
USE_GETOPT_LONG=yes
|
USE_GETOPT_LONG=yes
|
||||||
USE_BZIP2= yes
|
USE_BZIP2= yes
|
||||||
|
@ -27,9 +25,20 @@ TCL_VER?= 8.4
|
||||||
|
|
||||||
CFLAGS+= -I${LOCALBASE}/include
|
CFLAGS+= -I${LOCALBASE}/include
|
||||||
HAS_CONFIGURE= yes
|
HAS_CONFIGURE= yes
|
||||||
CONFIGURE_ARGS+=--with-perl5=${PERL5} --with-libiconv=${LOCALBASE} --with-tclinclude=${LOCALBASE}/include/tcl${TCL_VER}/ --with-tcl=${LOCALBASE}/lib/tcl${TCL_VER}/ --program-transform-name=
|
CONFIGURE_ARGS+=--with-perl5=${PERL5} --with-libiconv=${LOCALBASE} --program-transform-name=
|
||||||
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib"
|
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib"
|
||||||
|
|
||||||
.include "${.CURDIR}/manpages.mk"
|
OPTIONS= TCL "Build Tcl/Tk bindings" off
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include "${.CURDIR}/manpages.mk"
|
||||||
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
|
.if defined(WITH_TCL)
|
||||||
|
LIB_DEPENDS+= tk${TCL_VER:S/.//}:${PORTSDIR}/x11-toolkits/tk${TCL_VER:S/.//}
|
||||||
|
CONFIGURE_ARGS+=--with-tclinclude=${LOCALBASE}/include/tcl${TCL_VER}/ --with-tcl=${LOCALBASE}/lib/tcl${TCL_VER}/
|
||||||
|
PLIST_SUB+= WITH_TCL=""
|
||||||
|
.else
|
||||||
|
PLIST_SUB+= WITH_TCL="@comment "
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.include <bsd.port.post.mk>
|
||||||
|
|
|
@ -28,7 +28,7 @@ bin/pilot-foto
|
||||||
bin/pilot-prc
|
bin/pilot-prc
|
||||||
bin/pilot-schlep
|
bin/pilot-schlep
|
||||||
bin/pilot-xfer
|
bin/pilot-xfer
|
||||||
bin/pitclsh
|
%%WITH_TCL%%bin/pitclsh
|
||||||
bin/read-expenses
|
bin/read-expenses
|
||||||
bin/read-ical
|
bin/read-ical
|
||||||
bin/read-notepad
|
bin/read-notepad
|
||||||
|
@ -86,10 +86,10 @@ lib/libpisync.a
|
||||||
lib/libpisync.la
|
lib/libpisync.la
|
||||||
lib/libpisync.so
|
lib/libpisync.so
|
||||||
lib/libpisync.so.0
|
lib/libpisync.so.0
|
||||||
lib/libpitcl.a
|
%%WITH_TCL%%lib/libpitcl.a
|
||||||
lib/libpitcl.la
|
%%WITH_TCL%%lib/libpitcl.la
|
||||||
lib/libpitcl.so.0
|
%%WITH_TCL%%lib/libpitcl.so.0
|
||||||
lib/libpitcl.so
|
%%WITH_TCL%%lib/libpitcl.so
|
||||||
share/aclocal/pilot-link.m4
|
share/aclocal/pilot-link.m4
|
||||||
share/pilot-link/getrom.prc
|
share/pilot-link/getrom.prc
|
||||||
share/pilot-link/getrom2.prc
|
share/pilot-link/getrom2.prc
|
||||||
|
|
|
@ -8,15 +8,13 @@
|
||||||
PORTNAME= pilot-link
|
PORTNAME= pilot-link
|
||||||
PORTVERSION= 0.11.8
|
PORTVERSION= 0.11.8
|
||||||
PORTREVISION= 3
|
PORTREVISION= 3
|
||||||
CATEGORIES= palm comms tk84
|
CATEGORIES= palm comms
|
||||||
MASTER_SITES= ${MASTER_SITE_GENTOO}
|
MASTER_SITES= ${MASTER_SITE_GENTOO}
|
||||||
MASTER_SITE_SUBDIR= distfiles
|
MASTER_SITE_SUBDIR= distfiles
|
||||||
|
|
||||||
MAINTAINER= ports@FreeBSD.org
|
MAINTAINER= ports@FreeBSD.org
|
||||||
COMMENT= PalmPilot communications utilities (backup/restore/install/debug/...)
|
COMMENT= PalmPilot communications utilities (backup/restore/install/debug/...)
|
||||||
|
|
||||||
LIB_DEPENDS= tk${TCL_VER:S/.//}:${PORTSDIR}/x11-toolkits/tk${TCL_VER:S/.//}
|
|
||||||
|
|
||||||
USE_ICONV= yes
|
USE_ICONV= yes
|
||||||
USE_GETOPT_LONG=yes
|
USE_GETOPT_LONG=yes
|
||||||
USE_BZIP2= yes
|
USE_BZIP2= yes
|
||||||
|
@ -27,9 +25,20 @@ TCL_VER?= 8.4
|
||||||
|
|
||||||
CFLAGS+= -I${LOCALBASE}/include
|
CFLAGS+= -I${LOCALBASE}/include
|
||||||
HAS_CONFIGURE= yes
|
HAS_CONFIGURE= yes
|
||||||
CONFIGURE_ARGS+=--with-perl5=${PERL5} --with-libiconv=${LOCALBASE} --with-tclinclude=${LOCALBASE}/include/tcl${TCL_VER}/ --with-tcl=${LOCALBASE}/lib/tcl${TCL_VER}/ --program-transform-name=
|
CONFIGURE_ARGS+=--with-perl5=${PERL5} --with-libiconv=${LOCALBASE} --program-transform-name=
|
||||||
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib"
|
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib"
|
||||||
|
|
||||||
.include "${.CURDIR}/manpages.mk"
|
OPTIONS= TCL "Build Tcl/Tk bindings" off
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include "${.CURDIR}/manpages.mk"
|
||||||
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
|
.if defined(WITH_TCL)
|
||||||
|
LIB_DEPENDS+= tk${TCL_VER:S/.//}:${PORTSDIR}/x11-toolkits/tk${TCL_VER:S/.//}
|
||||||
|
CONFIGURE_ARGS+=--with-tclinclude=${LOCALBASE}/include/tcl${TCL_VER}/ --with-tcl=${LOCALBASE}/lib/tcl${TCL_VER}/
|
||||||
|
PLIST_SUB+= WITH_TCL=""
|
||||||
|
.else
|
||||||
|
PLIST_SUB+= WITH_TCL="@comment "
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.include <bsd.port.post.mk>
|
||||||
|
|
|
@ -28,7 +28,7 @@ bin/pilot-foto
|
||||||
bin/pilot-prc
|
bin/pilot-prc
|
||||||
bin/pilot-schlep
|
bin/pilot-schlep
|
||||||
bin/pilot-xfer
|
bin/pilot-xfer
|
||||||
bin/pitclsh
|
%%WITH_TCL%%bin/pitclsh
|
||||||
bin/read-expenses
|
bin/read-expenses
|
||||||
bin/read-ical
|
bin/read-ical
|
||||||
bin/read-notepad
|
bin/read-notepad
|
||||||
|
@ -86,10 +86,10 @@ lib/libpisync.a
|
||||||
lib/libpisync.la
|
lib/libpisync.la
|
||||||
lib/libpisync.so
|
lib/libpisync.so
|
||||||
lib/libpisync.so.0
|
lib/libpisync.so.0
|
||||||
lib/libpitcl.a
|
%%WITH_TCL%%lib/libpitcl.a
|
||||||
lib/libpitcl.la
|
%%WITH_TCL%%lib/libpitcl.la
|
||||||
lib/libpitcl.so.0
|
%%WITH_TCL%%lib/libpitcl.so.0
|
||||||
lib/libpitcl.so
|
%%WITH_TCL%%lib/libpitcl.so
|
||||||
share/aclocal/pilot-link.m4
|
share/aclocal/pilot-link.m4
|
||||||
share/pilot-link/getrom.prc
|
share/pilot-link/getrom.prc
|
||||||
share/pilot-link/getrom2.prc
|
share/pilot-link/getrom2.prc
|
||||||
|
|
Loading…
Add table
Reference in a new issue