openbsd-ports/chinese/bg5pdf/Makefile
david f85600afe0 move any perl or sed substitutions from post-patch to pre-configure
(fixes make update-patches)
ok sturm@; "looks reasonable" steven@
2006-02-08 04:54:48 +00:00

43 lines
913 B
Makefile

# $OpenBSD: Makefile,v 1.10 2006/02/08 04:54:48 david Exp $
NOT_FOR_ARCHS= ${NO_SHARED_ARCHS}
COMMENT= "convert Big5 encoded files to PDF"
DISTNAME= bg5pdf-1.0.0
PKGNAME= zh-${DISTNAME}p0
CATEGORIES= chinese print
HOMEPAGE= http://cschin.yydolphin.net/bg5pdf/
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
# GPL + Aladdin license
PERMIT_DISTFILES_CDROM= No
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_CDROM= No
PERMIT_PACKAGE_FTP= Yes
WANTLIB= z
MASTER_SITES= ${HOMEPAGE}
BUILD_DEPENDS= :python-${PYTHON_VER}*:lang/python/${PYTHON_VER}
RUN_DEPENDS= :python-${PYTHON_VER}*:lang/python/${PYTHON_VER} \
::chinese/taipeifonts
LIB_DEPENDS= pdf.2::print/pdflib
WRKDIST= ${WRKDIR}/bg5pdf
PYTHON_VER= 2.3
SUBST_VARS= PYTHON_VER
MAKE_ENV= PYTHON_VER=${PYTHON_VER}
NO_REGRESS= Yes
pre-configure:
perl -pi -e \
"s|/usr/bin/python|${LOCALBASE}/bin/python${PYTHON_VER}|" \
${WRKSRC}/bg5pdf
.include <bsd.port.mk>