2000-12-11 09:47:26 +00:00
|
|
|
# New ports collection makefile for: BIG5/GB-ized VFlib
|
|
|
|
# Date created: 11 Dec 2000
|
|
|
|
# Whom: Jing-Tang Keith Jang <keith@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= vflib
|
|
|
|
PORTVERSION= ${VFLIB_VERSION}
|
|
|
|
CATEGORIES= chinese print
|
|
|
|
MASTER_SITES= ftp://freebsd.sinica.edu.tw/pub/keith/VFlib2/ \
|
|
|
|
ftp://gull.se.hiroshima-u.ac.jp/pub/TypeHack/
|
|
|
|
DISTNAME= VFlib2-${PORTVERSION}
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} zh-vfontcap.in
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
|
|
|
|
PATCH_SITES= ftp://freebsd.sinica.edu.tw/pub/keith/VFlib2/
|
|
|
|
PATCHFILES= VFlib2-2.25.1-Chinese.patch.gz
|
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
|
2003-11-03 01:19:26 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-26 14:23:43 +00:00
|
|
|
COMMENT= Vector font library with free vector font, BIG5 and GB supported
|
2000-12-11 09:47:26 +00:00
|
|
|
|
|
|
|
BUILD_DEPENDS= xmkmf:${PORTSDIR}/devel/imake-4
|
|
|
|
|
|
|
|
VFLIB_VERSION= 2.25.1
|
|
|
|
PLIST_SUB= VFLIB_VERSION=${VFLIB_VERSION}
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_FREETYPE= yes
|
|
|
|
USE_XLIB= yes
|
2004-03-14 06:17:56 +00:00
|
|
|
USE_AUTOCONF_VER= 213
|
2000-12-11 09:47:26 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
2004-01-31 03:22:16 +00:00
|
|
|
USE_REINPLACE= yes
|
2000-12-11 09:47:26 +00:00
|
|
|
CONFIGURE_ARGS= --with-freetype \
|
2002-03-14 11:16:45 +00:00
|
|
|
--with-freetype-includedir=${PREFIX}/include/freetype1/freetype \
|
2000-12-11 09:47:26 +00:00
|
|
|
--with-freetype-libdir=${PREFIX}/lib
|
|
|
|
|
2003-12-06 22:01:30 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2000-12-11 09:47:26 +00:00
|
|
|
pre-patch:
|
|
|
|
@${SED} -e "s;%%LOCALBASE%%;${LOCALBASE};g" -e "s;%%X11BASE%%;${X11BASE};g" ${DISTDIR}/zh-vfontcap.in > ${WRKSRC}/vfontcap
|
|
|
|
|
2004-01-31 03:22:16 +00:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e "s,varargs.h,stdarg.h," ${WRKSRC}/tools/disol.c
|
|
|
|
|
2000-12-11 09:47:26 +00:00
|
|
|
pre-install:
|
|
|
|
@(cd ${WRKSRC}/tools; \
|
|
|
|
${INSTALL_SCRIPT} fmtest disol kban vfperf vftest ${PREFIX}/bin)
|
|
|
|
@(cd ${WRKSRC}; \
|
|
|
|
${MKDIR} ${PREFIX}/share/VFlib/${VFLIB_VERSION} ;\
|
|
|
|
${CP} COPYING COPYING.LIB README.txt.JP_EUC \
|
|
|
|
${PREFIX}/share/VFlib/${VFLIB_VERSION})
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${MV} ${PREFIX}/share/VFlib/${VFLIB_VERSION}/VF.h ${PREFIX}/include
|
|
|
|
|
2003-12-06 22:01:30 +00:00
|
|
|
.include <bsd.port.post.mk>
|