diff options
author | pat <pat@FreeBSD.org> | 2002-05-23 00:32:04 +0000 |
---|---|---|
committer | pat <pat@FreeBSD.org> | 2002-05-23 00:32:04 +0000 |
commit | ccf69d9370f1b396c50c57421c2d6633769fc944 (patch) | |
tree | 37fc7529631cbcd2c3a85c29acc1e32a3a3b58e7 /graphics/py-gd/Makefile | |
parent | d4a41cc316fff92f393d9f66a4121809b2ecbb51 (diff) | |
download | FreeBSD-ports-ccf69d9370f1b396c50c57421c2d6633769fc944.zip FreeBSD-ports-ccf69d9370f1b396c50c57421c2d6633769fc944.tar.gz |
Fix ports for building with -current without perl
PR: 38359
Submitted by: maintainer
Diffstat (limited to 'graphics/py-gd/Makefile')
-rw-r--r-- | graphics/py-gd/Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/graphics/py-gd/Makefile b/graphics/py-gd/Makefile index 1fb2887..cd248ee 100644 --- a/graphics/py-gd/Makefile +++ b/graphics/py-gd/Makefile @@ -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> |