update Sat Jun 19 06:37:00 PDT 2010
[pkgsrc.git] / print / ja-vflib-lib / Makefile
1 # $NetBSD: Makefile,v 1.9 2008/05/26 02:13:23 joerg Exp $
2
3 .include "Makefile.common"
4
5 PKGNAME=        ja-vflib-lib-${VFLIB_VERSION}
6 PKGREVISION=    2
7
8 COMMENT=        Japanese Vector font library
9
10 CONFIGURE_ARGS+=        --without-x
11 BUILD_TARGET=           build-src
12 INSTALL_TARGET=         install-src
13
14 USE_TOOLS+=     pax
15
16 post-build:
17 .for FILE in vfontcap vfontcap.bdf
18         cd ${WRKSRC};                                                   \
19         ${MV} ${FILE} ${FILE}.orig;                                     \
20         ${SED} -e "s|/usr/local/share/fonts|${PREFIX}/share/fonts|g"    \
21                 ${FILE}.orig > ${FILE};                                 \
22         ${RM} ${FILE}.orig
23 .endfor
24
25 post-install:
26         ${MV} ${PREFIX}/share/VFlib/${VFLIB_VERSION}/VF.h ${PREFIX}/include
27
28         ${INSTALL_DATA_DIR} ${PREFIX}/share/VFlib/${VFLIB_VERSION}
29         cd ${WRKSRC} && ${INSTALL_DATA} COPYING COPYING.LIB README.txt.JP_EUC \
30                 ${PREFIX}/share/VFlib/${VFLIB_VERSION}
31         cd ${WRKSRC} && pax -rw jTeX ${PREFIX}/share/VFlib/${VFLIB_VERSION}
32         ${FIND} ${PREFIX}/share/VFlib/${VFLIB_VERSION} -type d -print \
33                 -exec ${CHMOD} ${PKGDIRMODE} {} \;
34         ${FIND} ${PREFIX}/share/VFlib/${VFLIB_VERSION} -type f -print \
35                 -exec ${CHMOD} ${SHAREMODE} {} \;
36
37 .include "../../mk/bsd.pkg.mk"