pkgsrc/print/ja-vflib-lib/Makefile
joerg 3d8ef5a52d Second round of explicit pax dependencies. As reminded by tnn@,
many packages used to use ${PAX}. Use the common way of directly calling
pax, it is created as tool after all.
2008-05-26 02:13:14 +00:00

37 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.9 2008/05/26 02:13:23 joerg Exp $
.include "Makefile.common"
PKGNAME= ja-vflib-lib-${VFLIB_VERSION}
PKGREVISION= 2
COMMENT= Japanese Vector font library
CONFIGURE_ARGS+= --without-x
BUILD_TARGET= build-src
INSTALL_TARGET= install-src
USE_TOOLS+= pax
post-build:
.for FILE in vfontcap vfontcap.bdf
cd ${WRKSRC}; \
${MV} ${FILE} ${FILE}.orig; \
${SED} -e "s|/usr/local/share/fonts|${PREFIX}/share/fonts|g" \
${FILE}.orig > ${FILE}; \
${RM} ${FILE}.orig
.endfor
post-install:
${MV} ${PREFIX}/share/VFlib/${VFLIB_VERSION}/VF.h ${PREFIX}/include
${INSTALL_DATA_DIR} ${PREFIX}/share/VFlib/${VFLIB_VERSION}
cd ${WRKSRC} && ${INSTALL_DATA} COPYING COPYING.LIB README.txt.JP_EUC \
${PREFIX}/share/VFlib/${VFLIB_VERSION}
cd ${WRKSRC} && pax -rw jTeX ${PREFIX}/share/VFlib/${VFLIB_VERSION}
${FIND} ${PREFIX}/share/VFlib/${VFLIB_VERSION} -type d -print \
-exec ${CHMOD} ${PKGDIRMODE} {} \;
${FIND} ${PREFIX}/share/VFlib/${VFLIB_VERSION} -type f -print \
-exec ${CHMOD} ${SHAREMODE} {} \;
.include "../../mk/bsd.pkg.mk"