- Switch to py2.4 and use correct version of python

- Honour CC
- Bump PKGNAME
This commit is contained in:
alek 2006-06-05 16:14:24 +00:00
parent f0e1b51db0
commit 97f0f6cde8

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.15 2006/02/08 04:54:48 david Exp $
# $OpenBSD: Makefile,v 1.16 2006/06/05 16:14:24 alek Exp $
COMMENT= "convert Big5/GB encoded files to postscript"
DISTNAME= bg5ps-1.3.0
PKGNAME= zh-${DISTNAME}p0
PKGNAME= zh-${DISTNAME}p1
CATEGORIES= chinese x11
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
@ -17,7 +17,7 @@ WANTLIB= c m
MASTER_SITES= ftp://freebsd.sinica.edu.tw/pub/keith/
PYTHON_VER= 2.3
PYTHON_VER= 2.4
RUN_DEPENDS= ::chinese/arphicttf \
:python-${PYTHON_VER}*:lang/python/${PYTHON_VER}
LIB_DEPENDS= ttf.1::print/freetype
@ -26,10 +26,12 @@ NO_REGRESS= Yes
pre-configure:
perl -pi -e \
"s|/usr/bin/python|${LOCALBASE}/bin/python${PYTHON_VER}|" \
"s|/usr/local/bin/python.*|${LOCALBASE}/bin/python${PYTHON_VER}|" \
${WRKSRC}/bg5ps
MAKE_FLAGS=CFLAGS="${CFLAGS} -I${LOCALBASE}/include/freetype1" LDFLAGS=-L${LOCALBASE}/lib
MAKE_FLAGS= CFLAGS="${CFLAGS} -I${LOCALBASE}/include/freetype1" \
LDFLAGS=-L${LOCALBASE}/lib \
CC=${CC}
do-install:
${INSTALL_PROGRAM} ${WRKBUILD}/bg5ps ${PREFIX}/bin