1998-03-20 14:54:51 +00:00
|
|
|
# New ports collection makefile for: vflib + FreeType
|
1997-10-02 03:10:07 +00:00
|
|
|
# Version required: 2.22 Patchlevel 10
|
1996-11-02 12:09:43 +00:00
|
|
|
# Date created: 10 May 1996
|
|
|
|
# Whom: Mita Yoshio <mita@jp.FreeBSD.org>
|
|
|
|
#
|
1998-03-20 14:54:51 +00:00
|
|
|
# $Id: Makefile,v 1.11 1997/10/15 22:15:48 max Exp $
|
1996-11-02 12:09:43 +00:00
|
|
|
#
|
|
|
|
|
1997-07-24 20:52:45 +00:00
|
|
|
DISTNAME= VFlib-2.22-PL8
|
1997-10-02 03:10:07 +00:00
|
|
|
PKGNAME= ja-vflib-2.22.10
|
1996-11-11 10:13:07 +00:00
|
|
|
CATEGORIES= japanese print
|
1996-11-02 12:09:43 +00:00
|
|
|
MASTER_SITES= ftp://gull.se.hiroshima-u.ac.jp/pub/VFlib/
|
1997-10-15 22:15:48 +00:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} watanabe-vf.tar.Z
|
|
|
|
|
1998-03-20 14:54:51 +00:00
|
|
|
PATCH_SITES= http://itohws03.ee.noda.sut.ac.jp/~matsuda/VFlib-FT/ \
|
|
|
|
${MASTER_SITES}
|
|
|
|
PATCHFILES= VFlib-2.22-Patch9 VFlib-2.22-Patch10 VFlib-FT1.0-PL2.diff.gz
|
1996-11-02 12:09:43 +00:00
|
|
|
|
|
|
|
MAINTAINER= mita@jp.FreeBSD.org
|
|
|
|
|
1998-03-20 14:54:51 +00:00
|
|
|
LIB_DEPENDS= ttf\\.1\\.0:${PORTSDIR}/print/freetype
|
|
|
|
|
1997-07-24 20:52:45 +00:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
WRKSRC= ${WRKDIR}/VFlib-2.22pl8
|
1998-03-20 14:54:51 +00:00
|
|
|
MAKE_ENV= PREFIX=${PREFIX} FREETYPEINCDIR=${FREETYPEINCDIR} \
|
|
|
|
FREETYPELIBDIR=${FREETYPELIBDIR}
|
|
|
|
FREETYPEINCDIR= ${PREFIX}/include
|
|
|
|
FREETYPELIBDIR= ${PREFIX}/lib
|
|
|
|
|
|
|
|
do-patch:
|
|
|
|
@${ECHO_MSG} "===> Applying distribution patches for ${PKGNAME}"
|
|
|
|
@${CAT} ${DISTDIR}/VFlib-2.22-Patch9 ${DISTDIR}/VFlib-2.22-Patch10 | \
|
|
|
|
${PATCH} ${PATCH_DIST_ARGS:S/${WRKSRC}/&\/src/}
|
|
|
|
@${GZCAT} ${DISTDIR}/VFlib-FT1.0-PL2.diff.gz | ${PATCH} ${PATCH_DIST_ARGS}
|
|
|
|
@if [ "`echo ${PATCHDIR}/patch-*`" = "${PATCHDIR}/patch-*" ]; then \
|
|
|
|
${ECHO_MSG} "===> Ignoring empty patch directory"; \
|
|
|
|
else \
|
|
|
|
${ECHO_MSG} "===> Applying ${OPSYS} patches for ${PKGNAME}" ; \
|
|
|
|
for i in ${PATCHDIR}/patch-*; do \
|
|
|
|
case $$i in \
|
|
|
|
*.orig|*.rej|*~) \
|
|
|
|
${ECHO_MSG} "===> Ignoring patchfile $$i" ; \
|
|
|
|
;; \
|
|
|
|
*) \
|
|
|
|
${PATCH} ${PATCH_ARGS} < $$i; \
|
|
|
|
;; \
|
|
|
|
esac; \
|
|
|
|
done; \
|
|
|
|
fi;
|
1996-11-08 20:54:33 +00:00
|
|
|
|
1996-11-02 12:09:43 +00:00
|
|
|
do-build:
|
1998-03-20 14:54:51 +00:00
|
|
|
@(cd ${WRKSRC}/src; ${SETENV} ${MAKE_ENV} ${MAKE})
|
|
|
|
@(cd ${WRKSRC}/tools; ${XMKMF}; ${SETENV} ${MAKE_ENV} ${MAKE})
|
1996-11-02 12:09:43 +00:00
|
|
|
|
|
|
|
do-install:
|
1996-11-02 17:04:08 +00:00
|
|
|
${MKDIR} ${PREFIX}/lib/VFlib
|
1998-03-20 14:54:51 +00:00
|
|
|
@(cd ${WRKSRC}/src; ${SETENV} ${MAKE_ENV} ${MAKE} ${INSTALL_TARGET})
|
1996-11-02 12:09:43 +00:00
|
|
|
@(cd ${WRKSRC}/tools; \
|
|
|
|
${INSTALL_PROGRAM} fmtest disol kban ktest vfperf vftest \
|
1996-11-02 17:04:08 +00:00
|
|
|
${PREFIX}/lib/VFlib)
|
1996-11-02 12:09:43 +00:00
|
|
|
@(cd ${WRKSRC}; \
|
1996-11-02 17:04:08 +00:00
|
|
|
${CP} -R doc jTeX COPYING README.txt.JP_EUC vfontcap \
|
1997-07-24 20:52:45 +00:00
|
|
|
vfontcap.bdf vfontcap.comp2 ${PREFIX}/lib/VFlib)
|
1996-11-02 17:04:08 +00:00
|
|
|
${MKDIR} ${PREFIX}/share/fonts/watanabe_font
|
|
|
|
tar -C ${PREFIX}/share/fonts/watanabe_font \
|
|
|
|
-xzf ${DISTDIR}/watanabe-vf.tar.Z
|
1997-07-17 15:13:02 +00:00
|
|
|
${LDCONFIG} -m ${PREFIX}/lib
|
1996-11-02 12:09:43 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|