# $NetBSD: Makefile,v 1.9 2004/12/03 15:14:59 wiz Exp $ PKGNAME= aalib-x11-${BASE_VERS} CATEGORIES+= x11 PKGREVISION= 2 COMMENT= ASCII Art library with X11 support PKG_INSTALLATION_TYPES= overwrite pkgviews USE_BUILDLINK3= yes USE_X11= # defined BUILD_TARGET= libaa-x11.la INSTALL_TARGET= install-libLTLIBRARIES INSTALLATION_DIRS= bin include lib # We need to correct the aalib-config script to return "-laa-x11" instead # of "-laa". # BUILDLINK_TRANSFORM+= l:aa:aa-x11 post-patch: for file in ${WRKSRC}/src/Makefile.in; do \ ${SED} -e "s,libaa\.la,libaa-x11.la,g" \ -e "s,libaa_la,libaa_x11_la,g" \ $${file} > $${file}.fixed; \ ${MV} -f $${file}.fixed $${file}; \ done @for f in `${FIND} ${WRKSRC} -name '*.[ch]' -print`; do \ ${SED} -e "s|||g" $$f > $$f.patch \ && ${MV} $$f.patch $$f; \ done do-build: cd ${WRKSRC}/src; ${SETENV} ${MAKE_ENV} \ ${MAKE_PROGRAM} -f ${MAKEFILE} ${BUILD_TARGET} do-install: ${INSTALL_SCRIPT} ${WRKSRC}/aalib-config ${PREFIX}/bin/aalib-x11-config ${INSTALL_DATA} ${WRKSRC}/src/aalib.h ${PREFIX}/include/aalib-x11.h cd ${WRKSRC}/src; ${SETENV} ${MAKE_ENV} \ ${MAKE_PROGRAM} -f ${MAKEFILE} ${INSTALL_TARGET} .include "../../graphics/aalib/Makefile.common"