2011-09-16 05:48:08 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.3 2011/09/16 09:48:09 espie Exp $
|
2011-07-19 05:14:21 -04:00
|
|
|
|
|
|
|
COMMENT= convert Big5/GB encoded files to postscript
|
|
|
|
|
|
|
|
DISTNAME= bg5ps-1.3.0
|
|
|
|
PKGNAME= zh-${DISTNAME}
|
2011-09-16 05:48:08 -04:00
|
|
|
REVISION= 9
|
2011-07-19 05:14:21 -04:00
|
|
|
CATEGORIES= fonts chinese x11
|
|
|
|
|
|
|
|
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
|
|
|
|
|
|
|
|
# GPL
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
|
|
|
|
WANTLIB= c m ttf
|
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_BACKUP}
|
|
|
|
|
|
|
|
MODULES= lang/python
|
2011-07-19 15:15:19 -04:00
|
|
|
RUN_DEPENDS= fonts/zh-arphicttf
|
2011-07-19 05:14:21 -04:00
|
|
|
LIB_DEPENDS= 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.*|${MODPY_BIN}|" ${WRKSRC}/bg5ps
|
|
|
|
${SUBST_CMD} ${WRKSRC}/bg5ps.conf
|
|
|
|
|
|
|
|
MAKE_FLAGS= CFLAGS="${CFLAGS} -I${LOCALBASE}/include/freetype1" \
|
|
|
|
LDFLAGS=-L${LOCALBASE}/lib \
|
|
|
|
CC=${CC}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/bg5ps ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/ttf2psm ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/bg5ps
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/bg5ps
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/bg5ps
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/bg5ps.conf ${PREFIX}/lib/bg5ps
|
|
|
|
cp -R ${WRKSRC}/doc/* ${PREFIX}/share/doc/bg5ps
|
|
|
|
cp -R ${WRKSRC}/examples/* ${PREFIX}/share/examples/bg5ps
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|