From a42bc0f569e90e51479f4b01b9f6f2f1d74b0eed Mon Sep 17 00:00:00 2001 From: sthen Date: Sat, 18 Jul 2009 15:07:51 +0000 Subject: [PATCH] Make RUN_DEPENDS comply with packages-specs(7) by converting the port to python.port.mk; spotted by naddy@. ok kevlo@ (maintainer). --- chinese/bg5ps/Makefile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/chinese/bg5ps/Makefile b/chinese/bg5ps/Makefile index 1d029b233de..a592903d57f 100644 --- a/chinese/bg5ps/Makefile +++ b/chinese/bg5ps/Makefile @@ -1,9 +1,9 @@ -# $OpenBSD: Makefile,v 1.19 2008/06/08 14:27:03 phessler Exp $ +# $OpenBSD: Makefile,v 1.20 2009/07/18 15:07:51 sthen Exp $ COMMENT= convert Big5/GB encoded files to postscript DISTNAME= bg5ps-1.3.0 -PKGNAME= zh-${DISTNAME}p1 +PKGNAME= zh-${DISTNAME}p2 CATEGORIES= chinese x11 MAINTAINER= Kevin Lo @@ -17,17 +17,19 @@ WANTLIB= c m MASTER_SITES= ${MASTER_SITE_BACKUP} -PYTHON_VER= 2.4 -RUN_DEPENDS= ::chinese/arphicttf \ - :python-${PYTHON_VER}*:lang/python/${PYTHON_VER} +MODULES= lang/python +MODPY_VERSION= 2.4 +RUN_DEPENDS= ::chinese/arphicttf LIB_DEPENDS= ttf.>=1::print/freetype +# python.port.mk overrides various targets when CONFIGURE_STYLE is empty +CONFIGURE_STYLE=none + NO_REGRESS= Yes pre-configure: perl -pi -e \ - "s|/usr/local/bin/python.*|${LOCALBASE}/bin/python${PYTHON_VER}|" \ - ${WRKSRC}/bg5ps + "s|/usr/local/bin/python.*|${MODPY_BIN}|" ${WRKSRC}/bg5ps MAKE_FLAGS= CFLAGS="${CFLAGS} -I${LOCALBASE}/include/freetype1" \ LDFLAGS=-L${LOCALBASE}/lib \