mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
Fix ports for building with -current without perl
PR: 38359 Submitted by: maintainer
This commit is contained in:
parent
5fdaa85b0d
commit
797bc0968f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=59747
@ -17,8 +17,15 @@ USE_PYTHON= yes
|
||||
USE_PYDISTUTILS= yes
|
||||
PLIST_SUB= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S,${LOCALBASE}/,,g}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
post-patch:
|
||||
.if ${OSVERSION} < 500036
|
||||
${PERL} -pi -e 's,/usr/bin/env python2,${PYTHON_CMD},' \
|
||||
${WRKSRC}/scripts/decompyle
|
||||
.else
|
||||
${SED} -i.orig -e 's,/usr/bin/env python2,${PYTHON_CMD},' \
|
||||
${WRKSRC}/scripts/decompyle
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -20,9 +20,17 @@ USE_PYTHON= yes
|
||||
USE_PYDISTUTILS= yes
|
||||
PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
post-patch:
|
||||
.if ${OSVERSION} < 500036
|
||||
@${PERL} -pi -e 's|^(include_dirs = ).*$$|\1\["${LOCALBASE}/include"\]|g; \
|
||||
s|^(library_dirs = ).*$$|\1\["${LOCALBASE}/lib"\]|g' \
|
||||
${WRKSRC}/setup.py
|
||||
.else
|
||||
@${SED} -i.orig -e 's|^\(include_dirs = \).*$$|\1\["${LOCALBASE}/include"\]|g' \
|
||||
-e 's|^\(library_dirs = \).*$$|\1\["${LOCALBASE}/lib"\]|g' \
|
||||
${WRKSRC}/setup.py
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -32,6 +32,7 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/tcl8.3 -I
|
||||
ACLOCAL=${LOCALBASE}/bin/aclocal14
|
||||
INSTALLS_SHLIB= yes
|
||||
LDCONFIG_DIRS= ${PREFIX}/lib/graphviz
|
||||
MAKE_ENV= EXPR_COMPAT=yes
|
||||
|
||||
MAN1= acyclic.1 ccomps.1 colorize.1 dot.1 dotty.1 gc.1 gpr.1 \
|
||||
lefty.1 neato.1 nop.1 prune.1 sccmap.1 tred.1 \
|
||||
@ -49,12 +50,6 @@ LIB_DEPENDS+= iconv.3:${PORTSDIR}/converters/libiconv
|
||||
CONFIGURE_ARGS= --with-iconvlibdir=${LOCALBASE}/lib
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
.if ${OSVERSION} >= 500032
|
||||
@${PERL} -pi.orig -e 's|expr |expr -- |' ${WRKSRC}/libtool
|
||||
.endif
|
||||
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
|
@ -24,11 +24,22 @@ EXAMPLE_DIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
|
||||
USE_XPM= yes
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
post-patch:
|
||||
.if ${OSVERSION} < 500036
|
||||
${PERL} -pi -e 's,^(gd.*)$$,\1 -I${LOCALBASE}/include/gd -L${LOCALBASE}/lib,g; s,-lttf,,g; s,/usr/X11R6,${X11BASE},g;' \
|
||||
${WRKSRC}/Setup
|
||||
.else
|
||||
${SED} -i.orig -e 's,^\(gd.*\)$$,\1 -I${LOCALBASE}/include/gd -L${LOCALBASE}/lib,g' \
|
||||
-e 's,-lttf,,g' -e 's,/usr/X11R6,${X11BASE},g' ${WRKSRC}/Setup
|
||||
.endif
|
||||
.if defined(WITHOUT_X11)
|
||||
.if ${OSVERSION} < 500036
|
||||
${PERL} -pi -e 's,-lX11 -lXpm,,g' ${WRKSRC}/Setup
|
||||
.else
|
||||
${SED} -i "" -e 's,-lX11 -lXpm,,g' ${WRKSRC}/Setup
|
||||
.endif
|
||||
.endif
|
||||
|
||||
pre-build:
|
||||
@ -40,4 +51,4 @@ post-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/gddemo.py ${EXAMPLE_DIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -32,8 +32,13 @@ EXAMPLES= test_bar.py test_paint.py testpie.py
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
post-patch:
|
||||
.if ${OSVERSION} < 500036
|
||||
${PERL} -pi -e 's@^(.*libraries.*)$$@\1include_dirs=${INC_DIRS},library_dirs=${LIB_DIRS},@g' \
|
||||
${WRKSRC}/setup.py
|
||||
.else
|
||||
${SED} -i.orig -e 's@^\(.*libraries.*\)$$@\1include_dirs=${INC_DIRS},library_dirs=${LIB_DIRS},@g' \
|
||||
${WRKSRC}/setup.py
|
||||
.endif
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
post-install:
|
||||
|
@ -15,21 +15,30 @@ MAINTAINER= perky@fallin.lv
|
||||
USE_BISON= yes
|
||||
USE_GMAKE= yes
|
||||
|
||||
ALL_TARGET= spl2c libspl.a
|
||||
ALL_EXAMPLES= Makefile fibonacci.spl fibonacci2.spl guess.spl hello.spl \
|
||||
primes.spl reverse.spl shakesbeer.spl
|
||||
|
||||
post-patch:
|
||||
@${PERL} -pi -e 's,= gcc,?= gcc,; s,^CCFLAGS.*,CFLAGS += -Wall,; \
|
||||
s,CCFLAGS,CFLAGS,g' \
|
||||
${WRKSRC}/Makefile ${WRKSRC}/examples/Makefile
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
do-install:
|
||||
${TAR} -C ${WRKSRC}/spl -cf- . | ${TAR} -C ${PREFIX} -xpf-
|
||||
post-patch:
|
||||
.if ${OSVERSION} < 500036
|
||||
@${PERL} -pi -e 's,= gcc,?= gcc,; s,^CCFLAGS.*,CFLAGS += -Wall,; \
|
||||
s,CCFLAGS,CFLAGS,g; s,^SPLPATH =.*,SPLPATH =${PREFIX},g; \
|
||||
s, spl/, ${PREFIX}/,g;' \
|
||||
${WRKSRC}/Makefile ${WRKSRC}/examples/Makefile
|
||||
.else
|
||||
@for f in ${WRKSRC}/Makefile ${WRKSRC}/examples/Makefile; do \
|
||||
${SED} -i "" -e 's,= gcc,?= gcc,' -e 's,^CCFLAGS.*,CFLAGS += -Wall,' \
|
||||
-e 's,CCFLAGS,CFLAGS,g' -e 's,^SPLPATH =.*,SPLPATH =${PREFIX},g' \
|
||||
-e 's, spl/, ${PREFIX}/,g' $$f; \
|
||||
done
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${EXAMPLESDIR}
|
||||
cd ${WRKSRC}/examples && ${INSTALL_DATA} ${ALL_EXAMPLES} ${EXAMPLESDIR}
|
||||
@${PERL} -pi -e 's,^SPLPATH =.*,SPLPATH =${PREFIX},g' \
|
||||
${EXAMPLESDIR}/Makefile
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -41,7 +41,4 @@ PLIST_SUB+= WITH_XMMS=""
|
||||
PLIST_SUB+= WITH_XMMS="@comment "
|
||||
.endif
|
||||
|
||||
pre-build:
|
||||
${PERL} -pi -e "s@gcc@${CC}@g" ${WRKSRC}/Makefile
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -20,9 +20,17 @@ USE_PYTHON= yes
|
||||
USE_PYDISTUTILS= yes
|
||||
PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
post-patch:
|
||||
.if ${OSVERSION} < 500036
|
||||
@${PERL} -pi -e 's|^(include_dirs = ).*$$|\1\["${LOCALBASE}/include"\]|g; \
|
||||
s|^(library_dirs = ).*$$|\1\["${LOCALBASE}/lib"\]|g' \
|
||||
${WRKSRC}/setup.py
|
||||
.else
|
||||
@${SED} -i.orig -e 's|^\(include_dirs = \).*$$|\1\["${LOCALBASE}/include"\]|g' \
|
||||
-e 's|^\(library_dirs = \).*$$|\1\["${LOCALBASE}/lib"\]|g' \
|
||||
${WRKSRC}/setup.py
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -24,15 +24,24 @@ EXTRACT_BEFORE_ARGS= -q -aa
|
||||
WRKSRC= ${WRKDIR}/pygoogle
|
||||
EXAMPLESDIR= ${PREFIX}/share/examples/py-google
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
post-patch:
|
||||
# www/py-websvcs has an incompatible version of SOAP.py
|
||||
@${MV} ${WRKSRC}/SOAP.py ${WRKSRC}/SOAPgoogle.py
|
||||
.if ${OSVERSION} < 500036
|
||||
@cd ${WRKSRC}; for f in *.py; do \
|
||||
${PERL} -pi -e 's,import SOAP,import SOAPgoogle as SOAP,g' $$f; \
|
||||
done
|
||||
@${PERL} -pi -e 's,.*extra_path.*,,g' ${WRKSRC}/setup.py
|
||||
.else
|
||||
@cd ${WRKSRC}; for f in *.py; do \
|
||||
${SED} -i "" -e 's,import SOAP,import SOAPgoogle as SOAP,g' $$f; \
|
||||
done
|
||||
@${SED} -i.orig -e 's,.*extra_path.*,,g' ${WRKSRC}/setup.py
|
||||
.endif
|
||||
@${MKDIR} ${WRKSRC}/tests
|
||||
@${MV} ${WRKSRC}/*test*.py ${WRKSRC}/tests
|
||||
@${PERL} -pi -e 's,.*extra_path.*,,g' ${WRKSRC}/setup.py
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
@ -41,4 +50,4 @@ post-install:
|
||||
.endif
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -22,8 +22,14 @@ USE_PYDISTUTILS= yes
|
||||
EXAMPLESDIR= ${PREFIX}/share/examples/py-rxp
|
||||
DOCSDIR= ${PREFIX}/share/doc/py-rxp
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
post-patch:
|
||||
.if ${OSVERSION} < 500036
|
||||
@${PERL} -pi -e 's/freebsd4/freebsd4","freebsd5/g' ${WRKSRC}/setup.py
|
||||
.else
|
||||
@${SED} -i.orig -e 's/freebsd4/freebsd4","freebsd5/g' ${WRKSRC}/setup.py
|
||||
.endif
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
post-install:
|
||||
@ -32,4 +38,4 @@ post-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -28,9 +28,10 @@ WITH_MPM?= prefork # or worker, perchild (neither of them still has a problem on
|
||||
HTTP_PORT?= 80
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USE_PERL5= yes
|
||||
CONFIGURE_ARGS= --prefix=${PREFIX} \
|
||||
--enable-layout=FreeBSD \
|
||||
--with-perl=${PERL} \
|
||||
--with-perl=${PERL5} \
|
||||
--enable-so \
|
||||
--with-mpm=${WITH_MPM} \
|
||||
--with-port=${HTTP_PORT} \
|
||||
|
@ -28,9 +28,10 @@ WITH_MPM?= prefork # or worker, perchild (neither of them still has a problem on
|
||||
HTTP_PORT?= 80
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USE_PERL5= yes
|
||||
CONFIGURE_ARGS= --prefix=${PREFIX} \
|
||||
--enable-layout=FreeBSD \
|
||||
--with-perl=${PERL} \
|
||||
--with-perl=${PERL5} \
|
||||
--enable-so \
|
||||
--with-mpm=${WITH_MPM} \
|
||||
--with-port=${HTTP_PORT} \
|
||||
|
@ -28,9 +28,10 @@ WITH_MPM?= prefork # or worker, perchild (neither of them still has a problem on
|
||||
HTTP_PORT?= 80
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USE_PERL5= yes
|
||||
CONFIGURE_ARGS= --prefix=${PREFIX} \
|
||||
--enable-layout=FreeBSD \
|
||||
--with-perl=${PERL} \
|
||||
--with-perl=${PERL5} \
|
||||
--enable-so \
|
||||
--with-mpm=${WITH_MPM} \
|
||||
--with-port=${HTTP_PORT} \
|
||||
|
@ -28,9 +28,10 @@ WITH_MPM?= prefork # or worker, perchild (neither of them still has a problem on
|
||||
HTTP_PORT?= 80
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USE_PERL5= yes
|
||||
CONFIGURE_ARGS= --prefix=${PREFIX} \
|
||||
--enable-layout=FreeBSD \
|
||||
--with-perl=${PERL} \
|
||||
--with-perl=${PERL5} \
|
||||
--enable-so \
|
||||
--with-mpm=${WITH_MPM} \
|
||||
--with-port=${HTTP_PORT} \
|
||||
|
Loading…
Reference in New Issue
Block a user